From 5b248f46dd21c5e4fd8b44dcba2ca7cf19eae411 Mon Sep 17 00:00:00 2001 From: Hexagon Date: Sun, 3 Oct 2021 21:20:27 +0200 Subject: [PATCH] NPM scripts --- README.md | 6 +++--- package.json | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d81f51b..5e1a5e5 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/package.json b/package.json index d182647..6cef65f 100644 --- a/package.json +++ b/package.json @@ -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",