Closed cookHu closed 5 years ago
react+antd+roadhog+dva+bizchart+antv/g6 "scripts": { "precommit": "npm run lint-staged", "start": "cross-env roadhog dev", "start:no-proxy": "cross-env NO_PROXY=true ESLINT=none roadhog dev", "build": "cross-env ESLINT=none roadhog build", "site": "roadhog-api-doc static && gh-pages -d dist", "analyze": "cross-env ANALYZE=true roadhog 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:all": "node ./tests/run-tests.js", "prettier": "prettier --write ./tests/" }, "dependencies": { "@antv/data-set": "^0.8.0", "@antv/g6-editor": "^1.2.0", "@babel/polyfill": "^7.0.0-beta.36", "antd": "^3.10.7", "babel-runtime": "^6.9.2", "bizcharts": "^3.5.2", "bizcharts-plugin-slider": "^2.0.1", "classnames": "^2.2.5", "diff-match-patch": "^1.0.4", "dva": "^2.1.0", "dva-loading": "^1.0.4", "enquire-js": "^0.2.1", "html-webpack-plugin": "^3.2.0", "lodash": "^4.17.4", "lodash-decorators": "^4.4.1", "moment": "^2.19.1", "monaco-editor": "^0.16.2", "monaco-editor-webpack-plugin": "^1.7.0", "numeral": "^2.0.6", "omit.js": "^1.0.0", "path-to-regexp": "^2.1.0", "prop-types": "^15.5.10", "qs": "^6.5.0", "rc-drawer-menu": "^0.5.0", "react": "^16.2.0", "react-codemirror": "^1.0.0", "react-container-query": "^0.11.0", "react-contextmenu": "^2.11.0", "react-document-title": "^2.0.3", "react-dom": "^16.2.0", "react-fittext": "^1.0.0", "react-infinite-scroller": "^1.1.4", "react-monaco-editor": "^0.25.1", "react-sortable-hoc": "^1.9.1", "rollbar": "^2.3.4", "url-polyfill": "^1.0.10" }, 统计问题 无法支持 非parcel 启动脚手架吗 // webpack 加入该配置无效 迁移子应用脚手架 无法识别该配置 要求移除该配置 output: { library: packageName, libraryTarget: 'umd', jsonpFunction: `webpackJsonp_${packageName}`, } 启动全部应用 如有子应用启动失败 会导致主应用显示空白界面 无任何错误信息
react+antd+roadhog+dva+bizchart+antv/g6
"scripts": { "precommit": "npm run lint-staged", "start": "cross-env roadhog dev", "start:no-proxy": "cross-env NO_PROXY=true ESLINT=none roadhog dev", "build": "cross-env ESLINT=none roadhog build", "site": "roadhog-api-doc static && gh-pages -d dist", "analyze": "cross-env ANALYZE=true roadhog 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:all": "node ./tests/run-tests.js", "prettier": "prettier --write ./tests/" }, "dependencies": { "@antv/data-set": "^0.8.0", "@antv/g6-editor": "^1.2.0", "@babel/polyfill": "^7.0.0-beta.36", "antd": "^3.10.7", "babel-runtime": "^6.9.2", "bizcharts": "^3.5.2", "bizcharts-plugin-slider": "^2.0.1", "classnames": "^2.2.5", "diff-match-patch": "^1.0.4", "dva": "^2.1.0", "dva-loading": "^1.0.4", "enquire-js": "^0.2.1", "html-webpack-plugin": "^3.2.0", "lodash": "^4.17.4", "lodash-decorators": "^4.4.1", "moment": "^2.19.1", "monaco-editor": "^0.16.2", "monaco-editor-webpack-plugin": "^1.7.0", "numeral": "^2.0.6", "omit.js": "^1.0.0", "path-to-regexp": "^2.1.0", "prop-types": "^15.5.10", "qs": "^6.5.0", "rc-drawer-menu": "^0.5.0", "react": "^16.2.0", "react-codemirror": "^1.0.0", "react-container-query": "^0.11.0", "react-contextmenu": "^2.11.0", "react-document-title": "^2.0.3", "react-dom": "^16.2.0", "react-fittext": "^1.0.0", "react-infinite-scroller": "^1.1.4", "react-monaco-editor": "^0.25.1", "react-sortable-hoc": "^1.9.1", "rollbar": "^2.3.4", "url-polyfill": "^1.0.10" },
无法支持 非parcel 启动脚手架吗
// webpack 加入该配置无效 迁移子应用脚手架 无法识别该配置 要求移除该配置 output: { library: packageName, libraryTarget: 'umd', jsonpFunction: `webpackJsonp_${packageName}`, }
启动全部应用 如有子应用启动失败 会导致主应用显示空白界面 无任何错误信息
建议:能否提供统一构建所有应用的功能 目前都是打包在各个应用内的 建议:是否可以在demo内 加入 ant-design-pro 或 vue-cli@3.0 示例,目前文档对迁移项目的场景还是支持比较差 前景:目前大中台 小前台 战略 在很多公司流行 很多庞大的中台项目 确实需要微前端应用 这个开发模式 希望官方能考虑下这些建议
建议:能否提供统一构建所有应用的功能 目前都是打包在各个应用内的
建议:是否可以在demo内 加入 ant-design-pro 或 vue-cli@3.0 示例,目前文档对迁移项目的场景还是支持比较差
前景:目前大中台 小前台 战略 在很多公司流行 很多庞大的中台项目 确实需要微前端应用 这个开发模式 希望官方能考虑下这些建议
roadhog 配置 webpack https://github.com/sorrycc/roadhog/issues/36
附议加入 vue-cli 3.0 或 4.0 的示例
参考最新 demo
项目环境
建议栏