Skip to content

Commit

Permalink
chore: init task for 2023 01
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAegis committed Dec 1, 2023
1 parent bcefe74 commit 3fa7f52
Show file tree
Hide file tree
Showing 29 changed files with 495 additions and 11 deletions.
6 changes: 6 additions & 0 deletions .github/badges/python/2023.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"schemaVersion": 1,
"label": "Advent of Python 2023",
"message": "0/25",
"color": "red"
}
6 changes: 6 additions & 0 deletions .github/badges/rust/2023.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"schemaVersion": 1,
"label": "Advent of Rust 2023",
"message": "0/25",
"color": "red"
}
6 changes: 6 additions & 0 deletions .github/badges/typescript/2023.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"schemaVersion": 1,
"label": "Advent of TypeScript 2023",
"message": "0/25",
"color": "red"
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
"solutions/typescript/2019/*",
"solutions/typescript/2020/*",
"solutions/typescript/2021/*",
"solutions/typescript/2022/*"
"solutions/typescript/2022/*",
"solutions/typescript/2023/*"
],
"scripts": {
"build": "turbo run build-lib_ build-app_ --concurrency 16 --cache-dir .cache/turbo",
Expand Down
34 changes: 34 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ packages:
- 'solutions/typescript/2020/*'
- 'solutions/typescript/2021/*'
- 'solutions/typescript/2022/*'
- 'solutions/typescript/2023/*'
link-workspace-packages: 'deep'
11 changes: 7 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
## [TypeScript](./solutions/typescript)

[![2023 TypeScript Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/typescript/2023.json)](/solutions/typescript/2023/)
[![2022 TypeScript Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/typescript/2022.json)](/solutions/typescript/2022/)
[![2021 TypeScript Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/typescript/2021.json)](/solutions/typescript/2021/)
[![2020 TypeScript Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/typescript/2020.json)](/solutions/typescript/2020/)
Expand All @@ -40,7 +41,7 @@ pnpm install

```sh
# Navigate to the solution
cd solutions/typescript/2022/01
cd solutions/typescript/2023/01
pnpm p1
pnpm p2
```
Expand All @@ -59,15 +60,15 @@ pnpm test

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

### Benchmarking individual TypeScript solutions

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

Expand All @@ -81,14 +82,15 @@ pnpm lint

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

## [Rust](./solutions/rust)

[![2023 Rust Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/rust/2023.json)](/solutions/rust/2023/)
[![2022 Rust Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/rust/2022.json)](/solutions/rust/2022/)
[![2021 Rust Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/rust/2021.json)](/solutions/rust/2021/)
[![2020 Rust Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/rust/2020.json)](/solutions/rust/2020/)
Expand All @@ -100,6 +102,7 @@ pnpm lint:format

## [Python](./solutions/python)

[![2023 Python Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/python/2023.json)](/solutions/python/year2023/)
[![2022 Python Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/python/2022.json)](/solutions/python/year2022/)
[![2021 Python Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/python/2021.json)](/solutions/python/year2021/)
[![2020 Python Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/python/2020.json)](/solutions/python/year2020/)
Expand Down
Empty file added resources/2023/01/example.1.txt
Empty file.
Empty file added resources/2023/01/input.txt
Empty file.
36 changes: 36 additions & 0 deletions solutions/python/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# Advent of Code Python Solutions

## [2023](https://adventofcode.com/2023/)

[![2023 Python Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/python/2023.json)](/solutions/python/year2023/)

<!-- markdownlint-disable MD013 -->

| Day | Part One | Part Two |
| ------ | -------- | -------- |
| Day 1 | - | - |
| Day 2 | - | - |
| Day 3 | - | - |
| Day 4 | - | - |
| Day 5 | - | - |
| Day 6 | - | - |
| Day 7 | - | - |
| Day 8 | - | - |
| Day 9 | - | - |
| Day 10 | - | - |
| Day 11 | - | - |
| Day 12 | - | - |
| Day 13 | - | - |
| Day 14 | - | - |
| Day 15 | - | - |
| Day 16 | - | - |
| Day 17 | - | - |
| Day 18 | - | - |
| Day 19 | - | - |
| Day 20 | - | - |
| Day 21 | - | - |
| Day 22 | - | - |
| Day 23 | - | - |
| Day 24 | - | - |
| Day 25 | - | - |

<!-- markdownlint-enable MD013 -->

## [2022](https://adventofcode.com/2022/)

[![2022 Python Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/python/2022.json)](/solutions/python/year2022/)
Expand Down
72 changes: 72 additions & 0 deletions solutions/rust/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,77 @@
# Advent of Code Rust Solutions

## [2023](https://adventofcode.com/2023/)

[![2023 Rust Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/rust/2023.json)](/solutions/rust/2023/)

<!-- markdownlint-disable MD013 -->

| Day | Part One | Part Two |
| ------ | -------- | -------- |
| Day 1 | - | - |
| Day 2 | - | - |
| Day 3 | - | - |
| Day 4 | - | - |
| Day 5 | - | - |
| Day 6 | - | - |
| Day 7 | - | - |
| Day 8 | - | - |
| Day 9 | - | - |
| Day 10 | - | - |
| Day 11 | - | - |
| Day 12 | - | - |
| Day 13 | - | - |
| Day 14 | - | - |
| Day 15 | - | - |
| Day 16 | - | - |
| Day 17 | - | - |
| Day 18 | - | - |
| Day 19 | - | - |
| Day 20 | - | - |
| Day 21 | - | - |
| Day 22 | - | - |
| Day 23 | - | - |
| Day 24 | - | - |
| Day 25 | - | - |

<!-- markdownlint-enable MD013 -->

## [2022](https://adventofcode.com/2022/)

[![2022 Rust Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/rust/2022.json)](/solutions/rust/2022/)

<!-- markdownlint-disable MD013 -->

| Day | Part One | Part Two |
| ------ | -------- | -------- |
| Day 1 | - | - |
| Day 2 | - | - |
| Day 3 | - | - |
| Day 4 | - | - |
| Day 5 | - | - |
| Day 6 | - | - |
| Day 7 | - | - |
| Day 8 | - | - |
| Day 9 | - | - |
| Day 10 | - | - |
| Day 11 | - | - |
| Day 12 | - | - |
| Day 13 | - | - |
| Day 14 | - | - |
| Day 15 | - | - |
| Day 16 | - | - |
| Day 17 | - | - |
| Day 18 | - | - |
| Day 19 | - | - |
| Day 20 | - | - |
| Day 21 | - | - |
| Day 22 | - | - |
| Day 23 | - | - |
| Day 24 | - | - |
| Day 25 | - | - |

<!-- markdownlint-enable MD013 -->

## [2021](https://adventofcode.com/2021/)

[![2021 Rust Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/rust/2021.json)](/solutions/rust/2021/)
Expand Down
1 change: 1 addition & 0 deletions solutions/typescript/2015/01/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"@alexaegis/vite": "^0.9.1",
"@alexaegis/vitest": "^0.9.1",
"@types/node": "^20.10.1",
"ts-node": "^10.9.1",
"vite": "^5.0.4",
"vitest": "^0.34.6"
}
Expand Down
2 changes: 1 addition & 1 deletion solutions/typescript/2015/01/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json.schemastore.org/tsconfig?mark=managed-by-autotool",
"extends": "@alexaegis/ts/node",
"extends": "./node_modules/@alexaegis/ts/node.json",
"compilerOptions": {
"rootDir": "../../../../",
"outDir": ".cache/tsc"
Expand Down
13 changes: 13 additions & 0 deletions solutions/typescript/2023/01/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# managed-by-autotool

package-lock.json
node_modules
vite.config.ts.*
vitest.config.ts.*
shims
typedoc

# sveltekit
.svelte-kit
.vercel
build
6 changes: 6 additions & 0 deletions solutions/typescript/2023/01/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// managed-by-autotool

/** @type {import('eslint').Linter.Config} */
module.exports = {
extends: ['../../../../.eslintrc.cjs', '@alexaegis/eslint-config-vitest'],
};
38 changes: 38 additions & 0 deletions solutions/typescript/2023/01/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# managed-by-autotool
# Add files here to ignore them from prettier formatting

# node
node_modules
package-lock.json
pnpm-lock.yaml
yarn.lock

# build artifacts
dist
public/build
build
.svelte-kit
.vercel
typedoc

# test artifacts
coverage
.vscode/chrome
.nyc_output
vite.config.ts.*
vitest.config.ts.*

# turbo
.turbo

# rust
target
*.lock

# python
.pytest_cache

# others
.cache
.benchmark
CHANGELOG.md
Loading

0 comments on commit 3fa7f52

Please sign in to comment.