Skip to content

Commit af0a77d

Browse files
committed
[migrate] replace Yarn with PNPM to reduce Disk usage
[optimize] upgrade Upstream packages
1 parent c1e6915 commit af0a77d

File tree

10 files changed

+5958
-5397
lines changed

10 files changed

+5958
-5397
lines changed

.eslintrc.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
"no-undef": "warn",
2525
"@typescript-eslint/ban-ts-comment": "warn",
2626
"@typescript-eslint/ban-types": "warn",
27+
"@typescript-eslint/no-explicit-any": "warn",
2728
"@typescript-eslint/no-namespace": "warn",
29+
"@typescript-eslint/no-unused-vars": "warn",
2830
"@typescript-eslint/explicit-module-boundary-types": "off"
2931
}
3032
}

.github/workflows/main.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,24 @@ jobs:
77
Build-and-Publish:
88
runs-on: ubuntu-latest
99
steps:
10-
- name: Checkout
11-
uses: actions/checkout@v2
12-
- name: Use Node.js
13-
uses: actions/setup-node@v2
10+
- uses: actions/checkout@v3
11+
12+
- uses: pnpm/action-setup@v2
1413
with:
15-
node-version: 14
14+
version: 8
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: 18
1618
registry-url: https://registry.npmjs.org
17-
cache: yarn
18-
- name: Install, Build & Publish
19-
run: yarn && yarn publish
19+
cache: pnpm
20+
- name: Install Dependencies
21+
run: pnpm i --frozen-lockfile
22+
23+
- name: Build & Publish
24+
run: npm publish
2025
env:
2126
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
27+
2228
- name: Update document
2329
uses: peaceiris/actions-gh-pages@v3
2430
with:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
node_modules/
22
package-lock.json
3+
yarn.lock
34
dist/
45
.parcel-cache/
56
docs/

package.json

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web-cell",
3-
"version": "3.0.0-beta.0",
3+
"version": "3.0.0-beta.2",
44
"description": "Web Components engine based on VDOM, JSX, MobX & TypeScript",
55
"keywords": [
66
"web",
@@ -26,41 +26,42 @@
2626
"source": "source/index.ts",
2727
"types": "dist/index.d.ts",
2828
"dependencies": {
29-
"@swc/helpers": "^0.3.3",
30-
"mobx": ">=4.0.0 <6.0.0",
31-
"regenerator-runtime": "^0.13.9",
32-
"snabbdom": "^3.3.1",
33-
"web-utility": "^3.4.2"
29+
"@swc/helpers": "^0.5.1",
30+
"mobx": ">=4 <6",
31+
"regenerator-runtime": "^0.14.0",
32+
"snabbdom": "^3.5.1",
33+
"web-utility": "^4.1.0"
3434
},
3535
"peerDependencies": {
36-
"@webcomponents/webcomponentsjs": "^2.6.0",
37-
"core-js": "^3.0.0",
38-
"element-internals-polyfill": "^0.1.54",
39-
"jsdom": "^19.0.0"
36+
"@webcomponents/webcomponentsjs": "^2.8",
37+
"core-js": "^3",
38+
"element-internals-polyfill": "^1",
39+
"jsdom": ">=21"
4040
},
4141
"devDependencies": {
42-
"@jest/types": "^27.5.1",
43-
"@parcel/packager-ts": "2.3.2",
44-
"@parcel/transformer-typescript-types": "2.3.2",
45-
"@types/jest": "^27.4.0",
46-
"@types/jsdom": "^16.2.14",
47-
"@typescript-eslint/eslint-plugin": "^5.12.0",
48-
"@typescript-eslint/parser": "^5.12.0",
49-
"core-js": "^3.21.1",
50-
"element-internals-polyfill": "^0.1.54",
51-
"eslint": "^8.9.0",
52-
"eslint-config-prettier": "^8.4.0",
53-
"husky": "^7.0.4",
54-
"jest": "^27.5.1",
55-
"jsdom": "^19.0.0",
56-
"lint-staged": "^12.3.4",
57-
"open-cli": "^7.0.1",
58-
"parcel": "^2.3.2",
59-
"prettier": "^2.5.1",
60-
"ts-jest": "^27.1.3",
61-
"ts-node": "^10.5.0",
62-
"typedoc": "^0.22.12",
63-
"typescript": "~4.3.5"
42+
"@jest/types": "^29.6.1",
43+
"@parcel/packager-ts": "~2.9.3",
44+
"@parcel/transformer-typescript-types": "~2.9.3",
45+
"@types/jest": "^29.5.3",
46+
"@typescript-eslint/eslint-plugin": "^6.4.0",
47+
"@typescript-eslint/parser": "^6.4.0",
48+
"core-js": "^3.32.1",
49+
"element-internals-polyfill": "^1.3.7",
50+
"eslint": "^8.47.0",
51+
"eslint-config-prettier": "^9.0.0",
52+
"husky": "^8.0.3",
53+
"jest": "^29.6.2",
54+
"jest-environment-jsdom": "^29.6.2",
55+
"jsdom": "^22.1.0",
56+
"lint-staged": "^14.0.0",
57+
"open-cli": "^7.2.0",
58+
"parcel": "~2.9.3",
59+
"prettier": "^3.0.2",
60+
"ts-jest": "^29.1.1",
61+
"ts-node": "^10.9.1",
62+
"typedoc": "^0.24.8",
63+
"typedoc-plugin-mdn-links": "^3.0.3",
64+
"typescript": "~5.1.6"
6465
},
6566
"scripts": {
6667
"prepare": "husky install",
@@ -81,7 +82,7 @@
8182
"arrowParens": "avoid",
8283
"tabWidth": 4
8384
},
84-
"browserslist": "> 0.5%, last 2 versions, not dead",
85+
"browserslist": "> 0.5%, last 2 versions, not dead, IE 11",
8586
"targets": {
8687
"main": {
8788
"optimize": true

0 commit comments

Comments
 (0)