Skip to content

Commit

Permalink
use roadhog
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Dec 15, 2016
1 parent 085a582 commit 203f2ff
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
20 changes: 20 additions & 0 deletions boilerplates/app/.roadhogrc
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
}
13 changes: 3 additions & 10 deletions boilerplates/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 203f2ff

Please sign in to comment.