diff --git a/boilerplates/app/.roadhogrc b/boilerplates/app/.roadhogrc new file mode 100644 index 0000000..0caac21 --- /dev/null +++ b/boilerplates/app/.roadhogrc @@ -0,0 +1,20 @@ +{ + "entry": "src/index.js", + "disableCSSModules": false, + "less": false, + "publicPath": "/", + "autoprefixer": null, + "proxy": null, + + "extraBabelPlugins": [ + "transform-runtime" + ], + + "env": { + "development": { + "extraBabelPlugins": [ + "dva-hmr" + ] + } + } +} diff --git a/boilerplates/app/package.json b/boilerplates/app/package.json index 186e42c..a630af3 100644 --- a/boilerplates/app/package.json +++ b/boilerplates/app/package.json @@ -9,22 +9,15 @@ "react-dom": "^15.4.0" }, "devDependencies": { - "atool-build": "^0.9.0", - "atool-test-mocha": "^0.1.5", - "babel-plugin-dev-expression": "^0.2.1", "babel-plugin-dva-hmr": "^0.2.0", "babel-plugin-transform-runtime": "^6.9.0", "babel-runtime": "^6.9.2", - "dora": "^0.4.3", - "dora-plugin-proxy": "^0.8.4", - "dora-plugin-webpack": "^0.8.1", - "dora-plugin-webpack-hmr": "^0.2.1", "expect": "^1.20.2", "redbox-react": "^1.3.2" }, "scripts": { - "start": "dora --plugins \"proxy?watchDirs=./mock,webpack,webpack-hmr\"", - "build": "atool-build", - "test": "atool-test-mocha ./src/**/*-test.js" + "start": "roadhog server", + "build": "roadhog build", + "test": "mocha ./src/**/*-test.js" } }