@taskr/esnext
Allows taskfiles to be written with ES6 or ES7 syntax.
Last updated 3 years ago by lukeed .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @taskr/esnext 
SYNC missed versions from official npm registry.

@taskr/esnext npm

Allows a taskfile.js to be written with ES6 or ES7 syntax.

Install

$ npm install --save-dev @taskr/esnext

That's it! :tada: You've now enabled async/await and import syntax for your taskfile.js!

Note: This will NOT compile your ES6 files into ES5. You must download and setup @taskr/babel or @taskr/buble for that.

Usage

A taskfile.js may also include require() statements (not shown).

// taskfile.js
import { foo, bar as baz } from './bat';

export default async function (task) {
  await task.source('src/*.js') // etc...
}

export async function lint(task) {
  await task.source('src/*.js') // etc...
}

export async function styles(task, obj) {
  await task.source(obj.src || 'src/*.sass') // etc...
}

Support

Any issues or questions can be sent to the Taskr monorepo.

Please be sure to specify that you are using @taskr/esnext.

License

MIT © Luke Edwards

Current Tags

  • 1.1.0                                ...           latest (3 years ago)

3 Versions

  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 3
This Month 0
Last Day 0
Last Week 0
Last Month 14
Dependencies (2)
Dev Dependencies (1)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |