forked from Urigo/angular-meteor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
84 lines (77 loc) · 2.43 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
72
73
74
75
76
77
78
79
80
81
82
83
84
Package.describe({
name: "urigo:angular",
summary: "The simplest no-conflict way to use AngularJS with Meteor, Meteorite and Atmosphere Smart Packages.",
version: "0.8.8",
git: "https://github.com/Urigo/angular-meteor.git"
});
Package.registerBuildPlugin({
name: "compileAngularTemplates",
sources: [
"plugin/handler.js"
],
use: ['[email protected]'],
npmDependencies : {
'html-minifier' : '0.6.9'
}
});
Package.registerBuildPlugin({
name: 'ngAnnotate',
sources: [
'plugin/annotate.js'
],
npmDependencies: {
'ng-annotate': '0.15.4'
}
});
Package.on_use(function (api) {
api.versionsFrom('[email protected]');
api.use('angular:[email protected]_1', 'client');
api.use('minimongo'); // for idStringify
api.use('observe-sequence');
api.use('dburles:[email protected]', 'client'); // For getCollectionByName
// 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',
'modules/angular-meteor-camera.js',
// Finally load angular-meteor File
'angular-meteor.js'
], 'client');
});
Package.onTest(function(api) {
api.use('tinytest');
api.use('underscore');
api.use('minimongo');
api.use('angular:[email protected]_1', 'client');
api.use('dburles:[email protected]', 'client'); // For getCollectionByName
api.use(['test-helpers'], ['client']);
api.addFiles([
'angular-meteor.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',
'modules/angular-meteor-camera.js',
'test/meteor/tests.js'
], ['client']);
});