NPM scripts

This commit is contained in:
Hexagon 2021-10-03 21:20:27 +02:00
parent ed04c1510c
commit 5b248f46dd
2 changed files with 8 additions and 4 deletions

View File

@ -102,7 +102,7 @@ npm install
Start server
```bash
node server.js
npn run start
```
Browse to ```http://localhost:8080```
@ -120,13 +120,13 @@ npm install requirejs -g
... 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)
```
r.js.cmd -o requirejs.build.js
npm run build:win
```

View File

@ -8,7 +8,11 @@
"preferGlobal": true,
"private": false,
"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": [
"cryptalk",