Skip to content

Commit

Permalink
[migrate] upgrade to WebCell v3 RC & MobX 6.11+
Browse files Browse the repository at this point in the history
[optimize] upgrade Upstream packages
[optimize] replace Yarn with PNPM to reduce Disk Usage
  • Loading branch information
TechQuery committed Jan 6, 2024
1 parent ddc7e10 commit f5e9b2e
Show file tree
Hide file tree
Showing 16 changed files with 6,425 additions and 5,383 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,30 @@ jobs:
Build-and-Publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2-beta
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
node-version: 14
version: 8
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org
cache: yarn
cache: pnpm
- uses: browser-actions/setup-chrome@latest
- name: Install, Build & Publish

- name: Install Dependencies
run: |
pnpm i --frozen-lockfile
pnpm set-chrome
- name: Build & Publish
run: |
yarn && yarn set-chrome
cd test/ && yarn && cd ..
yarn publish
cd test/ && pnpm i && cd ..
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Update document
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auto-install-peers = false
8 changes: 8 additions & 0 deletions .parcelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "@parcel/config-default",
"transformers": {
"*.{ts,tsx}": [
"@parcel/transformer-typescript-tsc"
]
}
}
62 changes: 34 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cell-router",
"version": "3.0.0-alpha.0",
"version": "3.0.0-rc.0",
"license": "LGPL-3.0",
"description": "Web Component Router based on WebCell & MobX",
"keywords": [
Expand All @@ -24,41 +24,47 @@
"main": "dist/index.js",
"module": "dist/index.esm.js",
"dependencies": {
"@swc/helpers": "^0.3.17",
"mobx": ">=4.0.0 <6.0.0",
"regenerator-runtime": "^0.13.9",
"urlpattern-polyfill": "^5.0.3",
"web-cell": "^3.0.0-beta.1",
"web-utility": "^3.7.3"
"@swc/helpers": "^0.5.3",
"dom-renderer": "^2.0.4",
"mobx": ">=6.11",
"regenerator-runtime": "^0.14.1",
"urlpattern-polyfill": "^9.0.0",
"web-cell": "^3.0.0-rc.3",
"web-utility": "^4.1.3"
},
"devDependencies": {
"@parcel/packager-ts": "~2.6.0",
"@parcel/transformer-less": "~2.6.0",
"@parcel/transformer-typescript-types": "~2.6.0",
"@types/jest": "^28.1.1",
"element-internals-polyfill": "^1.1.4",
"fs-match": "^1.6.0",
"husky": "^8.0.1",
"jest": "^28.1.0",
"jest-environment-jsdom": "^28.1.0",
"koapache": "^2.2.1",
"lint-staged": "^13.0.0",
"parcel": "~2.6.0",
"prettier": "^2.6.2",
"@parcel/config-default": "~2.11.0",
"@parcel/packager-ts": "~2.11.0",
"@parcel/transformer-less": "~2.11.0",
"@parcel/transformer-typescript-tsc": "~2.11.0",
"@parcel/transformer-typescript-types": "~2.11.0",
"@types/jest": "^29.5.11",
"element-internals-polyfill": "^1.3.10",
"fs-match": "^1.7.1",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"koapache": "^2.2.2",
"lint-staged": "^15.2.0",
"parcel": "~2.11.0",
"prettier": "^3.1.1",
"process": "^0.11.10",
"puppeteer-core": "^14.2.1",
"ts-jest": "^28.0.4",
"typedoc": "^0.22.17",
"typescript": "~4.7.3"
"puppeteer-core": "^21.7.0",
"rimraf": "^5.0.5",
"ts-jest": "^29.1.1",
"typedoc": "^0.25.6",
"typedoc-plugin-mdn-links": "^3.1.10",
"typescript": "~5.3.3"
},
"scripts": {
"prepare": "husky install",
"start": "cd test/ && npm start",
"pack-test": "cd test/ && npm run build",
"set-chrome": "app-find chrome -c",
"pack-dist": "rm -rf dist/ && parcel build source/index.ts",
"test": "lint-staged && npm run pack-dist && npm run pack-test && jest --testTimeout 6000 --forceExit",
"pack-docs": "rm -rf docs/ && typedoc source/",
"preview": "cd test/ && rimraf .parcel-cache/ dist/ && parcel --open",
"pack-preview": "cd test/ && rimraf .parcel-cache/ dist/ && parcel build --public-url=. --dist-dir=../docs/preview/",
"pack-dist": "rimraf dist/ && parcel build source/index.ts",
"test": "lint-staged && npm run pack-dist && npm run pack-preview && jest --testTimeout 6000 --forceExit",
"pack-docs": "rimraf docs/ && typedoc source/",
"build": "npm run pack-dist && npm run pack-docs",
"help": "npm run pack-docs && web-server docs/ -o",
"prepublishOnly": "npm test && npm run build"
Expand Down
Loading

0 comments on commit f5e9b2e

Please sign in to comment.