-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
simpler than gulp-runtime #1
Comments
thanks |
Great 👍 |
Know what I just made you collaborator, so do as you see fit ;) |
thanks :) |
it works :) only one minor thing I've noticed - need to press Ctrl+C twice to exit |
found it: var repl = require('gulp-repl');
repl.on('SIGINT', function () {
process.exit();
}); |
Yep, that's it :). If you want to PR and merge it go ahead. Add an exit code though ( I've thought to add the ability to run in a task in series/parallel directly from the repl. But not much more aside of whats here. Any ideas? |
but it's possible to run tasks in parallel
and I see in logs that they run in parallel sadly it's impossible to run a task with options |
Yes, gulp runs them in parallel by default. I was talking about this
Being With gulp-runtime you can pass options :). var gulp = require('gulp-runtime').create({repl: true});
gulp.task('jade :glob', function(){
// do stuff
});
gulp.stack('jade app/**/*.jade')(); Same using the repl
But to do that you have to monkeypatch That said, if you find some simple way I'm up to it. EDIT: that's one of the reasons I had to do all using vinyl-fs directly |
I see |
Yeah, that would be great. They did this on nodejs/node#1513, I'll take a look on how they did it. In any case it should be behind an option like |
agree |
one more idea
and process exits |
Yep, that's doable. It would be just to check each of the given arguments before running them and see if there is any that is not defined as a task. |
What about not exiting the process at all? I mean, just to mistype a name is not a big deal |
I agree |
works fine 👍 |
I've mentioned an interesting idea earlier |
Do a PR, I wouldn't mind at all :) |
it would be a new separated project as the work process will differ |
you can say it's an alternative approach |
That would be really cool! We could do a native app using electron for example. |
There is one https://github.com/sindresorhus/gulp-app already :) |
But you are talking more like a dashboard and the latter is more like a notifier app, which is also good. I like the idea of a simple app for this. |
will check your links now |
ok, other repo right? |
I think maybe skype or email |
ok, whatever you like |
hello
with or without a task |
You could do that with var gulp = require('gulp-runtime').create({repl: true});
gulp.task(':envFlag([A-Z_]+=?\\S*)', function(next){
console.log(this.params);
var flag = this.params.envFlag.split('=');
process.env[flag[0]] = flag[1] || true;
next();
});
// will run the handle above
gulp.stack('DEBUG_LEVEL=2')(); EDIT: I edited so the example is more complete |
But maybe is a good idea to put it here anyway it would not take much. |
ok, I'll check it |
Thank you so much for the module, haha it's great |
😄 welcome man thanks for the kind words |
This is maybe what I should have done from the beginning with gulp-runtime just a simple module.
I think you'll be interested in this one @DarkPark
The text was updated successfully, but these errors were encountered: