Added base webpack configuration and needed shellscripts.

This commit is contained in:
Chris
2015-08-27 17:07:53 +02:00
parent dce9142863
commit 5e32fef364
13 changed files with 262 additions and 9 deletions
+35 -4
View File
@@ -5,17 +5,48 @@ It can be understood as the prototype for newly generated projects.
## Features
The following features are planned to be included in the final version:
- [ ] Webpack
- [ ] Babel
- [x] Webpack and Webpack-Dev-Server, including hot-loader
- [x] Babel and JSX
- [ ] Mocha Unit tests (*optional*)
- [ ] React.Router
- [ ] EsLint Support
- [ ] No dependency on grunt, gulp or the next hot taskrunner!
- [x] EsLint Support
- [x] No dependency on grunt, gulp or the next hot taskrunner!
## What is it for?
This template can be used directly for the creation of new projects.
Also it will be the "template" for the next version of generator-react-webpack.
## Using it
The template is available via webpack. The following commands are available:
```bash
# Start for development
npm start # or
npm run serve
# Start the dev-server with the dist version
npm run servedist
# Just build the dist version
npm run dist
# Run unit tests
npm test
```
You can also use your globally installed version of webpack like this:
```bash
# Build or run the dev version:
webpack
webpack --env=dev
webpack-dev-server
webpack-dev-server --env=dev
# Build or run the dist version
webpack --env=dist
webpack-dev-server --env=dist
```
## License
react-webpack-template is available under MIT-License and can therefore be used in any project free of charge.