Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Node.js mini http server for frontend dev

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

dserv

Node.js mini http server for frontend development. Compiles Jade templates and Stylus CSS on the fly. Serves static files (e.g. images, video) as-is.

It's a quick & dirty hack... could use several improvements :)

INSTALLATION

npm install dserv -g

USAGE

dserv [PORT]
  • Serves files under the current directory, on port 8000 by default.
  • Request foo.html -> render foo.jade
  • Request bar.css -> compile bar.styl as needed

TODO

  • LESS
  • SASS/SCSS
  • CoffeeScript
  • ...
  • subdir indexes (eg. request foo/ -> render foo/index.jade)
  • if no index.* file, list files w/ connect.directory
  • connect.favicon
  • trim dependencies? is Express overkill? Connect??
  • Windows support?

Similar tools

LICENSE

MIT

Something went wrong with that request. Please try again.