Implementations for the 2021 Advent of Code.
Written for Node 16.
(It would probably work on earlier versions if you tweaked the tsconfig.json
per the docs.)
- Clone this repository to your local machine
- Use
npm install
to install the dependencies
build
: compile TypeScript insrc/
to JavaScript inlib/
day
: build all code then run the exercise for a specified day (e.g.npm run day 1
)lint
: check the code style with ESLintnew
: bootstrap a new day's code structure insrc/dayXX/
(e.g.npm run new 2
)ship
: run linting and tests, then push to the remote if everything passedtest
: run the Mocha/Chai tests