-
Notifications
You must be signed in to change notification settings - Fork 2k
Conversation
need someone who knows gulp to review this |
@@ -32,7 +33,7 @@ gulp.task('nodemon', function () { | |||
script: 'server.js', | |||
nodeArgs: ['--debug'], | |||
ext: 'js,html', | |||
watch: _.union(defaultAssets.server.views, defaultAssets.server.allJS, defaultAssets.server.config) | |||
watch: _.union(defaultAssets.server.gulpConfig, defaultAssets.server.views, defaultAssets.server.allJS, defaultAssets.server.config) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does Gulp work with new code if you have it watching? I don't remember it being able to do that..
87e65b2
to
7feae10
Compare
remove watch on gulpfile.js
7feae10
to
3e378b4
Compare
@ilanbiala please review updated PR. |
.pipe(plugins.rename(function (path) { | ||
path.dirname = path.dirname.replace('/scss', '/css'); | ||
.pipe(plugins.rename(function (file) { | ||
file.dirname = file.dirname.replace(path.sep + 'scss', path.sep + 'css'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When was path.sep added in?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I meant into Gulp. Also, how is it path.sep
when we are passing in file
now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
file is just an object with dirname, which is the directory of which the file belongs to. I am missing your questions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is path coming from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lirantal LGTM. Any concerns, or can I merge? |
Go ahead, I don't know gulp yet anyway :-) |
Grunt and Gulp task enhancements
Enhancement: Grunt vs Gulp
If you are running gulp, and edit the gruntconfig.js file, gulp will restart. This change is to separate automation configuration changes so that gruntfile.js updates do not restart the gulp process.
Additionally, this adds gulpconfig.js monitoring so that it will restart gulp if there are changes to gulpconfig.js
Bug: Path Separator
There is an issue on windows with path separator when compiling less/sass with gulp. Grunt does not have this issue.