Files
meteor/packages/coffeescript/package.js
David Glasser 1bd6c5839e Port coffeescript compiler to ES2015
Next step is factoring out the cache logic into its own package, which
might be done as an ES2015 superclass (though maybe not).
2015-07-17 01:23:52 -07:00

37 lines
986 B
JavaScript

Package.describe({
summary: "Javascript dialect with fewer braces and semicolons",
version: "1.0.7"
});
Package.registerBuildPlugin({
name: "compileCoffeescript",
use: ['ecmascript', 'random'],
sources: [
'plugin/compile-coffeescript.js'
],
npmDependencies: {
"coffee-script": "1.9.2",
"source-map": "0.4.2",
"lru-cache": "2.6.4"
}
});
Package.onUse(function (api) {
api.use('isobuild:compiler-plugin@1.0.0');
});
Package.onTest(function (api) {
api.use(['coffeescript', 'tinytest']);
api.use(['coffeescript-test-helper'], ['client', 'server']);
api.addFiles('bare_test_setup.coffee', ['client'], {bare: true});
api.addFiles('bare_tests.js', ['client']);
api.addFiles([
'coffeescript_test_setup.js',
'tests/coffeescript_tests.coffee',
'tests/coffeescript_strict_tests.coffee',
'tests/litcoffeescript_tests.litcoffee',
'tests/litcoffeescript_tests.coffee.md',
'coffeescript_tests.js'
], ['client', 'server']);
});