Files
meteor/packages/ecmascript/package.js
Ben Newman 232ab2d209 Bump package versions for 1.4.2-beta.9 release.
I had to scrap the 1.4.2-beta.8 release because meteor-tool@1.4.2-beta.8
got published by a partial run of the publish-release script, but then the
publish-release script thought meteor-tool changed after that, and I
didn't want to republish it as something like 1.4.2-1-beta.8.
2016-10-05 18:42:56 -04:00

40 lines
1018 B
JavaScript

Package.describe({
name: 'ecmascript',
version: '0.5.9-beta.9',
summary: 'Compiler plugin that supports ES2015+ in all .js files',
documentation: 'README.md'
});
Package.registerBuildPlugin({
name: 'compile-ecmascript',
use: ['babel-compiler'],
sources: ['plugin.js']
});
Package.onUse(function (api) {
api.use('isobuild:compiler-plugin@1.0.0');
api.use('babel-compiler');
// The following api.imply calls should match those in
// ../coffeescript/package.js.
api.imply('modules');
api.imply('ecmascript-runtime');
api.imply('babel-runtime');
api.imply('promise');
api.addFiles("ecmascript.js", "server");
api.export("ECMAScript", "server");
});
Package.onTest(function (api) {
api.use(["tinytest", "underscore"]);
api.use(["es5-shim", "ecmascript", "babel-compiler"]);
api.addFiles("runtime-tests.js");
api.addFiles("transpilation-tests.js", "server");
api.addFiles("bare-test.js");
api.addFiles("bare-test-file.js", ["client", "server"], {
bare: true
});
});