-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.js
37 lines (31 loc) · 914 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
35
36
37
Package.describe({
name: 'pbastowski:angular-babel',
summary: 'Write javascript ES6 in your Angular-Meteor app',
version: '0.1.10',
git: 'https://github.com/pbastowski/angular-meteor-babel.git'
});
Package.registerBuildPlugin({
name: 'compile6to5',
use: [],
sources: [
'plugin/compile-6to5.js'
],
npmDependencies: {
'babel-core': '5.8.23',
'ng-annotate': '1.0.2'
}
});
Package.onUse(function (api) {
api.versionsFrom('1.0.2.1');
api.addFiles('lib/core-js-no-number.js');
// runtime
api.addFiles('lib/runtime.js');
// watch for changes in the config file and rebuild
api.add_files(['../../babel.json']);
});
Package.onTest(function (api) {
api.use(['pbastowski:angular-babel', 'tinytest']);
api.addFiles([
'tests/basic_test.es6.js'
], ['client', 'server']);
});