forked from Urigo/angular-meteor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
71 lines (64 loc) · 2.04 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
63
64
65
66
67
68
69
70
71
Package.describe({
summary: "The simplest no-conflict way to use AngularJS with Meteor, Meteorite and Atmosphere Smart Packages.",
version: "0.6.8",
git: "https://github.com/Urigo/angular-meteor.git"
});
Package.registerBuildPlugin({
name: "compileAngularTemplates",
sources: [
"plugin/handler.js"
],
npmDependencies : {
'html-minifier' : '0.6.9'
}
});
Package.on_use(function (api) {
api.versionsFrom('METEOR@0.9.0.1');
api.use('jquery', 'client', {weak: true});
api.use('minimongo'); // for idStringify
api.use('observe-sequence');
// Including bower
api.use('mquandalle:bower@1.3.12', 'client');
api.add_files('bower.json', 'client');
// Files to load in Client only.
api.add_files([
// Lib Files
'lib/angular-hash-key-copier.js',
'lib/diff-array.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('minimongo');
api.use(['test-helpers'], ['client']);
api.addFiles([
'node_modules/angular/angular.js',
'urigo:angular.js',
'lib/angular-hash-key-copier.js',
'lib/diff-array.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/meteor/tests.js'
], ['client']);
});