Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@taskr/esnext

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@taskr/esnext

Allows taskfiles to be written with ES6 or ES7 syntax.

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12K
decreased by-21.76%
Maintainers
1
Weekly downloads
 
Created
Source

@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

FAQs

Package last updated on 27 Jul 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc