Skip to content
This repository was archived by the owner on Mar 10, 2023. It is now read-only.

Commit 5ccd07b

Browse files
committed
feat: initial commit
0 parents  commit 5ccd07b

20 files changed

+3662
-0
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: npm
5+
directory: /
6+
schedule:
7+
interval: monthly
8+
- package-ecosystem: github-actions
9+
directory: /
10+
schedule:
11+
interval: monthly

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
build:
9+
name: Build
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: 16
16+
cache: yarn
17+
- run: yarn install --frozen-lockfile
18+
- name: Run yarn commitlint --from=head_commit.message
19+
run: echo "${{ github.event.head_commit.message }}" | yarn commitlint
20+
- run: yarn prettier --check .
21+
- run: yarn cspell --no-must-find-files '**'
22+
- run: yarn build

.github/workflows/pr-metadata.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: PR / Metadata
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
types: [opened, synchronize, reopened, edited]
7+
8+
permissions:
9+
pull-requests: write
10+
contents: write
11+
12+
jobs:
13+
validate-metadata:
14+
name: Validate metadata
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: actions/setup-node@v3
19+
with:
20+
node-version: 16
21+
cache: yarn
22+
- run: yarn install --frozen-lockfile
23+
- name: Run yarn commitlint --from=pull_request.title
24+
run: echo "${{ github.event.pull_request.title }}" | yarn commitlint
25+
auto-merge:
26+
name: Auto-merge
27+
if: ${{ github.actor == 'dependabot[bot]' }}
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: dependabot/[email protected]
31+
id: dependabot-metadata
32+
with:
33+
github-token: "${{ secrets.GITHUB_TOKEN }}"
34+
- run: gh pr merge --auto --squash ${{ github.event.pull_request.html_url }}
35+
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }}
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pr-sources.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: PR / Sources
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
validate-sources:
9+
name: Validate sources
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: 16
16+
cache: yarn
17+
- run: yarn install --frozen-lockfile
18+
- run: yarn prettier --check .
19+
- run: yarn cspell --no-must-find-files '**'
20+
- run: yarn build

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
out
3+
.env
4+
.DS_Store

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn commitlint --edit $1

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn lint-staged

.prettierignore

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

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"esbenp.prettier-vscode",
4+
"streetsidesoftware.code-spell-checker",
5+
"vivaxy.vscode-conventional-commits"
6+
]
7+
}

.vscode/settings.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"javascript.suggestionActions.enabled": false,
3+
"editor.defaultFormatter": "esbenp.prettier-vscode",
4+
"editor.formatOnSave": true,
5+
"files.trimTrailingWhitespace": true,
6+
"files.trimFinalNewlines": true,
7+
"files.insertFinalNewline": true,
8+
"files.exclude": {
9+
"**/node_modules": true,
10+
"yarn.lock": true,
11+
".husky": true
12+
},
13+
"conventionalCommits.gitmoji": false
14+
}

0 commit comments

Comments
 (0)