Skip to content

Local web server for quick development. LiveReload coffee & stylus.

License

Notifications You must be signed in to change notification settings

mathieucivel/devserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dev Server -- WIP --

Local development server with LiveReload support that stream compile CoffeeScript and Less/Stylus.

The aim is to quickly serve any small client-side projects from any directory without grunt/gulp config.

For any *.js or *.css request, the server first try to find a *.coffee and *.less or *.styl equivalent. It will then compile, cache and serve them. This doesn't force any folder organisation. No file are saved on the working directory. The project build phase can be handled by grunt/gulp later, when the project get serious.

This way the amount of time between a file change and the refresh of the browser is very low.

Installation

No npm package yet

cd ~/where-i-usually-install-dev-stuff
git clone https://github.com/mathieucivel/devserver.git
cd devserver
npm install
sudo npm link

Usage

cd ~/where-i-do-projects/my-project
devserver

What it's looks like : Console screenshot

Options

-r, --root <path>                                 root directory to serve, default to current directory
-p, --port <n>                                    port number, default 8000
-d, --domain <domain_or_ip>                       domain or ip to listen to, default localhost
-l, --livereload <n>                              LiveReload port, default 35729
-P, --proxy <http://domain:port,path1,path2,...>  The given list of path will be forwarded to the given url

TODO

  • browserify support with automatic coffee transform
  • sass support
  • check liveReload port in case of multiple instances
  • better log & error management
  • move bin in bin/
  • need to use Express ? switch to connect ?

About

Local web server for quick development. LiveReload coffee & stylus.

Resources

License

Stars

Watchers

Forks

Packages

No packages published