@runs/builder
v1.0.0
Published
Highly configurable project builder based on Parcel
Downloads
2
Readme
Early stage development. Not intended for prod use.
Usage (CLI):
runs-builder --config builder.json --app api
Options:
--config
: Path to config file.--app
: App to build.--watch
: Build and watch for file changes, and build again.--serve
: Build and serve the app (if it's a front-end web app).--native
: To be combined with--serve
to run this app as a node app. Also can be combined with--watch
.
Example conf:
JSON file or JS file that returns an array in this format:
The config
property accepts all configs that are Parcel compatible.
[
{
"name": "api",
"entry": "./index.ts",
"config": {
"outDir": "./build",
"cache": false,
"target": "node",
"logLevel": 3,
"sourceMaps": true,
"detailedReport": true,
"bundleNodeModules": false
}
}
]
You can add virtually any number of apps to build, you must specify the --app
option.