You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thanks
will sure take a look
I also have an alternative point of view on the matter
after I think it over I'm going to discuss it with you - you may like it as well :)
only one minor thing I've noticed - need to press Ctrl+C twice to exit
the package node-static is seems the cause (without this task works fine)
but I remember you've already fixed the similar issue
maybe you can advise something?
I see
One more idea - persistent history
using console a log I get used to have a full history of your commands
and in the repl you have it as well but only for the current session
would be cool to save it in a configured file on exit and restore it on start
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 repl({historyFile: 'some/path/here'}) so it does not surprise anyone when it writes to disk.
you can say it's an alternative approach
I'm talking about web interface to gulp tasks - to see the list of all tasks, run them, see logs, filter each task log or all tasks at once and so on ...
vargulp=require('gulp-runtime').create({repl: true});gulp.task(':envFlag([A-Z_]+=?\\S*)',function(next){console.log(this.params);varflag=this.params.envFlag.split('=');process.env[flag[0]]=flag[1]||true;next();});// will run the handle abovegulp.stack('DEBUG_LEVEL=2')();
Activity
DarkPark commentedon May 23, 2015
thanks
will sure take a look
I also have an alternative point of view on the matter
after I think it over I'm going to discuss it with you - you may like it as well :)
stringparser commentedon May 23, 2015
Great 👍
stringparser commentedon May 25, 2015
Know what I just made you collaborator, so do as you see fit ;)
DarkPark commentedon May 26, 2015
thanks :)
DarkPark commentedon May 26, 2015
it works :)
only one minor thing I've noticed - need to press Ctrl+C twice to exit
the package
node-staticis seems the cause (without this task works fine)but I remember you've already fixed the similar issue
maybe you can advise something?
DarkPark commentedon May 26, 2015
found it:
stringparser commentedon May 26, 2015
Yep, that's it :). If you want to PR and merge it go ahead. Add an exit code though (
process.exit(0)).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?
DarkPark commentedon May 26, 2015
but it's possible to run tasks in parallel
in console I can type:
and I see in logs that they run in parallel
sadly it's impossible to run a task with options
stringparser commentedon May 26, 2015
Yes, gulp runs them in parallel by default. I was talking about this
Being
seriesa special word for the repl.With gulp-runtime you can pass options :).
Same using the repl
But to do that you have to monkeypatch
gulp.taskso you can modify how tasks are defined. I would like to keep things simple for this one.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
DarkPark commentedon May 27, 2015
I see
One more idea - persistent history
using console a log I get used to have a full history of your commands
and in the repl you have it as well but only for the current session
would be cool to save it in a configured file on exit and restore it on start
stringparser commentedon May 27, 2015
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
repl({historyFile: 'some/path/here'})so it does not surprise anyone when it writes to disk.DarkPark commentedon May 27, 2015
agree
seems promising
DarkPark commentedon May 29, 2015
one more idea
in case you mistype a task name you get:
and process exits
would be nice to not halt the programm
stringparser commentedon May 29, 2015
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.
stringparser commentedon May 30, 2015
What about not exiting the process at all? I mean, just to mistype a name is not a big deal
6 remaining items
DarkPark commentedon Jun 8, 2015
you can say it's an alternative approach
I'm talking about web interface to gulp tasks - to see the list of all tasks, run them, see logs, filter each task log or all tasks at once and so on ...
stringparser commentedon Jun 8, 2015
That would be really cool!
We could do a native app using electron for example.
stringparser commentedon Jun 8, 2015
There is one https://github.com/sindresorhus/gulp-app already :)
stringparser commentedon Jun 8, 2015
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.
DarkPark commentedon Jun 8, 2015
will check your links now
but anyway it would be good probably to discuss it somewhere else
stringparser commentedon Jun 8, 2015
ok, other repo right?
DarkPark commentedon Jun 8, 2015
I think maybe skype or email
stringparser commentedon Jun 8, 2015
ok, whatever you like
DarkPark commentedon Jul 21, 2015
hello
what do you think about ability to set process environment via repl?
e.g.
with or without a task
stringparser commentedon Jul 21, 2015
You could do that with
gulp-runtimelike thisEDIT: I edited so the example is more complete
stringparser commentedon Jul 21, 2015
But maybe is a good idea to put it here anyway it would not take much.
DarkPark commentedon Jul 21, 2015
ok, I'll check it
simonfan commentedon Sep 11, 2015
Thank you so much for the module, haha it's great
stringparser commentedon Sep 13, 2015
😄 welcome man thanks for the kind words