browserify-server
Spin up a quick & easy browserify server
Last updated 14 years ago by raynos .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install browserify-server 
SYNC missed versions from official npm registry.

browserify-server

Spin up a quick & easy browserify server

Example CLI

$ browserify-server

outputs

livereload server listening on 8081 
and reloading from <CWD>

browserify server listening on 8080 
and serving static folder static 
and yarnifying folders from <CWD>

$ browserify-server --help

outputs the help document

$ browserify-server --index

outputs the boilerplate index.html

It starts a browserify server. It's basically a static HTTP server that handles browserifing files, yarnifying files and does live reloading

By default browserify-server will serve static content from <CWD>/static.

It will serve the <CWD>/index.js as a browserified bundle at /bundle.js.

It will serve any other entries from <CWD>/entry/x.js as a browserified bundle at /entry/x.js

It will automatically yarnify any .html and .css files it finds outside the static directory into a yarn file in that directory.

It will also start a live reload server which serves a js file from http://localhost:8081/ which makes the browser refresh if any files changes. (it opens a websocket connection to the live reload server)

CLI options

--cwd=somePath : set the cwd. This is used by yarnify & live reload
--folder=somePath : set the static folder to server content from.
    Defaults to "static". It's a relative path to the cwd option
--no-yarnify : set this option to turn of yarnify features
--no-livereload : set this option to turn of live reload features
--livereload-port=somePort : set the live reload server port
    Defaults to port 8081
--port=somePort : set the http static server port
    Defaults to port 8080
--index : outputs a boilerplate index.html
--help : your looking at it

Installation

npm install browserify-server

Contributors

  • Raynos

MIT Licenced

Current Tags

  • 2.1.18                                ...           latest (14 years ago)

50 Versions

  • 2.1.18                                ...           14 years ago
  • 2.1.17                                ...           14 years ago
  • 2.1.16                                ...           14 years ago
  • 2.1.15                                ...           14 years ago
  • 2.1.14                                ...           14 years ago
  • 2.1.12                                ...           14 years ago
  • 2.1.11                                ...           14 years ago
  • 2.1.10                                ...           14 years ago
  • 2.1.9                                ...           14 years ago
  • 2.1.8                                ...           14 years ago
  • 2.1.7                                ...           14 years ago
  • 2.1.6                                ...           14 years ago
  • 2.1.5                                ...           14 years ago
  • 2.1.2                                ...           14 years ago
  • 2.1.1                                ...           14 years ago
  • 2.1.0                                ...           14 years ago
  • 2.0.4                                ...           14 years ago
  • 2.0.3                                ...           14 years ago
  • 2.0.2                                ...           14 years ago
  • 2.0.1                                ...           14 years ago
  • 2.0.0                                ...           14 years ago
  • 1.2.4                                ...           14 years ago
  • 1.2.3                                ...           14 years ago
  • 1.2.2                                ...           14 years ago
  • 1.2.0                                ...           14 years ago
  • 1.1.4                                ...           14 years ago
  • 1.1.3                                ...           14 years ago
  • 1.1.2                                ...           14 years ago
  • 1.1.1                                ...           14 years ago
  • 1.1.0                                ...           14 years ago
  • 1.0.3                                ...           14 years ago
  • 1.0.2                                ...           14 years ago
  • 1.0.1                                ...           14 years ago
  • 1.0.0                                ...           14 years ago
  • 0.5.6                                ...           14 years ago
  • 0.5.5                                ...           14 years ago
  • 0.5.4                                ...           14 years ago
  • 0.5.3                                ...           14 years ago
  • 0.5.2                                ...           14 years ago
  • 0.5.1                                ...           14 years ago
  • 0.5.0                                ...           14 years ago
  • 0.4.2                                ...           14 years ago
  • 0.4.1                                ...           14 years ago
  • 0.4.0                                ...           14 years ago
  • 0.3.1                                ...           14 years ago
  • 0.3.0                                ...           14 years ago
  • 0.2.1                                ...           14 years ago
  • 0.2.0                                ...           14 years ago
  • 0.1.0                                ...           14 years ago
  • 0.0.1                                ...           14 years ago
Maintainers (1)
Downloads
Total 30
Today 29
This Week 30
This Month 30
Last Day 1
Last Week 0
Last Month 0
Dependencies (11)
Dev Dependencies (2)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE