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

Autoload autofile- tasks? #60

Closed
Hypercubed opened this issue Jun 25, 2013 · 2 comments
Closed

Autoload autofile- tasks? #60

Hypercubed opened this issue Jun 25, 2013 · 2 comments

Comments

@Hypercubed
Copy link

By default, automaton autoloads tasks located in tasks/ and npm tasks (that start with grunt-). Why not autoload npm tasks that start with autofile- as well? Then adding tasks is as easy as npm install autofile-name from your working directory. Am I missing something?

@satazor
Copy link
Member

satazor commented Jun 25, 2013

You are totally right, we should and will be doing this by default.
Please see #30, it's pending for the 0.2.0 milestone.

Anyway, I don't know if it's clear enougth in the README but you can do this:

var otherTask = require('autofile-my-other-task');

module.exports = function (task) {
  //..
  .do(otherTask, {
      //..
  });
};

@satazor
Copy link
Member

satazor commented Jun 25, 2013

Closing this as a duplicate of #30.

@satazor satazor closed this as completed Jun 25, 2013
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