Changelog
6.0.0
garnish
is now included by default in CLI and API
--ndjson
and ndjson: true
to have raw output (for custom pretty-printers)--title
option for the default HTML title--css
option for a default style sheetChangelog
5.0.0
budo . | garnish
for the entry point (or index.js
)--onupdate
for things like linting, see the docs--host
is specified, resolves to internal IP
localhost:9966
and it will work<script>
src defaults to the filename of the first entry
budo src/index.js
leads to <script src="index.js">
--
--no-debug
which is passed as a budo optionbudo index.js --no-debug -- -t babelify
--dir
can be passed multiple times to use multiple static folders
budo index.js --dir public --dir tmp
--live-plugin
option to reduce code complexity
budo.live({ plugin: true })
--no-portfind
or portfind: false
--verbose
, -v
, timing is logged by default now--open
, -o
to launch browser on connect--no-error-handler
errorHandler: Boolean|Function
--version
to CLI--live
can optionally be a string to only LiveReload on those globs, eg:
budo index.js --live=*.{css,html}
--ignore-watch
and --interval
budo.watch(glob, chokidarOpts)
insteadbudo --live src/index.js
dir
can be a string or array of static paths'connect'
event now passes livePort
'connect'
event ev.host
now uses internal IP by defaultrequire('budo').cli(process.argv.slice(2), { overrides... })
errorHandler
can be used for custom bundle error handlingmiddleware
can be a fn(req, res, next)
function for custom routes'update'
event now passes (contents, updates)
Users creating CLI tools on top of budo can use opt.browserifyArgs
to handle subarg correctly. Example with minimist:
var args = process.argv.slice(2)
var opts = require('minimist')(args, { '--': true })
budo.cli(args, {
browserifyArgs: opts['--']
})
If no browserifyArgs
is specified, then opt.browserify
can be used to send the actual JS object to the browserify constructor.
budo.cli(args, {
browserify: {
transform: require('babelify')
}
})