Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tatupesonen/aoc-typescript-starter
Starter for TypeScript projects. Provides automatic input fetching & creating from a template.
https://github.com/tatupesonen/aoc-typescript-starter
Last synced: 3 months ago
JSON representation
Starter for TypeScript projects. Provides automatic input fetching & creating from a template.
- Host: GitHub
- URL: https://github.com/tatupesonen/aoc-typescript-starter
- Owner: tatupesonen
- Created: 2021-01-10T23:55:18.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-30T21:24:05.000Z (almost 3 years ago)
- Last Synced: 2024-05-18T21:42:42.435Z (6 months ago)
- Language: TypeScript
- Size: 51.8 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-advent-of-code - nnari/aoc-typescript-starter
README
# Requirements
Node, tested on Node 16
npm## Setup
```
npm install
```
You also need to create a `.env` file at project root with the contents of:
`SESSION_COOKIE=your advent-of-code session cookie`## Usage
Let's say you want to create the project structure for 2020's day 1 challenge. To scaffold the project, get input & README, you would run:
```bash
npm start create 2020 1
# for languages, add "ts", "typescript", "rs" or "rust" at the end of the file. Same goes for running.
npm start create 2020 1 rust
```To run the challenge, you would run:
```
npm start run 2020 1
```