create-ts-aoc-starter
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

ts-aoc-starter

Getting Started

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

Running the Puzzles

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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i create-ts-aoc-starter

    Weekly Downloads

    12

    Version

    1.0.4

    License

    none

    Unpacked Size

    3.28 kB

    Total Files

    5

    Last publish

    Collaborators

    • zackderose