Lucifier129 / react-imvc

An Isomorphic MVC Framework supports both SSR and CSR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

编译的时候比较慢,是不是可以把部分dependencies放到devDependencies

raclen opened this issue · comments

react-imvc的package.json有这么多,是不是可以把部分写到开发依赖里面,发布就会快很多

  "dependencies": {
    "babel-cli": "^6.14.0",
    "babel-core": "^6.17.0",
    "babel-loader": "^6.2.5",
    "babel-polyfill": "^6.13.0",
    "babel-preset-env": "^1.6.1",
    "babel-preset-react": "^6.11.1",
    "babel-preset-stage-0": "^6.5.0",
    "babel-register": "^6.14.0",
    "body-parser": "~1.13.2",
    "bundle-loader": "^0.5.4",
    "chalk": "^1.1.3",
    "classnames": "^2.2.5",
    "compression": "^1.6.2",
    "cookie-parser": "~1.3.5",
    "create-app": "^0.6.0",
    "cross-spawn": "^5.1.0",
    "debug": "~2.2.0",
    "del": "^3.0.0",
    "expect": "^1.20.2",
    "express": "~4.14.0",
    "express-react-views": "^0.10.2",
    "fetch-ie8": "^1.5.0",
    "gulp": "^3.9.1",
    "gulp-babel": "^6.1.2",
    "gulp-clean-css": "^3.0.3",
    "gulp-htmlmin": "^3.0.0",
    "gulp-imagemin": "^3.1.1",
    "gulp-plumber": "^1.1.0",
    "gulp-uglify": "^2.1.0",
    "gulp-util": "^3.0.8",
    "helmet": "^3.1.0",
    "js-cookie": "^2.1.4",
    "memory-fs": "^0.4.1",
    "mocha": "^3.0.2",
    "morgan": "~1.6.1",
    "node-fetch": "^1.6.3",
    "node-notifier": "^5.2.1",
    "optimize-js-plugin": "^0.0.4",
    "querystring": "^0.2.0",
    "react": "^15.6.1",
    "react-dom": "^15.6.1",
    "relite": "^1.0.5",
    "serve-favicon": "^2.3.0",
    "webpack": "1.13.2",
    "webpack-bundle-analyzer": "^2.3.1",
    "webpack-dev-middleware": "^1.9.0",
    "webpack-hot-middleware": "^2.22.2",
    "whatwg-fetch": "^2.0.3",
    "yargs": "^8.0.2"
  },

可以放到 devDeps 的都放进去了,上面列出来都是会用到的。

react-imvc 不是一个库,而是一个包含 cli, server, client 的框架,所以它需要用 babel 去编译业务代码,需要 webpack 去构建,需要 gulp 去搬运文件、压缩非 js 资源,需要 express 去起 node.js 服务等。