Skip to content

Commit

Permalink
deps: upgrade, remove some webpack plugins, add some babel plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
tjx666 committed Apr 3, 2020
1 parent 5ea29f1 commit 4706715
Show file tree
Hide file tree
Showing 2 changed files with 614 additions and 750 deletions.
42 changes: 20 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
"scripts": {
"start": "cross-env-shell NODE_ENV=development ts-node --files -P ./scripts/tsconfig.json ./scripts/start.ts --open",
"build": "cross-env-shell NODE_ENV=production ts-node --files -P scripts/tsconfig.json scripts/build",
"build-analyze": "cross-env-shell NODE_ENV=production ts-node --files -P scripts/tsconfig.json scripts/build --analyze",
"build-analyze": "yarn build --analyze",
"test": "echo 'skip test...'",
"lint": "yarn run lint-eslint && yarn run lint-stylelint",
"lint-eslint": "eslint -c .eslintrc.js --ext .ts,.tsx,.js {src,scripts}/**/*.{ts,tsx,js}",
"lint-stylelint": "stylelint --config .stylelintrc.json src/**/*.scss --syntax scss",
"lint-stylelint": "stylelint --config .stylelintrc.json src/**/*.{css,less,scss}",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
},
"husky": {
Expand All @@ -33,10 +33,10 @@
"*.{ts,tsx,js}": [
"eslint -c .eslintrc.js"
],
"*.scss": [
"*.{css,less,scss}": [
"stylelint --config .stylelintrc.json"
],
"*.{ts,tsx,js,json,scss,md}": [
"*.{ts,tsx,js,json,html,yml,css,less,scss,md}": [
"prettier --write"
]
},
Expand All @@ -56,6 +56,10 @@
},
"devDependencies": {
"@babel/core": "^7.8.7",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-decorators": "^7.8.3",
"@babel/plugin-proposal-optional-chaining": "^7.9.0",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-react-constant-elements": "^7.8.3",
"@babel/plugin-transform-react-inline-elements": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.8.3",
Expand All @@ -64,39 +68,34 @@
"@babel/preset-typescript": "^7.8.3",
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@types/case-sensitive-paths-webpack-plugin": "^2.1.4",
"@types/circular-dependency-plugin": "^5.0.0",
"@types/compression-webpack-plugin": "^2.0.1",
"@types/connect-history-api-fallback": "^1.3.3",
"@types/copy-webpack-plugin": "^5.0.0",
"@types/cors": "^2.8.6",
"@types/express": "^4.17.3",
"@types/express": "^4.17.4",
"@types/friendly-errors-webpack-plugin": "^0.1.2",
"@types/hard-source-webpack-plugin": "^1.0.1",
"@types/html-webpack-plugin": "^3.2.2",
"@types/http-proxy-middleware": "^0.19.3",
"@types/mini-css-extract-plugin": "^0.9.1",
"@types/optimize-css-assets-webpack-plugin": "^5.0.1",
"@types/react": "^16.9.23",
"@types/react-dom": "^16.9.5",
"@types/react": "^16.9.32",
"@types/react-dom": "^16.9.6",
"@types/react-router-dom": "^5.1.3",
"@types/terser-webpack-plugin": "^2.2.0",
"@types/webpack": "^4.41.7",
"@types/webpack": "^4.41.10",
"@types/webpack-bundle-analyzer": "^2.13.3",
"@types/webpack-dev-middleware": "^3.7.0",
"@types/webpack-hot-middleware": "^2.25.0",
"@types/webpack-merge": "^4.1.5",
"@types/webpackbar": "^2.6.0",
"@types/webpackbar": "^4.0.0",
"@types/yargs": "^15.0.4",
"@typescript-eslint/eslint-plugin": "^2.22.0",
"@typescript-eslint/parser": "^2.22.0",
"@typescript-eslint/eslint-plugin": "^2.26.0",
"@typescript-eslint/parser": "^2.26.0",
"audit-ci": "^2.5.1",
"autoprefixer": "^9.7.4",
"babel-loader": "^8.0.6",
"babel-plugin-dev-expression": "^0.2.2",
"case-sensitive-paths-webpack-plugin": "^2.3.0",
"chalk": "^3.0.0",
"circular-dependency-plugin": "^5.2.0",
"chalk": "^4.0.0",
"clean-webpack-plugin": "^3.0.0",
"compression-webpack-plugin": "^3.1.0",
"connect-history-api-fallback": "^1.6.0",
Expand All @@ -111,23 +110,22 @@
"eslint-config-prettier": "^6.10.0",
"eslint-import-resolver-typescript": "^2.0.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.18.3",
"eslint-plugin-react-hooks": "^3.0.0",
"eslint-plugin-unicorn": "^18.0.0",
"eslint-plugin-unicorn": "^18.0.1",
"express": "^4.17.1",
"fork-ts-checker-webpack-plugin": "^4.0.5",
"friendly-errors-webpack-plugin": "^1.7.0",
"get-port": "^5.1.1",
"hard-source-webpack-plugin": "^0.13.1",
"html-webpack-plugin": "^4.0.2",
"html-webpack-plugin": "^4.0.4",
"http-proxy-middleware": "^1.0.1",
"husky": "^4.2.3",
"less": "^3.11.1",
"less-loader": "^5.0.0",
"lint-staged": "^10.0.8",
"lint-staged": "^10.1.1",
"log-symbols": "^3.0.0",
"mini-css-extract-plugin": "^0.9.0",
"node-sass": "^4.13.1",
Expand Down
Loading

0 comments on commit 4706715

Please sign in to comment.