Skip to content

Commit 057eab4

Browse files
authored
feat: implement first release
1 parent 1d1e695 commit 057eab4

39 files changed

Lines changed: 3677 additions & 0 deletions

.eslintrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": [
3+
"eslint:recommended",
4+
"plugin:@typescript-eslint/recommended",
5+
"prettier"
6+
],
7+
"parser": "@typescript-eslint/parser",
8+
"plugins": ["@typescript-eslint"],
9+
"root": true,
10+
"env": {
11+
"node": true
12+
}
13+
}

.github/workflows/codecov.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Codecov
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
run-tests:
9+
name: Run tests
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node-version: [14.x]
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v2
18+
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v2
21+
with:
22+
registry-url: https://registry.npmjs.org
23+
24+
- name: Restore yarn cache if available
25+
uses: actions/cache@v2
26+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
27+
with:
28+
path: |
29+
node_modules
30+
*/*/node_modules
31+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
32+
33+
- name: Install dependencies
34+
run: |
35+
yarn install --frozen-lockfile
36+
37+
- name: Generate coverage reports
38+
run: |
39+
yarn test:ci
40+
env:
41+
CI: true
42+
43+
- name: Upload coverage
44+
uses: codecov/codecov-action@v3

.github/workflows/test.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Test
2+
on:
3+
pull_request:
4+
types: [opened, reopened, synchronize]
5+
6+
jobs:
7+
run-tests:
8+
name: Run tests
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
node-version: [14.x]
13+
14+
steps:
15+
- name: Cancel previous runs
16+
uses: styfle/cancel-workflow-action@0.5.0
17+
with:
18+
access_token: ${{ github.token }}
19+
20+
- name: Checkout repository
21+
uses: actions/checkout@v2
22+
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v2
25+
with:
26+
registry-url: https://registry.npmjs.org
27+
28+
- name: Restore yarn cache if available
29+
uses: actions/cache@v2
30+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
31+
with:
32+
path: |
33+
node_modules
34+
*/*/node_modules
35+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
36+
37+
- name: Install dependencies
38+
run: |
39+
yarn install --frozen-lockfile
40+
41+
- name: Run TypeScript type checker
42+
run: |
43+
yarn ts:check
44+
env:
45+
CI: true
46+
47+
- name: Run formatting check
48+
run: |
49+
yarn format:check
50+
env:
51+
CI: true
52+
53+
- name: Run linting check
54+
run: |
55+
yarn lint
56+
env:
57+
CI: true
58+
59+
- name: Run tests
60+
run: |
61+
yarn test:ci
62+
env:
63+
CI: true
64+
65+
- name: Upload coverage
66+
uses: codecov/codecov-action@v3

.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
25+
26+
# Vitest
27+
coverage

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist
2+
node_modules
3+
coverage

.prettierrc

Whitespace-only changes.

0 commit comments

Comments
 (0)