File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ demo-app
5151create-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```
5757demo-app
@@ -92,7 +92,8 @@ Uses webpack `prod` `config` along with `base` `config`
9292### ` npm start `
9393
9494Start 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
Original file line number Diff line number Diff line change 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" : {
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}
Original file line number Diff line number Diff line change 22
33const path = require ( "path" ) ;
44const 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
612var args = process . argv . slice ( 2 ) ;
713var dirName = args [ 0 ] ;
You can’t perform that action at this time.
0 commit comments