Advent of Code solutions written in TypeScript for Deno.
- 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 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 is done with no arguments using Deno.
- Linting is checked in the github actions.
deno lint
- 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
- This project follows the Deno Style Guide.
- Dependencies are managed in the
deps.ts
andtest_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 apart2
named export function.