0.0.4 • Published 11 years ago
jsserv v0.0.4
jsserv
Install npm install jsserv -g
Run jsserv in folder where your static website content present.
Demo
index.jade
----------
html
head
title Test Jsserv
link(href='css/style.css', rel='stylesheet')
body
h1 Testing JSSERV
script(src='js/script.js')File Structure
yourWebDir
|_ index.jade
|_ css/
| |_ style.scss
|_ js/
|_ script.coffee
---------------------------------------
cd into your site folder and run `jsserv`
now goto/browse -- http://localhost:8765/That's it, you will be coding your static website like you used to code with html/css/javascript, except with jsserv you'll be enjoing benefits of css preprocessors, coffee script, jade etc without any taks runner or frameworks.
How it works
- when you request for
stylesheet.css,jsservwill look forstylesheet.cssorstylesheet.scssorstylesheet.sassorstylesheet.lessorstylesheet.styl. - when you request for
script.js,jsservwill look forscript.jsorscript.coffee. - when you request for
page.html,jsservwill look forpage.htmlorpage.jade.