Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/textbook/aoc-2021

Implementations for the 2021 Advent of Code
https://github.com/textbook/aoc-2021

advent-of-code advent-of-code-2021

Last synced: 2 days ago
JSON representation

Implementations for the 2021 Advent of Code

Awesome Lists containing this project

README

        

# Advent of Code 2021

Implementations for the 2021 [Advent of Code][1].

## Requirements

Written for Node 16.

_(It would probably work on earlier versions if you tweaked the `tsconfig.json` per [the docs][5].)_

## Setup

- Clone this repository to your local machine
- Use `npm install` to install the dependencies

## Scripts

- `build`: compile [TypeScript][4] in `src/` to JavaScript in `lib/`
- `day`: build all code then run the exercise for a specified day (e.g. `npm run day 1`)
- `lint`: check the code style with [ESLint][6]
- `new`: bootstrap a new day's code structure in `src/dayXX/` (e.g. `npm run new 2`)
- `ship`: run linting and tests, then push to the remote if everything passed
- `test`: run the [Mocha][2]/[Chai][3] tests

[1]: https://adventofcode.com/
[2]: https://mochajs.org/
[3]: https://www.chaijs.com/
[4]: https://www.typescriptlang.org/
[5]: https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping
[6]: https://eslint.org/