start-up
v1.1.1
Published
Development hosting with live compilations of Jade, CoffeeScript, Stylus and more.
Downloads
6
Readme
node-serve
Development hosting with live compile of Jade, CoffeeScript, Stylus and more.
Installation
sudo npm install git://github.com/shallker-wang/node-serve.git -g
Quick Start
Create an example to start your new project:
node-serve example my-new-project
Jump inside, run node-serve
and start your development:
cd my-new-project
node-serve
You will love the config file
In your project directory, put a file ns.config
:
{
"server": {
"port": 8899,
"host": "./build"
},
"compile": {
"jade": {
"input": "./src/html",
"output": "./build",
"pretty": true
},
"coffee": {
"input": "./src/js",
"output": "./build/js"
},
"stylus": {
"input": "./src/css",
"output": "./build/css",
"compress": true
}
},
"livereload": "./build/css"
}
Before you run
With jade
, coffee
, stylus
commands installed if you wan to compile three of them:
sudo npm install jade -g
sudo npm install coffee-script -g
sudo npm install stylus -g
Todo
- ~~livereload~~
- performance
- ~~command
node-serve example
~~ - add ETag support
- add 'If-Modified-Since' header support
- remove ncp dependency
- remove commands pre-installed requirements
- remove .gitkeep, create build directories before compile