Socket
Book a DemoInstallSign in
Socket

fly-esnext

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fly-esnext

Allows flyfiles to be written with new-age ES6 or ES7 syntax.

latest
npmnpm
Version
2.0.1
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 14 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts