Allow flow file to be specified with grunt dev

For example: grunt dev --flowFile=flows.json
This commit is contained in:
Nick O'Leary 2015-08-13 22:41:51 +01:00
parent cbdd4de630
commit 658746d2a3
1 changed files with 7 additions and 1 deletions

View File

@ -18,6 +18,12 @@ var path = require("path");
module.exports = function(grunt) {
var nodemonArgs = ["-v"];
var flowFile = grunt.option('flowFile');
if (flowFile) {
nodemonArgs.push(flowFile);
}
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
paths: {
@ -229,7 +235,7 @@ module.exports = function(grunt) {
dev: {
script: 'red.js',
options: {
args:['-v'],
args: nodemonArgs,
ext: 'js,html,json',
watch: [
'red','nodes'