Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/n8brooks/deno_aoc
🎄 Advent of code solutions written in TypeScript for Deno.
https://github.com/n8brooks/deno_aoc
advent-of-code deno typescript
Last synced: 6 days ago
JSON representation
🎄 Advent of code solutions written in TypeScript for Deno.
- Host: GitHub
- URL: https://github.com/n8brooks/deno_aoc
- Owner: N8Brooks
- License: mit
- Created: 2021-10-06T03:34:49.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-18T22:05:43.000Z (over 2 years ago)
- Last Synced: 2024-12-09T18:46:45.716Z (16 days ago)
- Topics: advent-of-code, deno, typescript
- Language: TypeScript
- Homepage:
- Size: 1.04 MB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# deno_aoc
[![code_cov](https://codecov.io/gh/N8Brooks/deno_aoc/branch/main/graph/badge.svg?token=7S2WQSKUVD)](https://codecov.io/gh/N8Brooks/deno_aoc)
[![deno_aoc](https://github.com/N8Brooks/deno_aoc/actions/workflows/deno_aoc.yaml/badge.svg)](https://github.com/N8Brooks/deno_aoc/actions/workflows/deno_aoc.yaml)Advent of Code solutions written in TypeScript for Deno.
## Testing
- Testing uses
[BDD](https://deno.land/[email protected]/testing#behavior-driven-development) from
the Deno standard library.
- Testing the MD5 hashing problems takes a while so it's best to ignore them.
- Tests are run in the github actions.```bash
deno test --allow-read --ignore="year_2015/day_04_test.ts,year_2016/day_05_test.ts,year_2016/day_14_test.ts"
```## Benchmarking
- Benchmarking is done with the standard `Deno.bench()` function.
- Like with testing, it's best to ignore the MD5 hash based problems.```bash
deno bench --allow-read --unstable --ignore="year_2015/day_04_bench.ts,year_2016/day_05_bench.ts,year_2016/day_14_bench.ts"
```## Linting
- Linting is done with no arguments using Deno.
- Linting is checked in the github actions.```bash
deno lint
```## Formatting
- Formatting is done using no arguments with Deno.
- It is also checked in the github actions.
- Running this on windows may cause problems relating to the preferred newline
character.```bash
deno fmt
```## Styling
- This project follows the
[Deno Style Guide](https://deno.land/manual/contributing/style_guide).
- Dependencies are managed in the `deps.ts` and `test_deps.ts` file as
recommended by the
[Managing Dependencies](https://deno.land/[email protected]/examples/manage_dependencies)
section of the Deno Manual.
- Project structure follows a year_20XX/day_XX.ts pattern where each day_XX.ts
file has a `part1` and a `part2` named export function.