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.
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
cd ~/where-i-do-projects/my-project
devserver
-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
- 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 ?