forked from Urigo/angular-meteor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
62 lines (56 loc) · 1.84 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Package.describe({
summary: "The simplest no-conflict way to use AngularJS with Meteor, Meteorite and Atmosphere Smart Packages.",
version: "0.6.0",
git: "https://github.com/Urigo/angular-meteor.git"
});
Package.registerBuildPlugin({
name: "compileAngularTemplates",
sources: [
"plugin/handler.js",
]
});
Package.on_use(function (api) {
api.versionsFrom('[email protected]');
api.use('jquery', 'client', {weak: true});
// Including bower
api.use('mquandalle:[email protected]', 'client');
api.add_files('smart.json', 'client');
// Files to load in Client only.
api.add_files([
// Lib Files
'lib/angular-hash-key-copier.js',
// Module Files
'modules/angular-meteor-subscribe.js',
'modules/angular-meteor-collections.js',
'modules/angular-meteor-meteorCollection.js',
'modules/angular-meteor-object.js',
'modules/angular-meteor-template.js',
'modules/angular-meteor-user.js',
'modules/angular-meteor-methods.js',
'modules/angular-meteor-session.js',
'modules/angular-meteor-reactive-scope.js',
'modules/angular-meteor-utils.js',
// Finally load angular-meteor File
'urigo:angular.js'
], 'client');
});
Package.onTest(function(api) {
api.use('tinytest');
api.use(['test-helpers'], ['client']);
api.addFiles([
'node_modules/angular/angular.js',
'urigo:angular.js',
'lib/angular-hash-key-copier.js',
'modules/angular-meteor-collections.js',
'modules/angular-meteor-meteorCollection.js',
'modules/angular-meteor-methods.js',
'modules/angular-meteor-object.js',
'modules/angular-meteor-reactive-scope.js',
'modules/angular-meteor-session.js',
'modules/angular-meteor-subscribe.js',
'modules/angular-meteor-template.js',
'modules/angular-meteor-user.js',
'modules/angular-meteor-utils.js',
'test/urigo:angular-tests.js'
], ['client']);
});