forked from meteor/meteor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.js
More file actions
37 lines (31 loc) · 926 Bytes
/
package.js
File metadata and controls
37 lines (31 loc) · 926 Bytes
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
35
36
37
Package.describe({
name: 'ecmascript',
version: '0.4.1-rc.2',
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('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
});
});