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",