
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Node.js build system based in generators.
See the documentation to learn more.
npm install fly
Out of the box, a flyfile.js
should be written in native ES5:
var x = module.exports
var paths = {
scripts: ['src/**/*.js', '!src/ignore/**/*.js']
}
x.default = function * () {
yield this.watch(paths.scripts, 'build')
}
x.build = function * () {
yield this.source(paths.scripts)
.eslint({
rules: {'no-extra-semi': 0}
})
yield this.source(paths.scripts)
.babel({
presets: ['es2015', 'stage-0']
})
.concat('app.js')
.target('dist')
}
If you'd prefer to write your flyfile.js
and plugins with ES6 or ES7 syntax, install fly-esnext and that's it :)
npm i -D fly-esnext
const paths = {
scripts: ['src/**/*.js', '!src/ignore/**/*.js']
}
export default async function () {
await this.watch(paths.scripts, 'build')
}
export async function build() {
await this.source(paths.scripts)
.eslint({
rules: {'no-extra-semi': 0}
})
await this.source(paths.scripts)
.babel({
presets: ['es2015', 'stage-0']
})
.concat('app.js')
.target('dist')
}
FAQs
For back-end development
The npm package fly receives a total of 1,373 weekly downloads. As such, fly popularity was classified as popular.
We found that fly demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.