1.1.1 • Published 11 years ago

start-up v1.1.1

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

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
1.1.1

11 years ago

1.1.0

11 years ago

1.0.2

11 years ago

1.0.1

11 years ago

1.0.0

11 years ago