File tree 2 files changed +12
-15
lines changed
2 files changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,18 @@ See [NuclearJS: Getting Started](https://optimizely.github.io/nuclear-js/docs/01
4
4
5
5
Taken (and slightly modified) from [ https://github.com/voronianski/flux-comparison ] ( https://github.com/voronianski/flux-comparison )
6
6
7
- ## To Run
7
+ ## Running
8
8
9
- The compiled files are checked in simply, open the ` index.html ` file
9
+ You must have [ npm] ( https://www.npmjs.org/ ) installed on your computer.
10
+ From the root project directory run these commands from the command line:
10
11
11
- ## To modify
12
+ ` npm install `
12
13
13
- ** Start the webpack watch task: **
14
+ This will install all dependencies.
14
15
15
- ``` sh
16
- webpack -w
17
- ```
16
+ To build the project, first run this command:
17
+
18
+ ` npm start `
19
+
20
+ After starting the watcher, you can open ` index.html ` in your browser to
21
+ open the app.
Original file line number Diff line number Diff line change 1
1
{
2
2
"main" : " js/app.js" ,
3
3
"scripts" : {
4
- "start" : " ../node_modules/watchify/bin/cmd.js js/app.js -o build/bundle.js -v -d" ,
5
- "build" : " browserify js/app.js > build/bundle.js"
6
- },
7
- "browserify" : {
8
- "transform" : [
9
- " babelify" ,
10
- " envify"
11
- ]
4
+ "start" : " ./node_modules/webpack/bin/webpack.js --watch --progress"
12
5
},
13
6
"dependencies" : {
14
7
"nuclear-js" : " ^1.0.5" ,
You can’t perform that action at this time.
0 commit comments