Add npm build/test scripts

Closes #946 #660
This commit is contained in:
Nick O'Leary 2016-10-10 11:48:44 +01:00
parent 8368815db5
commit eb1a597456
2 changed files with 10 additions and 10 deletions

View File

@ -29,24 +29,23 @@ For further help, or general discussion, please use the
If you want to run the latest code from git, here's how to get started: If you want to run the latest code from git, here's how to get started:
1. Install grunt, the build tool 1. Clone the code:
npm install -g grunt-cli
2. Clone the code:
git clone https://github.com/node-red/node-red.git git clone https://github.com/node-red/node-red.git
cd node-red cd node-red
3. Install the node-red dependencies 2. Install the node-red dependencies
npm install npm install
4. Build the code 3. Build the code
grunt build npm run build
5. Run 4. Run
npm start
or
node red.js node red.js

View File

@ -11,7 +11,8 @@
"main" : "red/red.js", "main" : "red/red.js",
"scripts" : { "scripts" : {
"start": "node red.js", "start": "node red.js",
"test": "./node_modules/.bin/grunt" "test": "grunt",
"build": "grunt build"
}, },
"bin" : { "bin" : {
"node-red": "./red.js", "node-red": "./red.js",