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

Gulp - Introduce "task" in place of args and verify task exists. #5

Closed
dmccaffery opened this issue Dec 8, 2015 · 0 comments
Closed
Assignees
Milestone

Comments

@dmccaffery
Copy link
Member

Currently, condo will execute "gulp" against any path that is discovered to contain a gulpfile.js, gulpfile.ts, or gulpfile.babel.js, which causes gulp to attempt to execute the default task.

Since a default task may or may not exist, we should call gulp --tasks-simple first to verify that the requested task exists and is available, emitting a warning if it is not (for anything other than the default task).

To make this easier, we should introduce a gulp_task argument with a default value of default.

So, if the gulp shade is called without a gulp_task argument:

  • Only execute if the 'default' task is available.
  • Do not emit any warning if no 'default' task is specified.

If the gulp shade is called with a gulp_task argument:

  • Only execute if the task is available.
  • Emit a warning indicating that the specified task does not exist.
@dmccaffery dmccaffery added this to the 1.0.0 milestone Dec 8, 2015
@dmccaffery dmccaffery mentioned this issue Dec 11, 2015
@dmccaffery dmccaffery self-assigned this Dec 13, 2015
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

1 participant