Files
meteor/packages/coffeescript/package.js
David Glasser 43b4b30205 Release PLUGINS-PREVIEW@1
This included removing some internal version constraints. It would be
nice if package A could say "use B@2.0.0" (when both have changed), but
when they're both in the release, we need to make a release that has a
B@2.0.0-rc in it, which doesn't match that constraint. Fortunately,
constraints aren't necessary within a release anyway.
2015-07-22 23:19:11 -07:00

34 lines
972 B
JavaScript

Package.describe({
summary: "Javascript dialect with fewer braces and semicolons",
version: "1.0.7-plugins.0"
});
Package.registerBuildPlugin({
name: "compileCoffeescript",
use: ['caching-compiler', 'ecmascript'],
sources: ['plugin/compile-coffeescript.js'],
npmDependencies: {
"coffee-script": "1.9.2",
"source-map": "0.4.2"
}
});
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']);
});