diff --git a/config/config.js b/config/config.js new file mode 100644 index 0000000000000000000000000000000000000000..ea25050c8f5f1d94659b3a058bba7e7ea38c3f88 --- /dev/null +++ b/config/config.js @@ -0,0 +1,6 @@ +// https://umijs.org/config/ +export default { + plugins: [ + 'umi-plugin-dva', + ], +}; diff --git a/package.json b/package.json index f8b8a1b10f22f5b6afe238e3b2e3f77818a526df..89f7237997d8d31103f67f41808bb13a7a5108cf 100755 --- a/package.json +++ b/package.json @@ -6,29 +6,26 @@ "scripts": { "precommit": "npm run lint-staged", "presite": "cd functions && npm install", - "start": "cross-env ESLINT=none roadhog dev", - "start:no-proxy": "cross-env NO_PROXY=true ESLINT=none roadhog dev", - "build": "cross-env ESLINT=none roadhog build", + "start": "cross-env ESLINT=none umi dev", + "start:no-mock": "cross-env MOCK=none ESLINT=none umi dev", + "build": "cross-env ESLINT=none umi build", "site": "npm run presite && rollup -c && npm run build && firebase deploy", - "analyze": "cross-env ANALYZE=1 roadhog build", + "analyze": "cross-env ANALYZE=1 umi build", "lint:style": "stylelint \"src/**/*.less\" --syntax less", "lint": "eslint --ext .js src mock tests && npm run lint:style", "lint:fix": "eslint --fix --ext .js src mock tests && npm run lint:style", "lint-staged": "lint-staged", "lint-staged:js": "eslint --ext .js", - "test": "roadhog test", - "test:component": "roadhog test ./src/components", + "test": "umi test", + "test:component": "umi test ./src/components", "test:all": "node ./tests/run-tests.js", "prettier": "prettier --write ./src/**/**/**/*" }, "dependencies": { "@antv/data-set": "^0.8.0", - "antd": "^3.6.5", "bizcharts": "^3.1.10", "bizcharts-plugin-slider": "^2.0.3", "classnames": "^2.2.6", - "dva": "^2.3.1", - "dva-loading": "^2.0.3", "enquire-js": "^0.2.1", "lodash": "^4.17.4", "lodash-decorators": "^6.0.0", @@ -40,15 +37,14 @@ "prop-types": "^15.5.10", "qs": "^6.5.2", "rc-drawer": "^1.5.2", - "react": "^16.4.1", "react-container-query": "^0.11.0", "react-document-title": "^2.0.3", - "react-dom": "^16.4.1", "react-fittext": "^1.0.0", "rollbar": "^2.3.4", "rollup": "^0.62.0", "rollup-plugin-json": "^3.0.0", "setprototypeof": "^1.1.0", + "umi": "^1.3.13", "url-polyfill": "^1.0.10" }, "devDependencies": { @@ -82,7 +78,6 @@ "pro-download": "^1.0.1", "redbox-react": "^1.5.0", "regenerator-runtime": "^0.12.0", - "roadhog": "^2.4.2", "stylelint": "^9.2.1", "stylelint-config-prettier": "^3.0.4", "stylelint-config-standard": "^18.0.0"