https://github.com/jalal246/builderz
🔴🟡 🟢 Zero Configuration JavaScript Bundler
https://github.com/jalal246/builderz
build-tool bundler cjs extracts minify monorepo monorepos production rollup-js sorts-packages workplace
Last synced: 7 months ago
JSON representation
🔴🟡 🟢 Zero Configuration JavaScript Bundler
- Host: GitHub
- URL: https://github.com/jalal246/builderz
- Owner: jalal246
- License: gpl-3.0
- Created: 2020-01-20T21:24:24.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2022-08-28T13:56:55.000Z (about 3 years ago)
- Last Synced: 2025-03-27T19:40:23.965Z (8 months ago)
- Topics: build-tool, bundler, cjs, extracts, minify, monorepo, monorepos, production, rollup-js, sorts-packages, workplace
- Language: JavaScript
- Homepage: https://jalal246.github.io/builderz/
- Size: 509 KB
- Stars: 12
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Builderz
> Zero Configuration JavaScript Bundler
`build/er/z` is built originally to bundle monorepos, expanded later to cover
more build cases with a wide variety of options. It implements rollup, taking
advantage of its simplicity and customization to build
one-step production bundler.
## Install
```bash
npm install builderz
```
## Easy to use
```json
"build": "builderz"
```
## Easy to customize
In your `packages.json` to compile to a CommonJS module (cjs) and minify the
bundle just pass the required arguments.
```json
"build": "builderz --formats=cjs --minify"
```
Or in a `package.json` file
```json
"name": "my-package",
"version": "0.0.1",
"builderz":{
"formats": ["cjs"],
"minify": true,
}
```
Of course you cane import it as build package somewhere in your project:
```js
const builderz = require("builderz");
// Multi-word options are camel-cased. Pass list as array.
const options = {};
builderz(options);
```
## Options
```bash
-m, --minify Minify bundle works only if format is provided (default: false)
-p, --sourcemap Enable sourcemap in output
-c, --camel-case Add camel-cased output file (default: true)
-l, --clean-build Clean previous build folder (default: false)
-t, --strict Enable Strict Mode (default: false)
-r, --sort-pkg Enable sorting packages for monorepo (default: true)
-d, --es-module Define Property exports- es_model (default: false)
--formats Specific build format (default: [])
--build-name Specific folder build name (default: "dist")
--output Custom output name
--pkg-paths Provide custom paths not in the root/src (default: [])
--pkg-names Building specific package[s], in workspace (default: [])
--alias Package Alias (default: [])
--entries Add multi entries instead of default src/index. (default: [])
--banner Add banner to output
--external Passing external libraries not to bundle
-h, --help display help for command
```
### Test
```sh
npm test
```
## License
This project is licensed under the [GPL-3.0 License](https://github.com/jalal246/builderz/blob/master/LICENSE)