
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.
builder-target
Advanced tools
target build plugin for component-builder2.
Let's say you have the following component, and you want to build
api.js
api.cordova.js
You can define a new section in your component.json
(here we name it cordova) and use the plugin by calling .use('scripts', target('cordova'))
{
"cordova": {
"api.js": "api.cordova.js"
},
"scripts": [
"index.js",
"api.js"
],
"main": "index.js"
}
var fs = require('fs');
var build = require('component-builder');
var target = require('builder-target');
// build web bundle
build.scripts(nodes)
.use('scripts', build.plugins.js())
.build(function (err, string) {
if (err) throw err;
fs.writeFileSync('build.js', string);
})
// build cordova bundle
build.scripts(nodes)
.use('scripts', build.plugins.js())
.use('scripts', target('cordova'))
.build(function (err, string) {
if (err) throw err;
fs.writeFileSync('build.js', string);
})
The MIT License (MIT)
FAQs
build target plugin for component-builder
We found that builder-target 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
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.