Skip to content

Commit

Permalink
[migrate] upgrade to ES Decorator stage-3 & Husky 9
Browse files Browse the repository at this point in the history
  • Loading branch information
TechQuery committed Jan 29, 2024
1 parent bc8c946 commit 6d138ac
Show file tree
Hide file tree
Showing 18 changed files with 933 additions and 854 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: ${{ env.VERCEL_TOKEN && env.VERCEL_ORG_ID && env.VERCEL_PROJECT_ID }}

- uses: amondnet/vercel-action@v25
Expand Down
4 changes: 0 additions & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
#!/bin/sh

. "$(dirname "$0")/_/husky.sh"

npm test
4 changes: 0 additions & 4 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
#!/bin/sh

. "$(dirname "$0")/_/husky.sh"

npm run build
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.eslintrc.json
vite.config.ts
.parcel-cache/
.parcel*
docs/
preview/
api-extractor.json
Expand Down
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"
]
}
}
10 changes: 3 additions & 7 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<link
rel="stylesheet"
href="https://unpkg.com/bootstrap@5.2.3/dist/css/bootstrap.min.css"
href="https://unpkg.com/bootstrap@5.3.2/dist/css/bootstrap.min.css"
/>
<link
rel="stylesheet"
href="https://unpkg.com/bootstrap-icons@1.10.2/font/bootstrap-icons.css"
href="https://unpkg.com/bootstrap-icons@1.11.3/font/bootstrap-icons.css"
/>
<link
rel="stylesheet"
Expand All @@ -16,9 +16,5 @@
/>
<link
rel="stylesheet"
href="https://unpkg.com/leaflet@1.9.3/dist/leaflet.css"
/>
<link
rel="stylesheet"
href="https://unpkg.com/idea-react@0.27.11/dist/index.umd.css"
href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
/>
6 changes: 3 additions & 3 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ Open Map component & model, have been migrated to https://github.com/idea2app/Op
```html
<link
rel="stylesheet"
href="https://unpkg.com/bootstrap@5.3.1/dist/css/bootstrap.min.css"
href="https://unpkg.com/bootstrap@5.3.2/dist/css/bootstrap.min.css"
/>
<link
rel="stylesheet"
href="https://unpkg.com/bootstrap-icons@1.10.5/font/bootstrap-icons.css"
href="https://unpkg.com/bootstrap-icons@1.11.3/font/bootstrap-icons.css"
/>
<link
rel="stylesheet"
Expand Down Expand Up @@ -149,7 +149,7 @@ export class ExamplePage extends PureComponent {
2. add Git tag

```shell
git tag vx.xx.x # such as v0.23.0
git tag vx.xx.x # such as v1.0.0
```

3. review tag
Expand Down
62 changes: 32 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "idea-react",
"version": "1.0.0-rc.31",
"version": "2.0.0-rc.0",
"license": "LGPL-3.0-or-later",
"author": "shiy2008@gmail.com",
"description": "A React advanced components library based on TypeScript & Bootstrap, built by idea2app remote developers team.",
Expand All @@ -22,19 +22,19 @@
"types": "dist/index.d.ts",
"main": "dist/index.js",
"dependencies": {
"@editorjs/editorjs": "^2.28.2",
"@editorjs/editorjs": "^2.29.0",
"@editorjs/paragraph": "^2.11.3",
"@react-editor-js/core": "^2.1.0",
"@swc/helpers": "^0.5.3",
"classnames": "^2.3.3",
"classnames": "^2.5.1",
"editorjs-html": "^3.4.3",
"iterable-observer": "^1.0.1",
"lodash": "^4.17.21",
"mobx": ">=4 <6.11",
"mobx-react": ">=6 <9.1",
"mobx-react-helper": "^0.2.7",
"mobx": ">=6.12.0",
"mobx-react": ">=9.1.0",
"mobx-react-helper": "^0.3.1",
"prismjs": "^1.29.0",
"react-bootstrap": "^2.9.2",
"react-bootstrap": "^2.10.0",
"react-editor-js": "^2.1.0",
"react-element-to-jsx-string": "^15.0.0",
"web-utility": "^4.1.3"
Expand All @@ -45,48 +45,50 @@
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.23.6",
"@microsoft/api-extractor": "^7.39.0",
"@parcel/packager-ts": "~2.10.3",
"@parcel/transformer-typescript-types": "~2.10.3",
"@babel/plugin-proposal-decorators": "^7.23.9",
"@microsoft/api-extractor": "^7.39.4",
"@parcel/config-default": "~2.11.0",
"@parcel/packager-ts": "~2.11.0",
"@parcel/transformer-typescript-tsc": "~2.11.0",
"@parcel/transformer-typescript-types": "~2.11.0",
"@storybook/addon-console": "^2.0.0",
"@storybook/addon-essentials": "^7.6.6",
"@storybook/addon-interactions": "^7.6.6",
"@storybook/addon-links": "^7.6.6",
"@storybook/addon-storysource": "^7.6.6",
"@storybook/blocks": "^7.6.6",
"@storybook/react": "^7.6.6",
"@storybook/react-vite": "^7.6.6",
"@storybook/addon-essentials": "7.6.6",
"@storybook/addon-interactions": "7.6.6",
"@storybook/addon-links": "7.6.6",
"@storybook/addon-storysource": "7.6.6",
"@storybook/blocks": "7.6.6",
"@storybook/react": "7.6.6",
"@storybook/react-vite": "7.6.6",
"@storybook/testing-library": "^0.2.2",
"@types/lodash": "^4.14.202",
"@types/node": "^18.19.3",
"@types/node": "^18.19.10",
"@types/prismjs": "^1.26.3",
"@types/react": "^18.2.45",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"@typescript-eslint/eslint-plugin": "^6.16.0",
"@typescript-eslint/parser": "^6.16.0",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"@vitejs/plugin-react": "^4.2.1",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-simple-import-sort": "^10.0.0",
"husky": "^8.0.3",
"husky": "^9.0.7",
"koapache": "^2.2.2",
"less": "^4.2.0",
"lint-staged": "^15.2.0",
"parcel": "~2.10.3",
"parcel": "~2.11.0",
"postcss-preset-env": "^9.3.0",
"prettier": "^3.1.1",
"prettier": "^3.2.4",
"process": "^0.11.10",
"prop-types": "15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^5.0.5",
"storybook": "^7.6.6",
"typedoc": "^0.25.4",
"typedoc-plugin-mdn-links": "^3.1.9",
"storybook": "7.6.6",
"typedoc": "^0.25.7",
"typedoc-plugin-mdn-links": "^3.1.14",
"typescript": "~5.3.3",
"vite": "^5.0.10"
"vite": "5.0.10"
},
"pnpm": {
"overrides": {
Expand All @@ -110,7 +112,7 @@
}
},
"scripts": {
"prepare": "husky install",
"prepare": "husky",
"test": "lint-staged",
"api-extractor": "tsc --project tsconfig.build.json --outDir dist/dts && api-extractor run && rimraf dist/dts",
"pack-preview": "cd preview/ && rimraf ../.parcel-cache dist/ && parcel build --public-url=. --dist-dir=../docs/preview/",
Expand Down
Loading

0 comments on commit 6d138ac

Please sign in to comment.