We use the DAY=<day>
environment variable to specify the day to run. It should not be padded with a zero. In the following examples, we use DAY=1
to run the first day.
# without nodemon
DAY=1 npm start
# using nodemon
DAY=1 npm run nodemon
# debugging
DAY=1 npm run dev:debug
# this runs all tests. Use Jest extension in VSCode to run individual tests.
npm run test
npm run lint
using ./makeday.sh <day>
you can automatically generate a new day:
./makeday.sh 1
This folder contains the source code for the solutions. Each day has its own folder, with a two digit number name. All Common code is in the utils/
folder. Uses the files from the data/
folder as input.
This folder contains the tests for the solutions. Each day has its own folder, with a two digit number name. Uses the files from the data_test/
folder as input.
This folder contains the input data for the solutions. The format is day<day>.txt
. If a day has more than one input, the formatday<day>_<part>.txt
is used for all parts except the first.
Same as data/
, but for the test input.