Skip to content

Commit 82a580c

Browse files
committed
chore: create project
0 parents  commit 82a580c

33 files changed

+8733
-0
lines changed

.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.idea
2+
node_modules
3+
*.js
4+
*.d.ts
5+
*.js.map
6+
!/types/*.d.ts

.github/workflows/ci.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI
2+
on: [push, pull_request]
3+
env:
4+
CI: true
5+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
6+
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
7+
DEPLOY_NODE_VERSION: 21.x
8+
jobs:
9+
build-and-test:
10+
name: Build and Test
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [18.x, 20.x, 21.x]
15+
steps:
16+
- name: git checkout
17+
uses: actions/checkout@v4
18+
- name: yarn cache
19+
uses: actions/cache@v4
20+
with:
21+
path: ~/.yarn/berry/cache
22+
key: ${{runner.os}}-node${{matrix.node-version}}-yarn-${{hashFiles('**/yarn.lock')}}
23+
restore-keys: ${{runner.os}}-node${{matrix.node-version}}-yarn-
24+
- name: Set up Node.js v${{matrix.node-version}}
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: ${{matrix.node-version}}
28+
- run: corepack yarn
29+
- run: corepack yarn test
30+
- run: corepack yarn lint
31+
#deploy:
32+
# name: Deploy
33+
# runs-on: ubuntu-latest
34+
# needs: build-and-test
35+
# steps:
36+
# - name: git checkout
37+
# uses: actions/checkout@v4
38+
# - name: yarn cache
39+
# uses: actions/cache@v4
40+
# with:
41+
# path: ~/.yarn/berry/cache
42+
# key: ${{runner.os}}-node${{env.DEPLOY_NODE_VERSION}}-yarn-${{hashFiles('**/yarn.lock')}}
43+
# restore-keys: ${{runner.os}}-node${{env.DEPLOY_NODE_VERSION}}-yarn-
44+
# - name: Set up Node.js
45+
# uses: actions/setup-node@v4
46+
# with:
47+
# node-version: ${{env.DEPLOY_NODE_VERSION}}
48+
# - run: corepack yarn
49+
# - run: corepack yarn semantic-release

.gitignore

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Build output
2+
*.js
3+
*.d.ts
4+
*.js.map
5+
!/types/*.d.ts
6+
7+
# Yarn 2
8+
/node_modules
9+
/.pnp.*
10+
/.yarn/*
11+
!/.yarn/patches
12+
!/.yarn/plugins
13+
!/.yarn/releases
14+
!/.yarn/sdks
15+
!/.yarn/versions
16+
yarn-error.log
17+
18+
# In case someone runs npm by accident
19+
package-lock.json
20+
npm-debug.log*
21+
22+
# Personal WebStorm IDE files
23+
/.idea/workspace.xml
24+
/.idea/tasks.xml
25+
/.idea/shelf
26+
27+
# macOS
28+
.DS_Store
29+
.AppleDouble
30+
.LSOverride
31+
._*
32+
.DocumentRevisions-V100
33+
.fseventsd
34+
.Spotlight-V100
35+
.TemporaryItems
36+
.Trashes
37+
.VolumeIcon.icns
38+
.AppleDB
39+
.AppleDesktop
40+
Network Trash Folder
41+
Temporary Items
42+
.apdisk
43+
44+
# Windows
45+
Thumbs.db
46+
ehthumbs.db
47+
Desktop.ini
48+
$RECYCLE.BIN/

.husky/commit-msg

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

.husky/common.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
command_exists () {
2+
command -v "$1" >/dev/null 2>&1
3+
}
4+
5+
# Workaround for Windows 10, Git Bash and Yarn, https://typicode.github.io/husky/#/?id=yarn-on-windows
6+
if command_exists winpty && test -t 1; then
7+
exec < /dev/tty
8+
fi

.husky/pre-commit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
. "$(dirname "$0")/common.sh"
2+
3+
yarn precise-commits

.idea/.gitignore

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/angular-settings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/Project.xml

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)