Skip to content

Commit 03d9791

Browse files
authored
Initial commit
0 parents  commit 03d9791

37 files changed

+4455
-0
lines changed

.dockerignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Folders
2+
.git
3+
.github
4+
.vscode
5+
dist
6+
docs
7+
node_modules
8+
9+
# Files
10+
.dockerignore
11+
.editorconfig
12+
.eslintignore
13+
.eslintrc.yaml
14+
.gitignore
15+
.prettierignore
16+
.prettierrc.yaml
17+
*.md
18+
*.test.ts
19+
*.tsbuildinfo
20+
*.txt
21+
Dockerfile
22+
tsconfig.eslint.json
23+
typedoc.json

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = tab
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.yaml]
12+
indent_style = space

.env

Whitespace-only changes.

.github/.markdownlint.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/DavidAnson/markdownlint/refs/heads/main/schema/markdownlint-config-schema.json
2+
extends: ../.markdownlint.yaml
3+
first-line-heading: false

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @NatoBoram

.github/FUNDING.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
github:
2+
- NatoBoram
3+
patreon: NatoBoram
4+
custom:
5+
- https://paypal.me/NatoBoram/5

.github/copilot-instructions.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
- Avoid `else` by using early `return` or new functions.
2+
- Avoid classes unless they implement a shared behaviour or hide a private state.
3+
- Avoid function-wide scopes, particularly `try`/`catch` and `if`. Instead, make a separate function for its inner scope and have its parent handle the conditions and error handlings.
4+
- Avoid nesting by using early `return` or new functions.
5+
- If a block of code is so complex that it has a paragraph to explain it, move it to a separate function.
6+
- If a method does not use `this`, move it outside the class.
7+
- Instead of using `let`, use `const` and make a function that directly gives the correct value.
8+
- Make all interfaces `readonly`.
9+
- Never use `any`.
10+
- Never use `as`.
11+
- Never use `enum`; replace them by objects with a `const` assertion and export its values as a type alias.
12+
- Never use Hungarian notation.
13+
- Never use tuples; replace them by interfaces.
14+
- Prefer passing around the original object such as `Date` and `URL` instead of serializing it.
15+
- Remove comments that are just repeating the next line. The same goes for `@params` and `@returns` in JSDoc.
16+
- When a comment precedes a declaration, turn it to a TSDoc when that makes sense.

.github/dependabot.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: /
5+
schedule:
6+
interval: monthly
7+
timezone: America/Toronto
8+
commit-message:
9+
prefix: "⬆️ "
10+
groups:
11+
patch:
12+
update-types:
13+
- patch
14+
minor-development:
15+
update-types:
16+
- minor
17+
dependency-type: development
18+
minor-production:
19+
update-types:
20+
- minor
21+
dependency-type: production
22+
eslint:
23+
patterns:
24+
- "*eslint*"
25+
prettier:
26+
patterns:
27+
- "*prettier*"
28+
typescript:
29+
patterns:
30+
- "*typescript*"
31+
- tsx
32+
- typedoc
33+
34+
- package-ecosystem: github-actions
35+
directory: /
36+
schedule:
37+
interval: monthly
38+
timezone: America/Toronto
39+
commit-message:
40+
prefix: "⬆️ "

.github/pull_request_template.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- Replace this by a short description under 60 characters -->
2+
3+
### 📝 Description
4+
5+
<!-- Why this pull request? -->
6+
7+
<!-- Why is this the best solution? -->
8+
9+
<!-- What you did -->
10+
11+
### 📓 References
12+
13+
<!-- A list of links to discussions, documentation, issues, pull requests -->

.github/workflows/docker.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Docker CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
merge_group:
8+
branches:
9+
- main
10+
push:
11+
branches:
12+
- main
13+
tags:
14+
- v*
15+
16+
jobs:
17+
docker:
18+
runs-on: ubuntu-latest
19+
20+
if: github.actor != 'nektos/act'
21+
22+
permissions:
23+
packages: write
24+
contents: read
25+
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- uses: docker/login-action@v3
30+
if: github.actor != 'dependabot[bot]'
31+
with:
32+
username: ${{ vars.DOCKER_USERNAME }}
33+
password: ${{ secrets.DOCKER_PASSWORD }}
34+
35+
- uses: docker/login-action@v3
36+
if: github.actor != 'dependabot[bot]'
37+
with:
38+
registry: ghcr.io
39+
username: ${{ github.actor }}
40+
password: ${{ secrets.GITHUB_TOKEN }}
41+
42+
- id: meta
43+
uses: docker/metadata-action@v5
44+
with:
45+
images: |
46+
natoboram/gigachad.ts
47+
ghcr.io/${{ github.repository }}
48+
tags: |
49+
type=ref,event=tag
50+
type=semver,pattern={{major}}
51+
type=semver,pattern={{major}}.{{minor}}
52+
type=semver,pattern={{major}}.{{minor}}.{{patch}}
53+
type=semver,pattern={{version}}
54+
55+
- uses: docker/build-push-action@v6
56+
with:
57+
context: .
58+
push: ${{ github.ref_type == 'tag' }}
59+
tags: ${{ steps.meta.outputs.tags }}
60+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy