npx create-ts-aoc-starter
This will create a new workspace in the current directory with the following structure:
ts-aoc-starter
├── puzzles
│ ├── day-1
│ │ ├── day-1-a.data.txt
│ │ ├── day-1-a.sample-data.txt
│ │ ├── day-1-a.ts
│ │ ├── day-1-b.data.txt
│ │ ├── day-1-b.sample-data.txt
│ │ └── day-1-b.ts
│ ├── day-2
│ ├── day-3
Copy and paste the sample data given in the problem into the day-X-a.sample-data.txt
file.
Copy and paste your larger unique actual data set into the day-X-a.data.txt
file.
Add your solution to the day-X-a.ts
file.
To run your solution against your sample data set, run the following command:
nx day-1-a --data=sample
or
npm run day-1-a:sample
To run your solution against your actual data set, run the following command:
nx day-1-a
or
npm run day-1-a