Browse Source

chore: remove unused dependencies

master
smallstonesk 4 years ago
parent
commit
2f5f430a83
  1. 18
      .babelrc
  2. 3
      .gitignore
  3. 3
      .prettierrc
  4. 37
      package.json
  5. 3
      packages/compile-code/.babelrc
  6. 1
      packages/compile-code/package.json
  7. 4
      packages/compile-code/rollup.config.js
  8. 3
      packages/core/.babelrc
  9. 3
      packages/plugin-store/.babelrc
  10. 4
      packages/plugin-store/package.json
  11. 4
      packages/plugin-store/rollup.config.js
  12. 8
      rollup.config.js

18
.babelrc

@ -1,18 +0,0 @@
{
"presets": [
[
"@babel/preset-env",
{
"loose": true,
"modules": false
}
],
"@babel/preset-react",
"@babel/typescript"
],
"plugins": [
"@babel/proposal-class-properties",
"@babel/proposal-object-rest-spread",
"@babel/plugin-transform-runtime"
]
}

3
.gitignore

@ -27,3 +27,6 @@ example/src/.umi
example/src/.umi-production example/src/.umi-production
example/src/.umi-test example/src/.umi-test
example/.env.local example/.env.local
# eslint
.eslint-error.log

3
.prettierrc

@ -1,10 +1,7 @@
{ {
"endOfLine": "lf", "endOfLine": "lf",
"semi": true, "semi": true,
"singleQuote": true,
"tabWidth": 2, "tabWidth": 2,
"printWidth": 100,
"trailingComma": "es5",
"singleQuote": true, "singleQuote": true,
"trailingComma": "all", "trailingComma": "all",
"printWidth": 80, "printWidth": 80,

37
package.json

@ -18,56 +18,33 @@
] ]
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.9.0",
"@babel/plugin-external-helpers": "^7.8.3",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-object-rest-spread": "^7.9.5",
"@babel/plugin-transform-runtime": "^7.9.0",
"@babel/preset-env": "^7.9.5",
"@babel/preset-react": "^7.9.4",
"@babel/preset-typescript": "^7.9.0",
"@rollup/plugin-commonjs": "^11.0.2", "@rollup/plugin-commonjs": "^11.0.2",
"@rollup/plugin-json": "^4.0.3", "@rollup/plugin-json": "^4.0.3",
"@rollup/plugin-node-resolve": "^7.1.3", "@rollup/plugin-node-resolve": "^7.1.3",
"@rollup/plugin-strip": "^1.3.2", "@rollup/plugin-strip": "^1.3.2",
"@rollup/plugin-url": "^4.0.2", "@rollup/plugin-url": "^4.0.2",
"@svgr/rollup": "^5.3.1",
"@types/jest": "^26.0.16", "@types/jest": "^26.0.16",
"@typescript-eslint/eslint-plugin": "^2.29.0", "@typescript-eslint/eslint-plugin": "^2.29.0",
"@typescript-eslint/parser": "^2.29.0", "@typescript-eslint/parser": "^2.29.0",
"concurrently": "^5.3.0", "concurrently": "^5.3.0",
"cypress": "^6.0.0", "cypress": "^6.2.0",
"dumi": "^1.0.38",
"eslint": "^6.8.0", "eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.1",
"eslint-config-standard": "^14.1.1", "eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.20.2", "eslint-plugin-prettier": "^3.3.0",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-react-hooks": "^3.0.0",
"eslint-plugin-standard": "^5.0.0", "eslint-plugin-standard": "^5.0.0",
"lerna": "^3.22.1", "lerna": "^3.22.1",
"lowdb": "^1.0.0", "ora": "^4.1.1",
"prettier": "^2.0.4",
"rollup": "^2.6.1", "rollup": "^2.6.1",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-size-snapshot": "^0.11.0", "rollup-plugin-size-snapshot": "^0.11.0",
"snazzy": "^9.0.0", "snazzy": "^9.0.0",
"standard": "^16.0.3", "standard": "^16.0.3",
"ts-jest": "^26.4.4", "ts-jest": "^26.4.4",
"typescript": "^3.8.3" "typescript": "^4.1.3"
}, },
"dependencies": { "dependencies": {
"@babel/runtime": "^7.9.2", "@imove/core": "^0.3.6",
"@babel/runtime-corejs3": "^7.9.2", "lowdb": "^1.0.0",
"@umijs/preset-react": "1.x",
"@umijs/test": "^3.2.2",
"antd": "^4.4.3",
"dumi": "^1.0.37",
"lint-staged": "^10.0.7",
"ora": "^4.0.3",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"umi": "^3.2.2" "umi": "^3.2.2"
} }
} }

