grunt-coffeepot
A drop-in replacement for the default Grunt server. It dynamically serves coffee files as js
Last updated 7 years ago by rockwood .
Repository · Original npm · Tarball · package.json
$ cnpm install grunt-coffeepot 
SYNC missed versions from official npm registry.

A drop-in replacement for the default Grunt server. It will serve up coffeescript files as javascript. So if you have a file in app/init.coffee, hitting http://localhost:8000/app/init.js will serve up the compiled version of that file.

Setup

You'll need to install grunt-coffeecup first:

npm install grunt-coffeepot

Then modify your grunt.js file by adding the following line:

grunt.loadNpmTasks('grunt-coffeecup');

Then add some configuration for the plugin like so:

grunt.initConfig({
  ...
  coffeecup: {
    port: 8000
    base: ./app
  },
  ...
});

port defaults to 8000 and base defaults to the grunt.js directory

To create a continuously running server use:

grunt.registerTask('serve', 'coffeecup watch');

Current Tags

  • 0.0.3-2                                ...           latest (7 years ago)

5 Versions

  • 0.0.3-2                                ...           7 years ago
  • 0.0.3-1                                ...           8 years ago
  • 0.0.3                                ...           8 years ago
  • 0.0.2                                ...           8 years ago
  • 0.0.1                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 3
Last Day 0
Last Week 0
Last Month 8
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |