/advent-of-code

My solutions for Advent of Code

Primary LanguageTypeScriptMIT LicenseMIT

typescript ci rust ci python ci

Codacy Badge Maintainability Test Coverage codecov Coverage Status

Last commit on GitHub code style: prettier

This is a multi-language repository, for easy usage, all of them share the same root level. You need to individually set up each language you wish to use.

2023 TypeScript Progress 2022 TypeScript Progress 2021 TypeScript Progress 2020 TypeScript Progress 2019 TypeScript Progress 2018 TypeScript Progress 2017 TypeScript Progress 2016 TypeScript Progress 2015 TypeScript Progress

Setup TypeScript workspace

Install latest stable node and pnpm

pnpm install

Running individual TypeScript solutions

# Navigate to the solution
cd solutions/typescript/2023/01
pnpm p1
pnpm p2

Debugging TypeScript solutions using VS Code

Open the solutions file, then run the [TS] Current File debug profile.

Testing all TypeScript solutions

pnpm test

Testing individual TypeScript solutions

# Navigate to the solution
cd solutions/typescript/2023/01
pnpm test

Benchmarking individual TypeScript solutions

# Navigate to the solution
cd solutions/typescript/2023/01
pnpm bench

Linting all TypeScript solutions

pnpm lint

Linting individual TypeScript solutions

# Navigate to the solution
cd solutions/typescript/2023/01
pnpm lint:tsc
pnpm lint:es
pnpm lint:format

2023 Rust Progress 2022 Rust Progress 2021 Rust Progress 2020 Rust Progress 2019 Rust Progress 2018 Rust Progress 2017 Rust Progress 2016 Rust Progress 2015 Rust Progress

2023 Python Progress 2022 Python Progress 2021 Python Progress 2020 Python Progress 2019 Python Progress 2018 Python Progress 2017 Python Progress 2016 Python Progress 2015 Python Progress

Setup Python workspace

Install latest stable python and pipenv

pipenv install
pipenv shell

Disclaimer

Advent of Code is made by Eric Wastl.