Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iwharris/aoc
Advent of Code solutions in a command-line tool
https://github.com/iwharris/aoc
Last synced: 1 day ago
JSON representation
Advent of Code solutions in a command-line tool
- Host: GitHub
- URL: https://github.com/iwharris/aoc
- Owner: iwharris
- License: mit
- Created: 2019-10-05T16:57:08.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-01T00:06:29.000Z (11 months ago)
- Last Synced: 2024-01-01T06:53:15.574Z (11 months ago)
- Language: TypeScript
- Homepage:
- Size: 1.03 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![master build status](https://github.com/iwharris/aoc/actions/workflows/build.yaml/badge.svg?branch=master)](https://github.com/iwharris/aoc/actions/workflows/build.yaml)
# aoc
Advent of Code solutions
## Development
Clone the repository:
```bash
git clone [email protected]:iwharris/aoc.git
```Run the CLI, skipping compilation:
```bash
# See usage instructions for the CLI
npm run dev# To solve a challenge with an input file
npm run dev solve 2022.1 < input/2022.1.txt
```Run the CLI by compiling and then executing the compiled JS:
```bash
npm run compile# Then, run through npm
npm run aoc solve 2022.1 < input/2022.1.txt# Or run with node:
node dist/src/index.js solve 2022.1 < input/2022.1.txt
```## Code Style
Using `prettier` and `eslint`, check that files are formatted properly:
```bash
# Run prettier and eslint
npm run lint# To run prettier and eslint individually
npm run prettier
npm run eslint
```To automatically fix formatting:
```bash
npm run lint:fix
```## Testing
Run the test suite:
```bash
npm test
```Generate a coverage report:
```bash
npm run test:coverage
```