diff --git a/README.md b/README.md index f95e5ee..a9cb0e0 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ demo-app create-react-webpack demo-app -e ``` -It incules the node server for deploying into production into your `demo-app`, with below file footprint. +It `includes` the `node server` for deploying `into` production into your `demo-app`, with below file footprint. ``` demo-app @@ -92,7 +92,8 @@ Uses webpack `prod` `config` along with `base` `config` ### `npm start` Start the production server on default port `3000`.
-Read files from `dist` folder. +Read files from `dist` folder.
+before running this first run `npm run build`. ### `npm run dev` diff --git a/package.json b/package.json index 7ab24ac..a63ecec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "create-react-webpack", - "version": "0.0.5", + "version": "0.0.7", "description": "create-react-webpack ", "main": "scripts/create.js", "bin": { @@ -25,6 +25,7 @@ }, "homepage": "https://github.com/AlokTakshak/create-react-webpack#readme", "dependencies": { - "chalk": "^2.4.2" + "chalk": "^2.4.2", + "update-notifier": "^3.0.1" } } diff --git a/startApp.sh b/startApp.sh index 1828149..2d78dfd 100755 --- a/startApp.sh +++ b/startApp.sh @@ -2,6 +2,12 @@ const path = require("path"); const child_process = require("child_process"); +const updateNotifier = require('update-notifier'); +const pkg = require('./package.json'); + +const notifier = updateNotifier({pkg}); +notifier.notify(); +console.log(notifier.update) var args = process.argv.slice(2); var dirName = args[0];