Skip to content

Commit e090623

Browse files
authored
build: upgrade package manager
Upgrade package manager
2 parents e4a8b66 + 9d7d385 commit e090623

File tree

14 files changed

+5087
-3070
lines changed

14 files changed

+5087
-3070
lines changed

.czrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches: [master]
9+
pull_request:
10+
branches: [master]
11+
12+
jobs:
13+
check:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
node-version: [18.x, 20.x]
18+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Install pnpm
25+
uses: pnpm/[email protected]
26+
with:
27+
version: 9.7.0
28+
29+
- name: Use Node.js ${{ matrix.node-version }}
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: ${{ matrix.node-version }}
33+
cache: 'pnpm'
34+
35+
- name: Install dependencies
36+
run: pnpm install --frozen-lockfile
37+
38+
- name: Run prettier check
39+
run: pnpm prettier-check
40+
41+
- name: Run tsc check
42+
run: pnpm check-types
43+
44+
build:
45+
runs-on: ubuntu-latest
46+
strategy:
47+
matrix:
48+
node-version: [18.x, 20.x]
49+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
50+
51+
steps:
52+
- name: Checkout
53+
uses: actions/checkout@v4
54+
55+
- name: Install pnpm
56+
uses: pnpm/[email protected]
57+
with:
58+
version: 9.7.0
59+
60+
- name: Use Node.js ${{ matrix.node-version }}
61+
uses: actions/setup-node@v4
62+
with:
63+
node-version: ${{ matrix.node-version }}
64+
cache: 'pnpm'
65+
66+
- name: Install dependencies
67+
run: pnpm install --frozen-lockfile
68+
69+
- name: Run Build
70+
run: pnpm build

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ package-lock.json
88
.parcel-cache
99
.vscode
1010
example
11-
*.tgz
11+
*.tgz
12+
.DS_Store

.gitlab-ci.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.lintstagedrc.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

.npmignore

Lines changed: 0 additions & 16 deletions
This file was deleted.

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ npm-debug.log
66
debug.log
77
yarn-error.log
88
package-lock.json
9-
lib/
9+
lib/
10+
CHANGELOG.md

.prettierrc

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
{
2-
"singleQuote": true,
3-
"trailingComma": "es5",
2+
"semi": true,
43
"tabWidth": 4,
54
"printWidth": 80,
6-
"overrides": [
7-
{
8-
"files": "**/.prettierrc",
9-
"options": { "parser": "json" }
10-
}
11-
]
5+
"singleQuote": true,
6+
"useTabs": false,
7+
"bracketSpacing": true,
8+
"arrowParens": "always",
9+
"trailingComma": "es5"
1210
}
13-

CHANGELOG.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575

7676
#### 其他
7777

78-
- 🛠 `commonFileEditDelegator` 已经重命名为 `commandDelegator`
78+
- 🛠 `commonFileEditDelegator` 已经重命名为 `commandDelegator`
7979

8080
<br/>
8181

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2020 - present DTStack
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)