2.0.1 • Published 7 years ago

fly-esnext v2.0.1

Weekly downloads
6
License
MIT
Repository
-
Last release
7 years ago

fly-esnext

Allows a flyfile.js to be written with new-age ES6 or ES7 syntax.

Install

npm install --save-dev fly-esnext

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

Note: This will NOT compile your ES6 files into ES5. You must download and setup fly-babel for that.

Usage

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

// flyfile.js

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

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

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

License

MIT © Luke Edwards

2.0.1

7 years ago

2.0.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.0

8 years ago