bitty

0.2.10 • Public • Published

Bitty(1)

Synopsis

bitty [options] <entries> -- [bundler options]

Description

Starts a local development server that serves all files in the working directory, with the exception of index.js which will be automatically generated by the bundler, the default bundler is browserify but this is configurable.

The server will also watch the files matching a pattern and emit server sent events when these files change.

It can also inject the bundle in the client runtime, the client needs to be able to accept a remote debugging connection on port 9222.

Options

-C, --directory : change the working directory

-W, --watch : specify the file watcher glob pattern

-b, --bundler : specify the bundle command

-p, --port : specify the http port

-h, --host : specify the http hostname

-o, --open : specify a client program to open

-i, --inject : enable bundle injection on file changes

Any options following the seperator -- will be forwarded to the bundler.

Examples

bitty --directory assets --open 'google-chrome --remote-debugging-port 9292' --inject -- -t 6to5ify

Package Sidebar

Install

npm i bitty

Weekly Downloads

4

Version

0.2.10

License

MIT

Last publish

Collaborators

  • caspervonb