From aed3c2e271b19105396c8cd2f7906f915dd15e35 Mon Sep 17 00:00:00 2001 From: Olivier Lambert Date: Tue, 6 Oct 2015 12:42:22 +0200 Subject: [PATCH 1/2] add npm build script and update the doc accordingly --- README.md | 4 ++-- package.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 78e57b98..fc49bc4a 100644 --- a/README.md +++ b/README.md @@ -34,8 +34,8 @@ To run the app from source, just clone the code and run this in your terminal: ``` npm install -grunt -./index.js --port 8080 +npm run build +npm start -- --port 8080 ``` And if you don't have [grunt](http://gruntjs.com/getting-started) installed already, just run `npm install -g grunt-cli`. diff --git a/package.json b/package.json index 50684d23..3f06de0e 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ }, "scripts": { "start": "node index", + "build": "grunt", "test": "HOME=test/fixtures mocha test/**/*.js" }, "keywords": [ From 9e98d012553aeb7d1bfaf27162aefdfccd862b8f Mon Sep 17 00:00:00 2001 From: Olivier Lambert Date: Wed, 7 Oct 2015 14:51:00 +0200 Subject: [PATCH 2/2] remove useless Grunt instruction in the doc --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index fc49bc4a..61927bef 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,6 @@ npm run build npm start -- --port 8080 ``` -And if you don't have [grunt](http://gruntjs.com/getting-started) installed already, just run `npm install -g grunt-cli`. - ## License Available under [the MIT license](http://mths.be/mit).