Skip to content

Commit fe34b4b

Browse files
authored
Merge pull request #8 from AlokTakshak/development
added update notifier
2 parents ab279d7 + d80aba6 commit fe34b4b

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ demo-app
5151
create-react-webpack demo-app -e
5252
```
5353

54-
It incules the node server for deploying into production into your `demo-app`, with below file footprint.
54+
It `includes` the `node server` for deploying `into` production into your `demo-app`, with below file footprint.
5555

5656
```
5757
demo-app
@@ -92,7 +92,8 @@ Uses webpack `prod` `config` along with `base` `config`
9292
### `npm start`
9393

9494
Start the production server on default port `3000`.<br>
95-
Read files from `dist` folder.
95+
Read files from `dist` folder.<br>
96+
before running this first run `npm run build`.
9697

9798
### `npm run dev`
9899

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-react-webpack",
3-
"version": "0.0.5",
3+
"version": "0.0.7",
44
"description": "create-react-webpack ",
55
"main": "scripts/create.js",
66
"bin": {
@@ -25,6 +25,7 @@
2525
},
2626
"homepage": "https://github.com/AlokTakshak/create-react-webpack#readme",
2727
"dependencies": {
28-
"chalk": "^2.4.2"
28+
"chalk": "^2.4.2",
29+
"update-notifier": "^3.0.1"
2930
}
3031
}

startApp.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
const path = require("path");
44
const child_process = require("child_process");
5+
const updateNotifier = require('update-notifier');
6+
const pkg = require('./package.json');
7+
8+
const notifier = updateNotifier({pkg});
9+
notifier.notify();
10+
console.log(notifier.update)
511

612
var args = process.argv.slice(2);
713
var dirName = args[0];

0 commit comments

Comments
 (0)