Open
Description
This was an early decision choice which I felt would help reduce boilerplate, and it does. On the other hand, it's magic.
EDIT: Grammar.
module.exports = {
*lint(fly) {
yield fly.source(js).xo({ esnext: true })
},
*scripts(fly) {
yield fly.source(js).babel({ presets: ["es2015"] }).target(`${dist}/js`)
},
*styles(fly) {
yield fly.source(sass).sass({ outputStyle: "compressed" }).autoprefixer().target(`${dist}/css`)
},
*build(fly) {
yield fly.parallel(["lint", "scripts", "styles"])
}
}
If you already know the API, you'd know that .source
and .target
are core and that .sass
or .xo
must be plugins, but what about plugins like .concat
.
Activity