Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

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
```