NPM scripts
This commit is contained in:
parent
ed04c1510c
commit
5b248f46dd
|
@ -102,7 +102,7 @@ npm install
|
||||||
|
|
||||||
Start server
|
Start server
|
||||||
```bash
|
```bash
|
||||||
node server.js
|
npn run start
|
||||||
```
|
```
|
||||||
|
|
||||||
Browse to ```http://localhost:8080```
|
Browse to ```http://localhost:8080```
|
||||||
|
@ -120,13 +120,13 @@ npm install requirejs -g
|
||||||
... and run this in the project root directory
|
... and run this in the project root directory
|
||||||
|
|
||||||
```
|
```
|
||||||
r.js -o requirejs.build.js
|
npm run build
|
||||||
```
|
```
|
||||||
|
|
||||||
(or in windows, as you'll get a script error from the above script)
|
(or in windows, as you'll get a script error from the above script)
|
||||||
|
|
||||||
```
|
```
|
||||||
r.js.cmd -o requirejs.build.js
|
npm run build:win
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,11 @@
|
||||||
"preferGlobal": true,
|
"preferGlobal": true,
|
||||||
"private": false,
|
"private": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"No tests written yet\" && exit 0"
|
"test": "echo \"No tests written yet\" && exit 0",
|
||||||
|
"build": "r.js -o requirejs.build.js",
|
||||||
|
"build:win": "r.js.cmd -o requirejs.build.js",
|
||||||
|
"start": "node server.js"
|
||||||
|
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"cryptalk",
|
"cryptalk",
|
||||||
|
|
Loading…
Reference in New Issue