Various improvements and multi year support. See my repo for idea of what it now looks like.
Instead of replicating aocrunner every year, each year is nested under src\NNNN where NNNN is the year.
npm start now requires a year and day parameter, e.g. npm start 2019 1
update:readme now requires a year parameter, e.g. npm run update:readme 2019
build now requires a year parameter, e.g. npm run build 2019
Readme improvements
There is a global readme summarizing 'year' results.
Each year has a readme summarizing 'day' results (mostly same as before with some typo fixes/formatting).
Each day has a readme summarizing solutions in the Results section.
The year and day readmes also pull the puzzle/day titles.
Same as the previous year readme, the global and day readmes automatically update when submitting solutions (or when update:readme is ran).
Puzzle automation improvements
Puzzle title is pulled and stored in readme files and .aocrunner.json file.
The sample input is attempted to be pulled and if successful and a {testData} placeholder is found in the template index.ts file, it will be replaced with the sample input.
Core Updates
Obviously had to pass 'year' around to several of the core functions.
Refactored Config object definition to support multiple years.
Added src/template to tsconfig.jsonexclude list.
Changed the tsconfig.jsonoutdir to ./lib to match the build script (in attempt to support VS Code debugging).
Various improvements and multi year support. See my repo for idea of what it now looks like.
Instead of replicating
aocrunner
every year, each year is nested undersrc\NNNN
whereNNNN
is the year.npm start
now requires a year and day parameter, e.g.npm start 2019 1
update:readme
now requires a year parameter, e.g.npm run update:readme 2019
build
now requires a year parameter, e.g.npm run build 2019
Readme improvements
Results
section.update:readme
is ran).Puzzle automation improvements
.aocrunner.json
file.{testData}
placeholder is found in the templateindex.ts
file, it will be replaced with the sample input.Core Updates
Config
object definition to support multiple years.src/template
totsconfig.json
exclude
list.tsconfig.json
outdir
to./lib
to match the build script (in attempt to support VS Code debugging).