An open API service indexing awesome lists of open source software.

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

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
```