1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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

View File

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