From 658746d2a38a19f0d22574b3a2df8c699f9fb998 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Thu, 13 Aug 2015 22:41:51 +0100 Subject: [PATCH] Allow flow file to be specified with grunt dev For example: grunt dev --flowFile=flows.json --- Gruntfile.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index ba35b0b20..136d25f30 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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'