This is my take on the Advent of Code 2021, written in NodeJS.
Start by creating a .env
based on the .env.example
:
cp .env.example .env
Replace the YEAR
with the year you want to work on.
Replace the SESSION
with the session cookie content.
yarn start init 01 # the day you want to initialize
The same instruction can be used to update the README as soon as part two is unlocked.
yarn start exec day01 # run part one and two of day01
yarn start exec -1 day01 # run part one of day01
yarn start exec -2 day01 # run part two of day01
Run the tests:
yarn test
Run tests for specific day in watch mode:
yarn test --testPathPattern "day01" --watch
I'm using gitmoji for commit messages.