text: Package.describe({
    summary: "Javascript dialect with fewer braces and semicolons"
  });
  
  var coffee = require('coffee-script');
  var fs = require('fs');
  
  Package.register_extension(
    "coffee", function (bundle, source_path, serve_path, where) {
      serve_path = serve_path + '.js';
  
      var contents = fs.readFileSync(source_path);
      var options = {bare: true};
      contents = new Buffer(coffee.compile(contents.toString('utf8'), options));
      // XXX report coffee compile failures better?
  
      bundle.add_resource({
        type: "js",
        path: serve_path,
        data: contents,
        where: where
      });
    }
  );
  
  Package.on_test(function (api) {
    api.add_files(['coffeescript_tests.coffee', 'coffeescript_tests.js'],
                  ['client', 'server']);
  });
  