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

Docs could use extended info to implement tasks fully supporting the files selector. #51

Open
Bartvds opened this issue May 1, 2013 · 1 comment
Assignees

Comments

@Bartvds
Copy link

Bartvds commented May 1, 2013

The documentation on how to configure tasks and specify the files filter options is excellent but there is no counterpart for it in the creating tasks section, which has does have good info on the basics of building tasks but skips over using the selected files.

It's a bit odd as everything else is very specced out and the selector options and filters are very powerful feature to leverage.

Now we have to root through the contrib tasks and find one which works similar to what we try to do and just voodoo-cargo-cult it cross referenced with the fragmented info that exists until it starts to makes sense.

For me as grunt n00b there seems to be a few common scenario's that could be covered: the read-only scenario (only using src's), the conversion scenario (multiple src's in, multiple dest's out) and a concat scenario (multiple src's in, single dest out).

If I look at the existing plugins there seems to be a lot of different ways with expansions and filters and nested loops over getters, even in the contrib tasks. For example grunt-contrib-copy does a lot of stuff more then others would and it's hard to grasp why.

Looking at non contrib plugins I might not be the only one who makes a mess and doesn't support cwd and flatten properly so it might be an improvement if a veteran could add some quality demo code to the project.

@JKVeganAbroad
Copy link
Contributor

Just to clarify, you're requesting more comprehensive documentation on ONE of the following things:

  1. Creating your own Gruntfile.js task plugin (e.g. Creating an open-source grunt task to release to the world)
  2. Creating your own task embedded within the Gruntfile.js file itself (e.g. Creating a very specific task tailored to your specific project)

@Bartvds, Would you be able to clarify which of the above things you were requesting about?

@JKVeganAbroad JKVeganAbroad self-assigned this Feb 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants