
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
@otr-app/web-builder
Advanced tools
A shared gulpfile to reduce build task duplication which will increase standardization, offer lower maintenance on updates across our applications
Install the web builder with npm
npm i --save-dev @otr-app/web-builder
Import it in gulpfile.js
let webBuilder = require('@otr-app/web-builder');
Below is the default configuration that can be overwritten with the setOptions method.
let options = {
tsConfig: null,
port: 5555,
rootDir: './',
baseDir: 'app',
buildDir: 'build/',
buildCssDir: 'build/assets/css',
bundleOpts: {
basedir: "app",
debug: (argv.domain || 'devo') !== 'prod',
entries: ['index.ts'],
cache: {},
packageCache: {}
}
}
Here's an example of overriding the options above.
webBuilder.setOptions({
tsConfig: require('./tsconfig.json'), // override with local ts config
port: 8889,
baseDir: 'webapp',
bundleOpts: {
basedir: 'webapp',
entries: ['index.ts'],
debug: true
}
});
Example of using tasks from @otr-app/web-builder in side a consumer. List of all re-usable gulp tasks located here
// otr_admin_web_app - gulpfile.js
exports.clean = webBuilder.clean;
exports.build = gulp.series(
copySrc,
webBuilder.copyNodeModules,
webBuilder.bundle,
gulp.parallel(
webBuilder.minifySass,
minifyJs,
replaceVars)
);
To test tasks locally
gulp -f index.js <task_name>
FAQs
A shared build/task runner across front-end applications
We found that @otr-app/web-builder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.