jsserv
static server for current or a specific directory with support of css preporcessors, coffee script, jade etc.
Last updated 6 years ago by hamidraza .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install jsserv -g
SYNC missed versions from official npm registry.

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, jsserv will look for stylesheet.css or stylesheet.scss or stylesheet.sass or stylesheet.less or stylesheet.styl.
  • when you request for script.js, jsserv will look for script.js or script.coffee.
  • when you request for page.html, jsserv will look for page.html or page.jade.

Current Tags

  • 0.0.4                                ...           latest (6 years ago)

5 Versions

  • 0.0.4                                ...           6 years ago
  • 0.0.3                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 6
Dependencies (11)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |