0.1.2 • Published 10 years ago

ser v0.1.2

Weekly downloads
13
License
MIT
Repository
github
Last release
10 years ago

serverhere

logo

Create an express static server in current director with some options, includes gzip/livereload/view engine/port. If you thinks another something is useful and helpful, please tell me.

Installing

npm install serverhere -g

or

npm install ser -g

ser is a shortcut alisa for serverhere

Example

Following command create a server

  • that watch ./public for livereload
  • and enable gzip
  • and use jade as view engine
  • and default set port to 2014
  • and use ./public as static folder
serverhere --watch public --compress -e jade --port 2014 public

Before running, you need to install some dependencies:

npm install

Then run command to start your server:

npm start

Usage

 Usage: serverhere [options] <path>

        (path default is ".")


 Options:

   -h, --help             output usage information
   -V, --version          output the version number
   -p --port <port>       server listen port, default to 1024
   -c --compress          enable gzip
   -e --engine <type>     view's engine ejs/jade/hogan or any others, default not set
   -v --views <path>      views director path, default to "views"
   -w --watch <dir>       watch a dir and reload browser when files changed
   -i --ignore <ignore>   unwatch file/dir under the watch dir, use "," as separator of multiple file 
0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago