mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Add --userDir=/tmp/foo support to grunt dev
This commit is contained in:
parent
bcd85b11a1
commit
dc81b7a699
@ -25,6 +25,11 @@ module.exports = function(grunt) {
|
|||||||
if (flowFile) {
|
if (flowFile) {
|
||||||
nodemonArgs.push(flowFile);
|
nodemonArgs.push(flowFile);
|
||||||
}
|
}
|
||||||
|
var userDir = grunt.option('userDir');
|
||||||
|
if (userDir) {
|
||||||
|
nodemonArgs.push("-u");
|
||||||
|
nodemonArgs.push(userDir);
|
||||||
|
}
|
||||||
|
|
||||||
var browserstack = grunt.option('browserstack');
|
var browserstack = grunt.option('browserstack');
|
||||||
if (browserstack) {
|
if (browserstack) {
|
||||||
@ -623,7 +628,7 @@ module.exports = function(grunt) {
|
|||||||
grunt.registerTask('build',
|
grunt.registerTask('build',
|
||||||
'Builds editor content',
|
'Builds editor content',
|
||||||
['clean:build','jsonlint','concat:build','concat:vendor','copy:build','uglify:build','sass:build','attachCopyright']);
|
['clean:build','jsonlint','concat:build','concat:vendor','copy:build','uglify:build','sass:build','attachCopyright']);
|
||||||
|
|
||||||
grunt.registerTask('build-dev',
|
grunt.registerTask('build-dev',
|
||||||
'Developer mode: build dev version',
|
'Developer mode: build dev version',
|
||||||
['clean:build','concat:build','concat:vendor','copy:build','sass:build','setDevEnv']);
|
['clean:build','concat:build','concat:vendor','copy:build','sass:build','setDevEnv']);
|
||||||
|
Loading…
Reference in New Issue
Block a user