Skip to content

Commit

Permalink
Update project files
Browse files Browse the repository at this point in the history
  • Loading branch information
SFantasy committed Dec 16, 2015
1 parent 215919b commit 910041b
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
.idea/
.idea/
npm-debug.log
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
RNComponents
---

## Dashboard

Dashboard of RNComponents is developed with React.

- Develop

```
npm start
```

- Generate production bundle

```
npm run deploy
```

## License

The MIT License
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@
"babel-loader": "^6.2.0",
"babel-plugin-transform-runtime": "^6.1.18",
"babel-runtime": "^6.2.0",
"css-loader": "^0.23.0",
"node-sass": "^3.4.2",
"react-hot-loader": "^1.3.0",
"sass-loader": "^3.1.2",
"style-loader": "^0.13.0",
"webpack": "^1.12.9",
"webpack-dev-server": "^1.14.0"
},
Expand Down
1 change: 1 addition & 0 deletions server.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ var WebpackDevServer = require('webpack-dev-server');
var config = require('./webpack.config');

new WebpackDevServer(webpack(config), {
contentBase: __dirname + '/',
publicPath: config.output.publicPath,
hot: true,
historyApiFallback: true
Expand Down
11 changes: 9 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,17 @@ module.exports = {
},
module: {
loaders:[
{ test: /\.scss$/, loader: ['style', 'css', 'sass']},
{ test: /\.js[x]?$/, exclude: /node_modules/, loader: 'babel-loader' },
{ test: /\.scss$/, loaders: ['style', 'css', 'sass']},
{
test: /\.js[x]?$/,
exclude: /node_modules/,
loaders: ['react-hot', 'babel?presets[]=react,presets[]=es2015']
}
]
},
resolve: {
extensions: ['', '.js', '.jsx', 'json']
},
plugins: [
new webpack.HotModuleReplacementPlugin()
]
Expand Down
2 changes: 1 addition & 1 deletion webpack.deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
},
module: {
loaders:[
{ test: /\.scss$/, loader: ['style', 'css', 'sass']},
{ test: /\.scss$/, loaders: ['style', 'css', 'sass']},
{ test: /\.js[x]?$/, exclude: /node_modules/, loader: 'babel-loader' },
]
}
Expand Down

0 comments on commit 910041b

Please sign in to comment.