A web server that serves static files with built-in preprocessing writtern in node. It is inspired by Harp
, and uses connect
to add middlewares.
- print web-server logs
- serve static files from a given root and listen on a specfied port
- render
.jade
templates to HTML - render
.less
to CSS - reject stupid requests (does not respond to .jade or .less')
$ mini-harp root --port=5000
- "connect": "^3.0.1",
- "jade": "^1.3.0",
- "less": "^1.7.0",
- "minimist": "^1.1.2",
- "serve-static": "^1.0.3"
To run the test cases, first install dev dependencies, then run mocha verify
:
$ npm install mocha chai supertest --save-dev
$ mocha verify
IDC (I Don't Care)