grunt-coffee-server
A development server which auto compiles coffeescript
Last updated 7 years ago by appltn .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install grunt-coffee-server 
SYNC missed versions from official npm registry.

grunt-coffee-server

A handy development server which auto compiles CoffeeScript. Just request /path/to/filename.js and the server will return it if it exists otherwise it will look for /path/to/filename.coffee and return the compiled output.

Getting Started

Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-coffee-server

Then add this line to your project's grunt.js gruntfile:

grunt.loadNpmTasks('grunt-coffee-server');

Run the server from the command line:

grunt coffee-server

Documentation

Configuration

This task takes two optional configuration options:

grunt.initConfig({
  server: {
    port: 1337 // defaults to 3000 if not set
    base: './public' // defaults to ./ if not set
  }
});

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

Release History

0.1.1 - Fixes an issue with serving static files.

License

Copyright (c) 2012 Andy Appleton Licensed under the MIT license.

Current Tags

  • 0.1.1                                ...           latest (7 years ago)

2 Versions

  • 0.1.1                                ...           7 years ago
  • 0.1.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (2)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |