Files
meteor/packages/coffeescript/package.js
David Glasser e33694874d Test slices now never contain exports.
@export is now an error in test slices.

This is preparation for ensuring that any slice with exports has at least
"Package.foo = {}"; without this commit, both the use and test slice would (with
that change) try to overwrite Package.foo.

Remove the attempt to allow @export in 'use strict' CoffeeScript files:
ECMAScript 'use strict' is fundamentally incompatible with our implementation of
exports, and it was probably a bug that this used to work at all.
2013-06-26 12:26:12 -07:00

25 lines
642 B
JavaScript

Package.describe({
summary: "Javascript dialect with fewer braces and semicolons"
});
Package._transitional_registerBuildPlugin({
name: "compileCoffeescript",
use: [],
sources: [
'plugin/compile-coffeescript.js'
],
npmDependencies: {"coffee-script": "1.6.3"}
});
Package.on_test(function (api) {
api.use(['coffeescript', 'tinytest']);
api.use(['coffeescript-test-helper'], ['client', 'server']);
api.add_files([
'coffeescript_test_setup.js',
'coffeescript_tests.coffee',
'coffeescript_strict_tests.coffee',
'litcoffeescript_tests.litcoffee',
'coffeescript_tests.js'
], ['client', 'server']);
});