https://github.com/mabuonomo/adventofcode-ts
Solutions of https://adventofcode.com in typescript
https://github.com/mabuonomo/adventofcode-ts
advent-of-code-2018 docker ts-node typescript
Last synced: about 1 year ago
JSON representation
Solutions of https://adventofcode.com in typescript
- Host: GitHub
- URL: https://github.com/mabuonomo/adventofcode-ts
- Owner: mabuonomo
- License: mit
- Created: 2018-12-01T22:16:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T02:09:54.000Z (about 3 years ago)
- Last Synced: 2025-01-15T04:16:28.615Z (about 1 year ago)
- Topics: advent-of-code-2018, docker, ts-node, typescript
- Language: TypeScript
- Homepage:
- Size: 1.15 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Advent of Code - TS
The solutions are in typescript language.
Years:
- 2017 (partial)
- 2018 (partial)
- 2019 (wip)
## Build
```bash
docker-compose build
```
## Run
```bash
docker-compose run app ts-node src/{year}/{day}/day.ts
```
Example
```bash
docker-compose run app npm run format
docker-compose run app ts-node src/2018/day1/part1.ts
```
## Testing (using Jest)
```bash
docker-compose run app npm test
```
# Improve your skills, test your performance
This project uses the performaceLog decorator (https://github.com/mabuonomo/decorators-utils-ts)
## Install
```bash
npm install --save decorators-utils-ts
```
## Usage
```ts
@performanceLog(true) // <-- decorator
myMethod(): boolean {
return true
}
```
Result
```bash
Call [3ms]: myMethod() => true
```