forked from meteor/meteor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
34 lines (28 loc) · 879 Bytes
/
package.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Package.describe({
name: 'ecmascript',
version: '0.1.5',
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');
api.imply('babel-runtime');
api.imply('ecmascript-runtime');
api.imply('promise');
api.addFiles("ecmascript.js", "server");
api.export("ECMAScript");
});
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-file.js", "client", { bare: true });
api.addFiles("bare-test.js", "client");
});