Skip to content

Commit f06a2fd

Browse files
committed
feat: init project
0 parents  commit f06a2fd

20 files changed

+2856
-0
lines changed

.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
root = true
2+
3+
[*]
4+
indent_size = 2
5+
end_of_line = lf
6+
insert_final_newline = true

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
dist
3+
pnpm-lock.yaml
4+
tests/fixtures

.eslintrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const { defineConfig } = require('eslint-define-config')
2+
3+
module.exports = defineConfig({
4+
extends: ['@sxzz/eslint-config-ts', '@sxzz/eslint-config-prettier'],
5+
})

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/FUNDING.yml

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

.github/renovate.json5

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
extends: ['config:base', 'schedule:weekly', 'group:allNonMajor'],
3+
labels: ['dependencies'],
4+
pin: false,
5+
rangeStrategy: 'bump',
6+
node: false,
7+
packageRules: [
8+
{
9+
depTypeList: ['peerDependencies'],
10+
enabled: false,
11+
},
12+
],
13+
ignoreDeps: ['node'],
14+
}

.github/workflows/unit-test.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Unit Test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, windows-latest]
14+
node-version: [14.x, 16.x]
15+
fail-fast: false
16+
17+
runs-on: ${{ matrix.os }}
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- uses: actions/setup-node@v2
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
26+
- name: Cache ~/.pnpm-store
27+
uses: actions/cache@v2
28+
env:
29+
cache-name: cache-pnpm-store
30+
with:
31+
path: ~/.pnpm-store
32+
key: ${{ runner.os }}-${{ matrix.node-version }}-test-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }}
33+
restore-keys: |
34+
${{ runner.os }}-${{ matrix.node-version }}-test-${{ env.cache-name }}-
35+
${{ runner.os }}-${{ matrix.node-version }}-test-
36+
${{ runner.os }}-
37+
38+
- name: Install pnpm
39+
run: npm i -g pnpm
40+
41+
- name: Install deps
42+
run: pnpm i --frozen-lockfile
43+
44+
- name: Build
45+
run: pnpm build
46+
47+
- name: Test
48+
run: pnpm test

.gitignore

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

.prettierignore

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

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "http://json.schemastore.org/prettierrc",
3+
"semi": false,
4+
"singleQuote": true
5+
}

0 commit comments

Comments
 (0)