Advent of Code
Install Node.js 12 or higher for your platform.
Install dependencies through npm:
To run all solutions for the current edition:
To run solutions for specific days, pass one or more days as arguments:
npm start 1 4 9
To run solutions for a different edition, specify the year:
npm start 2017 npm start 2017 1 4 9
To run a combination of solutions from different editions, mix and match years and days, reading from left to right.
Example to run 2017 day 1 and 4, 2018 all days, and 2019 day 5:
npm start 2017 1 4 2018 2019 5
To generate and display a progress overview, run:
npm run progress
To monitor code changes and re-run solutions during development:
npm run start:dev 2018 6
To bootstrap an empty solution for a given year and day, run:
npm run bootstrap 2019 20
Bootstrapping solutions for multiple days is not supported.
To run tests for utilities:
npm run test