Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Task Enhancements #666

Merged
merged 2 commits into from
Jul 24, 2015
Merged

Task Enhancements #666

merged 2 commits into from
Jul 24, 2015

Conversation

rhutchison
Copy link
Contributor

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.

@lirantal
Copy link
Member

need someone who knows gulp to review this

@lirantal lirantal mentioned this pull request Jul 20, 2015
14 tasks
@@ -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)
Copy link
Member

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..

@rhutchison rhutchison force-pushed the task-enhancements branch 3 times, most recently from 87e65b2 to 7feae10 Compare July 21, 2015 01:15
@rhutchison
Copy link
Contributor Author

@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');
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ilanbiala
Copy link
Member

@lirantal LGTM. Any concerns, or can I merge?

@ilanbiala ilanbiala added this to the 0.4.0 milestone Jul 23, 2015
@lirantal
Copy link
Member

Go ahead, I don't know gulp yet anyway :-)

ilanbiala added a commit that referenced this pull request Jul 24, 2015
Grunt and Gulp task enhancements
@ilanbiala ilanbiala merged commit 3a39f0a into meanjs:0.4.0 Jul 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants