Skip to content
This repository was archived by the owner on Dec 9, 2021. It is now read-only.

Commit d74dfda

Browse files
committed
Update task names
1 parent 43f19eb commit d74dfda

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

Diff for: README.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ Example application demonstrating react-hot-loader-3 with webpack-2, react and f
1212

1313
> Type `rs` with a carriage return to restart nodemon if you make changes to the files within `server-side`. It's not efficient to automatically restart nodemon on file changes.
1414
15-
## build tasks
16-
- $ `yarn start` (production build w/ server)
17-
- $ `yarn build` (production build)
15+
## production tasks
16+
- $ `yarn prod` (production build w/ server)
17+
- $ `yarn prod:build` (production build)
18+
19+
## staging tasks
20+
- $ `yarn staging` (staging build w/ server)
21+
- $ `yarn staging:build` (staging build)

Diff for: package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@
77
"remove": "cross-env rimraf dist",
88
"buildServer": "cross-env BABEL_ENV=server ./node_modules/.bin/babel src --out-dir dist",
99
"watchServer": "cross-env BABEL_ENV=server ./node_modules/.bin/babel src --out-dir dist --watch",
10-
"removeBuildServer": "cross-env npm run remove && npm run buildServer",
10+
"removeAndBuildServer": "cross-env npm run remove && npm run buildServer",
1111
"start": "cross-env NODE_ENV=production node ./dist/server.js",
1212
"---------- DEVELOPMENT -------------------------------------------------------------------------": "",
13-
"predev": "cross-env npm run removeBuildServer",
13+
"predev": "cross-env npm run removeAndBuildServer",
1414
"dev": "cross-env npm run watchServer & npm run devServer",
1515
"devServer": "cross-env BABEL_ENV=client NODE_ENV=development nodemon ./dist/server.js",
1616
"---------- STAGING -----------------------------------------------------------------------------": "",
17-
"prestaging": "cross-env npm run removeBuildServer",
18-
"staging": "cross-env BABEL_ENV=client NODE_ENV=staging webpack -p",
19-
"start:staging": "cross-env npm run staging && npm run start",
17+
"prestaging:build": "cross-env npm run removeAndBuildServer",
18+
"staging:build": "cross-env BABEL_ENV=client NODE_ENV=staging webpack -p",
19+
"staging": "cross-env npm run staging:build && npm run start",
2020
"---------- PRODUCTION --------------------------------------------------------------------------": "",
21-
"preprod": "cross-env npm run removeBuildServer",
22-
"prod": "cross-env BABEL_ENV=client NODE_ENV=production webpack -p",
23-
"start:prod": "cross-env npm run prod && npm run start",
21+
"preprod:build": "cross-env npm run removeAndBuildServer",
22+
"prod:build": "cross-env BABEL_ENV=client NODE_ENV=production webpack -p",
23+
"prod": "cross-env npm run prod:build && npm run start",
2424
"---------- TESTING -----------------------------------------------------------------------------": "",
2525
"test": "cross-env npm run lint && npm run unit",
2626
"lint": "cross-env eslint src --ext .js,.jsx",

0 commit comments

Comments
 (0)