Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@bloomstack/bcore-bundler
Advanced tools
BCore's extendable esbuild bundler configuration utility.
This repository holds bcore's js bundler default configurations. If you are developing bcore apps you can use this bundler to kickstart your project's js dependencies.
The bundler expects your application's directory structure in a particular layout generated by bcore. See bcore for more information.
After adding this package to your packages.json dev dependencies you can run the following commands to build and/or watch your js files:
yarn bcore-builder bundle
yarn bcore-builder watch
To keep things shorter and easier on your wrists, you should add bcore-builder calls in your packages script section as follows:
{
...
"scripts": {
"build": "bcore-builder bundle",
"watch": "bcore-builder watch"
},
...
}
If you want to modify the esbuild configuration object you can import the builder's package and directly use its internal build method directly or import the cli to reuse the terminal interface.
Lets say you want to reuse the cli. In your codebase add ./cli.js:
import { cli } from "@bloomstack/bcore-bundler/cli.js"
await cli(import.meta, (config) => {
// You can modify config here and return it.
// This configuration is used for both bundling and watching.
// The config object is directly passed to esbuild so all of
// esbuild options are usable here.
return config;
});
Otherwise, if you want to build your own cli interface and only require running builds and/or watching for file changes. In your code base add ./builder.js:
import { build } from "@bloomstack/bcore-bundler";
await build({
path: ".", // The root path of your bcore application in your file
// system. This defaults to the current working director.
watch: false, // set to true to watch instead of only bundling.
production: false, // set to true to bundle into ./dist folder and minify.
format: "esm", // set to cjs or esm to change file format. Defaults to
// esm for now.
analyze: false, // set to true if you would like to see a detailed bundle
// statistics.
minify: false, // set to true if you want bundles minified irrespective of
// production/develop setting.
configure(config) {
// You can modify config here and return it.
// This configuration is used for both bundling and watching.
// The config object is directly passed to esbuild so all of
// esbuild options are usable here.
return config;
}
});
import css from "./style.scss";
... use css string some how ...
FAQs
BCore's extendable esbuild bundler configuration utility.
The npm package @bloomstack/bcore-bundler receives a total of 0 weekly downloads. As such, @bloomstack/bcore-bundler popularity was classified as not popular.
We found that @bloomstack/bcore-bundler 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.