index.js
function Task(options) {
  if (!(this instanceof Task)) {
    return new Task(options);
  }

  utils.is(this, 'task');
  use(this);

  this.options = options || {};
  if (utils.isTask(options)) {
    this.options = {};
    this.addTargets(options);
    return this;
  }
}
function Task(options) {
  if (!(this instanceof Task)) {
    return new Task(options);
  }

  utils.is(this, 'task');
  use(this);

  this.options = options || {};
  if (utils.isTask(options)) {
    this.options = {};
    this.addTargets(options);
    return this;
  }
}
function Task ( options ) { if ( ! ( this instanceof Task ) ) { return new Task ( options ) ; } utils . is ( this , 'task' ) ; use ( this ) ; this . options = options || { } ; if ( utils . isTask ( options ) ) { this . options = { } ; this . addTargets ( options ) ; return this ; } }
Create a new Task with the given `options`

```js
var task = new Task({cwd: 'src'});
task.addTargets({
site: {src: ['*.hbs']},
blog: {src: ['*.md']}
});
```
@param {Object} `options`
@api public
Create a new Task with the given options