+70
| <div align="center"> | ||
| <a href="http://github.com/flyjs/fly"> | ||
| <img width=200px src="https://cloud.githubusercontent.com/assets/8317250/8733685/0be81080-2c40-11e5-98d2-c634f076ccd7.png"> | ||
| </a> | ||
| </div> | ||
| > Allow for ES6 and ES7 support throughout a Fly environment. | ||
| [![][fly-badge]][fly] | ||
| [![npm package][npm-ver-link]][releases] | ||
| [![][dl-badge]][npm-pkg-link] | ||
| [![][travis-badge]][travis-link] | ||
| ## Install | ||
| ```a | ||
| npm install -D fly-esnext | ||
| ``` | ||
| ## Usage | ||
| That's it! | ||
| All you have to do is install and save `fly-esnext` to your `package.json` and you can use or write **flyfiles** and **fly-plugins** with ES6 or ES7 syntax! | ||
| > **Note:** This will NOT compile your ES6 files into ES5. You must download and setup a [fly-babel](https://github.com/bucaran/fly-babel) task for that. | ||
| ### Example | ||
| Flyfile: | ||
| ```js | ||
| export default async function () { | ||
| await this.source('src/*.js') | ||
| // ... | ||
| .target('dist'); | ||
| } | ||
| export async function lint() { | ||
| await this.source('src/*.js') | ||
| // ... | ||
| .target('dist'); | ||
| } | ||
| ``` | ||
| Plugin: | ||
| ```js | ||
| const compiler = require('something'); | ||
| export default function () { | ||
| this.filter('plugin', (data, opts) => { | ||
| // .. whatever logic | ||
| }); | ||
| } | ||
| ``` | ||
| ## License | ||
| MIT © [Luke Edwards](https://lukeed.com) | ||
| [contributors]: https://github.com/lukeed/fly-esnext/graphs/contributors | ||
| [releases]: https://github.com/lukeed/fly-esnext/releases | ||
| [fly]: https://www.github.com/flyjs/fly | ||
| [fly-badge]: https://img.shields.io/badge/fly-JS-05B3E1.svg?style=flat-square | ||
| [npm-pkg-link]: https://www.npmjs.org/package/fly-esnext | ||
| [npm-ver-link]: https://img.shields.io/npm/v/fly-esnext.svg?style=flat-square | ||
| [dl-badge]: http://img.shields.io/npm/dm/fly-esnext.svg?style=flat-square | ||
| [travis-link]: https://travis-ci.org/lukeed/fly-esnext | ||
| [travis-badge]: http://img.shields.io/travis/lukeed/fly-esnext.svg?style=flat-square |
+2
-3
@@ -1,5 +0,4 @@ | ||
| console.log('in here'); | ||
| require('babel-register')({ | ||
| presets: ['es2015', 'stage-0'] | ||
| presets: ['es2015', 'stage-0'], | ||
| plugins: ['transform-runtime'] | ||
| }); |
+5
-4
| { | ||
| "name": "fly-esnext", | ||
| "version": "0.0.0", | ||
| "description": "Allow for ES6 and ES7 support throughout your Fly environment.", | ||
| "version": "1.0.0", | ||
| "description": "Allow for ES6 and ES7 support throughout a Fly environment.", | ||
| "main": "index.js", | ||
| "license": "MIT", | ||
| "scripts": { | ||
| "test": "echo \"Error: no test specified\" && exit 1" | ||
| "test": "echo \"No tests needed\" && exit 0" | ||
| }, | ||
@@ -14,4 +15,4 @@ "author": { | ||
| }, | ||
| "license": "MIT", | ||
| "dependencies": { | ||
| "babel-plugin-transform-runtime": "^6.6.0", | ||
| "babel-preset-es2015": "^6.6.0", | ||
@@ -18,0 +19,0 @@ "babel-preset-stage-0": "^6.5.0", |
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3842
96.22%6
20%2
-33.33%1
-50%71
Infinity%4
33.33%+ Added