3
packages/compile-code/.babelrc

@ -1,3 +0,0 @@
{
"extends": "../../.babelrc"
}

1
packages/compile-code/package.json

@ -36,6 +36,7 @@
}, },
"devDependencies": { "devDependencies": {
"rollup": "^2.7.3", "rollup": "^2.7.3",
"rollup-plugin-typescript": "^1.0.1",
"watch": "^1.0.2" "watch": "^1.0.2"
} }
} }

4
packages/compile-code/rollup.config.js

@ -1,5 +1,6 @@
import path from 'path'; import path from 'path';
import rollupBaseConfig from '../../rollup.config'; import rollupBaseConfig from '../../rollup.config';
import typescript from 'rollup-plugin-typescript';
import pkg from './package.json'; import pkg from './package.json';
export default Object.assign(rollupBaseConfig, { export default Object.assign(rollupBaseConfig, {
@ -13,5 +14,8 @@ export default Object.assign(rollupBaseConfig, {
file: pkg.module, file: pkg.module,
format: 'es', format: 'es',
}, },
],
plugins: [
typescript(),
] ]
}); });

3
packages/core/.babelrc

@ -1,3 +0,0 @@
{
"extends": "../../.babelrc"
}

3
packages/plugin-store/.babelrc

@ -1,3 +0,0 @@
{
"extends": "../../.babelrc"
}

4
packages/plugin-store/package.json

@ -38,8 +38,8 @@
}, },
"devDependencies": { "devDependencies": {
"rollup": "^2.7.3", "rollup": "^2.7.3",
"rollup-plugin-typescript": "^1.0.1",
"watch": "^1.0.2" "watch": "^1.0.2"
}, },
"dependencies": { "dependencies": {}
}
} }

4
packages/plugin-store/rollup.config.js

@ -1,5 +1,6 @@
import path from 'path'; import path from 'path';
import rollupBaseConfig from '../../rollup.config'; import rollupBaseConfig from '../../rollup.config';
import typescript from 'rollup-plugin-typescript';
import pkg from './package.json'; import pkg from './package.json';
export default Object.assign(rollupBaseConfig, { export default Object.assign(rollupBaseConfig, {
@ -13,5 +14,8 @@ export default Object.assign(rollupBaseConfig, {
file: pkg.module, file: pkg.module,
format: 'es', format: 'es',
}, },
],
plugins: [
typescript(),
] ]
}); });

8
rollup.config.js

@ -3,8 +3,6 @@ import commonjs from '@rollup/plugin-commonjs';
import strip from '@rollup/plugin-strip'; import strip from '@rollup/plugin-strip';
import url from '@rollup/plugin-url'; import url from '@rollup/plugin-url';
import json from '@rollup/plugin-json'; import json from '@rollup/plugin-json';
import babel from 'rollup-plugin-babel';
import svgr from '@svgr/rollup';
import { sizeSnapshot } from 'rollup-plugin-size-snapshot'; import { sizeSnapshot } from 'rollup-plugin-size-snapshot';
const input = './src/index.tsx'; const input = './src/index.tsx';
@ -16,15 +14,9 @@ export default {
resolve({ extensions, preferBuiltins: true }), resolve({ extensions, preferBuiltins: true }),
commonjs(), commonjs(),
json(), json(),
babel({
extensions,
exclude: 'node_modules/**',
runtimeHelpers: true,
}),
url({ url({
limit: 10 * 1024, limit: 10 * 1024,
}), }),
svgr(),
strip({ debugger: true }), strip({ debugger: true }),
sizeSnapshot({ printInfo: false }), sizeSnapshot({ printInfo: false }),
], ],

Loading…
Cancel
Save