Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
A zero-configuration plugin system for building assets for production release
A zero-configuration plugin system for building assets for production release
build-bin
is available as an
npm package.
Add build-bin
to the package.json
as follows:
{
"name": "project",
"private": true,
"scripts": {
"build": "build"
},
"devDependencies": {
"build-bin": "^0.0.2"
}
}
Then add plugins for each desired build workflow. Existing plugins are listed below.
From the command line, run:
npm run build
Plugins must have a name
that starts with build-
and declare a stage
in
package.json
. Valid stages include compile
, compress
, and config
. All
plugins from the compile
stage are run first, followed by plugins in the
compress
stage, and finally, followed by plugins in the config
stage.
{
"name": "build-esnext",
"stage": "compile",
"main": "src/index.js"
}
Plugins must export a function
or async function
and must write into the
dist
directory.
import {fs} from 'node-promise-es6';
export default async function() {
await fs.writeFile('dist.js', 'console.log("Hello World!");');
}
The application requires the following external dependencies:
The rest of the dependencies are handled through:
npm install
Run tests with:
npm test
FAQs
A zero-configuration plugin system for building assets for production release
We found that build-bin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.