Skip to content
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

In gulp --tasks, we should be able to list only "public" tasks. #490

Closed
kud opened this issue May 27, 2014 · 17 comments
Closed

In gulp --tasks, we should be able to list only "public" tasks. #490

kud opened this issue May 27, 2014 · 17 comments

Comments

@kud
Copy link

kud commented May 27, 2014

I love to simplify things and hiding private gulp tasks could be great. Some tasks alone have no sens for the end user. Only display public tasks.

Something like https://www.npmjs.org/package/gulp-task-listing could be great.

@sindresorhus
Copy link
Contributor

Yes, gulp should somehow have a notion of public and private tasks.

@heikki
Copy link
Contributor

heikki commented May 27, 2014

Isn't that coming in version 4 with "private task" being just a function? .. or do I remember plans correctly ..

@yocontra
Copy link
Member

Use functions and don't register them with gulp.task

@kud
Copy link
Author

kud commented May 27, 2014

Thanks :)

@sindresorhus
Copy link
Contributor

@contra but then you lose out on the dependency and concurrency stuff.

@kud
Copy link
Author

kud commented May 27, 2014

Oh, so please reopen the issue. :)

@yocontra yocontra reopened this May 28, 2014
@yocontra
Copy link
Member

@robrich adding support for a fn instead of a task name in a deps array?

@robrich
Copy link
Contributor

robrich commented May 29, 2014

Interesting idea, but in gulp 4, there is no dependency array.

@nodesocket
Copy link

I'd like to see a way to define tasks as internal as well. Since I use:

gulp.task('build', function(cb) {
    runSequence('uglify', 'buildHTML', 'rmRevManifest', cb);
}

Tasks uglify, buildHTML, and rmRevManifest don't need to be exposed publicly.

Perhaps a new function?

gulp.internalTask()

@yocontra
Copy link
Member

yocontra commented Jul 9, 2014

Please see the new task system spec before commenting about new ideas - the new task system is different and has a different goal.

@pkozlowski-opensource
Copy link
Contributor

@contra I might be late to the party, but where I can actually find spec for the "new task system" - would be very interested in having a look but couldn't find references to the mentioned docs in the README nor on WIKI pages. Googling didn't bring any relevant results either...

@Delapouite
Copy link

@pkozlowski-opensource
Copy link
Contributor

I believe that this issue should be closed in favour of #355 where a new task system is discussed. With the proposed approach one can use any async function as part of task dependencies. Personally I think that ideas behind the proposal in #355 are (very) solid (there are just few things to sort out left) and a new task system is going to solve this issue (plus some others) in the very elegant way.

@yocontra
Copy link
Member

yocontra commented Sep 1, 2014

@phated How will this be supported in gulp 4?

@phated
Copy link
Member

phated commented Sep 4, 2014

In gulp4, you don't register a function with gulp.task. anonymous functions will show up as <anonymous> in the output and named functions will show up as <FUNCTION_NAME>, which allows us to display series/parallel names.

@kud
Copy link
Author

kud commented Sep 4, 2014

Niiiice. :)

@phated phated modified the milestone: gulp 4 Sep 14, 2014
@phated phated added the gulp4 label Dec 12, 2014
@yocontra
Copy link
Member

Closing this since it already exists in 4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants