Have ideas to improve npm?Join in the discussion! »

    budo

    0.1.9 • Public • Published

    budō

    experimental

    screenshot

    (click for demo)

    This is a browserify development server inspired by beefy and wzrd, but with a stronger focus on incremental bundling, LiveReload (including CSS injection), and JavaScript injection (Chrome only).

    Note that budo needs a copy of watchify installed. It can be either local (preferred) or global.

    npm install budo watchify -g

    Simple use, which builds to bundle.js on filesave:

    #run watchify on port 9966 
    budo index.js --outfile bundle.js --verbose

    Now open localhost:9966 to see the content in action.

    To pretty-print in terminal, garnish, bistre or another ndjson-based stream can be used.

    budo index.js -o bundle.js | garnish

    See docs for more features including Chrome script injection.

    This is still highly experimental, and so far only tested on OSX. PRs/suggestions/comments welcome. Props to @caspervonb for the early groundwork.

    docs

    usage

    Details for budo command-line interface. Aside from the following options, all others are sent to browserify/watchify.

    Usage:
        budo [entries] [opts]
     
    Options:
        --outfile, -o   path to output bundle
        --port          the port to run, default 9966
        --live          enable LiveReload integration

    Installing budo also comes with a budo-chrome binary for script injection. It is still experimental.

    Usage:
        budo-chrome [entries] [opts]
     
    Options:
        --outfile, -o   path to output bundle
        --open          open a new instance of Chrome
        --port          port to serve content, default 9966
        --remote-port   remote debugging port, default 9222

    License

    MIT, see LICENSE.md for details.

    Install

    npm i [email protected]

    Version

    0.1.9

    License

    MIT

    Last publish

    Collaborators

    • avatar
    • avatar