Skip to content

🎄 Advent of code solutions written in TypeScript for Deno.

License

Notifications You must be signed in to change notification settings

N8Brooks/deno_aoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deno_aoc

code_cov deno_aoc

Advent of Code solutions written in TypeScript for Deno.

Testing

  • Testing uses BDD from the Deno standard library.
  • Testing the MD5 hashing problems takes a while so it's best to ignore them.
  • Tests are run in the github actions.
deno test --allow-read --ignore="year_2015/day_04_test.ts,year_2016/day_05_test.ts,year_2016/day_14_test.ts"

Benchmarking

  • Benchmarking is done with the standard Deno.bench() function.
  • Like with testing, it's best to ignore the MD5 hash based problems.
deno bench --allow-read --unstable --ignore="year_2015/day_04_bench.ts,year_2016/day_05_bench.ts,year_2016/day_14_bench.ts"

Linting

  • Linting is done with no arguments using Deno.
  • Linting is checked in the github actions.
deno lint

Formatting

  • Formatting is done using no arguments with Deno.
  • It is also checked in the github actions.
  • Running this on windows may cause problems relating to the preferred newline character.
deno fmt

Styling

  • This project follows the Deno Style Guide.
  • Dependencies are managed in the deps.ts and test_deps.ts file as recommended by the Managing Dependencies section of the Deno Manual.
  • Project structure follows a year_20XX/day_XX.ts pattern where each day_XX.ts file has a part1 and a part2 named export function.

About

🎄 Advent of code solutions written in TypeScript for Deno.

Topics

Resources

License

Stars

Watchers

Forks