Skip to content

Commit

Permalink
Added npm task for running it on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanko committed Mar 10, 2017
1 parent c4210b0 commit e62cd8d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,13 @@ By complete I mean it has examples for:
- [x] File imports relative to the app root
- [x] Git hooks - lint before push

Universal may be added at some point.
## TODO

- [ ] Tree shaking build
- [ ] Switch to [redux-saga](https://github.com/redux-saga/redux-saga)
- [ ] Universal rendering
- [ ] Server async data
- [ ] Internationalization

Other nice to have features

Expand Down Expand Up @@ -158,6 +161,10 @@ npm run hook-remove

## Changelog

#### 0.1.1

* Fixed running it on Windows machines

#### 0.1.0

* Updated `webpack` to a stable version
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "react-redux-webpack2-boilerplate",
"version": "0.1.0",
"version": "0.1.1",
"private": false,
"license": "MIT",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "./node_modules/webpack-dashboard/bin/webpack-dashboard.js -t 'React-Redux Boilerplate' -- ./node_modules/webpack-dev-server/bin/webpack-dev-server.js",
"build": "rm -rf ./build && NODE_ENV=\"production\" ./node_modules/webpack/bin/webpack.js",
"lint-break-on-errors": "./node_modules/eslint/bin/eslint.js ./source/js ./webpack.config.js -f table --ext .js --ext .jsx",
"lint": "./node_modules/eslint/bin/eslint.js ./source/js ./webpack.config.js -f table --ext .js --ext .jsx || true",
"start": "webpack-dashboard -t 'React-Redux Boilerplate' -- webpack-dev-server --colors --no-info",
"build": "rm -rf ./build && NODE_ENV=\"production\" webpack",
"lint-break-on-errors": "eslint ./source/js ./webpack.config.js -f table --ext .js --ext .jsx",
"lint": "eslint ./source/js ./webpack.config.js -f table --ext .js --ext .jsx || true",
"preview": "NODE_ENV=\"production\" ./node_modules/webpack-dashboard/bin/webpack-dashboard.js -t 'Preview Mode - React-Redux Boilerplate' -- ./node_modules/webpack-dev-server/bin/webpack-dev-server.js",
"hook-add": "./node_modules/prepush/bin/cli.js install",
"hook-remove": "./node_modules/prepush/bin/cli.js remove"
"hook-add": "prepush install",
"hook-remove": "prepush remove"
},
"devDependencies": {
"autoprefixer": "^6.5.3",
Expand All @@ -23,7 +23,7 @@
"babel-plugin-transform-class-properties": "^6.6.0",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-runtime": "^6.6.0",
"babel-preset-es2015": "^6.18.0",
"babel-preset-es2015": "^6.22.0",
"babel-preset-react": "^6.5.0",
"babel-preset-react-hmre": "^1.1.1",
"babel-preset-stage-0": "^6.16.0",
Expand Down
2 changes: 1 addition & 1 deletion source/js/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class Routes extends Component {
<Router history={ browserHistory }>
<Route path={ publicPath } component={ App }>
<IndexRoute component={ Dashboard } />
<Route path={ routeCodes.POCKET_AUTH } component={ Dashboard } />
<Route path={ routeCodes.DASHBOARD } component={ Dashboard } />
<Route path={ routeCodes.ABOUT } component={ About } />

<Route path='*' component={ NotFound } />
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ if (isProduction) {
{
test: /\.scss$/,
loader: ExtractTextPlugin.extract({
fallbackLoader: 'style-loader',
loader: 'css-loader!postcss-loader!sass-loader',
fallback: 'style-loader',
use: 'css-loader!postcss-loader!sass-loader',
}),
}
);
Expand Down

0 comments on commit e62cd8d

Please sign in to comment.