Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/textbook/aoc-2021
- Owner: textbook
- License: isc
- Created: 2021-12-01T16:04:21.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-19T15:21:52.000Z (about 3 years ago)
- Last Synced: 2024-11-10T20:42:07.488Z (2 months ago)
- Topics: advent-of-code, advent-of-code-2021
- Language: TypeScript
- Homepage: https://adventofcode.com/2021
- Size: 191 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/