Skip to content

Commit e43c7c9

Browse files
authored
Merge pull request #62 from MQpeng/vite
Vite
2 parents 6833cde + 402fecb commit e43c7c9

File tree

11 files changed

+1320
-1422
lines changed

11 files changed

+1320
-1422
lines changed

.github/workflows/npm-publish-github-packages.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ jobs:
1515
- uses: actions/setup-node@v3
1616
with:
1717
node-version: 20
18-
- run: npm ci
19-
- run: npm run build:publish
20-
- run: npm test
18+
- name: Install pnpm
19+
uses: pnpm/[email protected]
20+
- name: Install deps
21+
run: pnpm install
22+
- run: pnpm build:publish
23+
- run: pnpm test
2124

2225
publish-npm:
2326
needs: build
@@ -31,7 +34,10 @@ jobs:
3134
with:
3235
node-version: 20
3336
registry-url: https://registry.npmjs.org/
34-
- run: npm ci
37+
- name: Install pnpm
38+
uses: pnpm/[email protected]
39+
- name: Install deps
40+
run: pnpm install
3541
- run: npm publish
3642
env:
3743
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.github/workflows/test.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ jobs:
2626
with:
2727
node-version: ${{ matrix.node-version }}
2828
cache: 'npm'
29-
- run: npm ci
30-
- run: npm run build
31-
- run: npm run lint:ci
32-
- run: npm run build:publish
33-
- run: npm test
29+
- name: Install pnpm
30+
uses: pnpm/[email protected]
31+
- name: Install deps
32+
run: pnpm install
33+
- run: pnpm build
34+
- run: pnpm lint
35+
- run: pnpm build:publish
36+
- run: pnpm test

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,5 @@ Thumbs.db
5252
/test/parsed
5353
/test/readed
5454
/test/builded
55+
56+
.eslintcache

eslint.config.mjs

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import eslint from '@eslint/js';
2+
import tseslint from 'typescript-eslint';
3+
4+
export default tseslint.config(eslint.configs.recommended, tseslint.configs.recommended, {
5+
ignores: ["dist/*","lib/*"],
6+
languageOptions: {
7+
globals: {
8+
Atomics: 'readonly',
9+
SharedArrayBuffer: 'readonly',
10+
},
11+
ecmaVersion: 2018,
12+
sourceType: 'module',
13+
},
14+
15+
rules: {
16+
'no-console': 0,
17+
'no-var': 'warn',
18+
indent: [0, 'tab'],
19+
quotes: [0, 'single'],
20+
semi: [0, 'always'],
21+
'no-useless-escape': 'off',
22+
'no-extra-boolean-cast': 'off',
23+
'no-prototype-builtins': 'off',
24+
'no-unused-vars': 'off',
25+
"prefer-const": 'off',
26+
"@typescript-eslint/no-explicit-any": 'off',
27+
"@typescript-eslint/no-unused-expressions": 'off',
28+
"@typescript-eslint/no-unused-vars": 'off',
29+
"@typescript-eslint/no-wrapper-object-types": 'off'
30+
},
31+
});

0 commit comments

Comments
 (0)