Skip to content

A web server that serves static files with built-in preprocessing like Harp.

Notifications You must be signed in to change notification settings

yhfyhf/Mini-Harp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini-Harp

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.

Features

  • 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')

Usage

$ mini-harp root --port=5000

Dependencies

  • "connect": "^3.0.1",
  • "jade": "^1.3.0",
  • "less": "^1.7.0",
  • "minimist": "^1.1.2",
  • "serve-static": "^1.0.3"

Test

To run the test cases, first install dev dependencies, then run mocha verify:

$ npm install mocha chai supertest --save-dev
$ mocha verify

License

IDC (I Don't Care)

About

A web server that serves static files with built-in preprocessing like Harp.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages