forked from Urigo/angular-meteor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.js
87 lines (78 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
85
86
87
Package.describe({
name: "urigo:angular",
summary: "The simplest no-conflict way to use AngularJS with Meteor, Meteorite and Atmosphere Smart Packages.",
version: "0.9.3",
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]', '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',
'lib/get-updates.js',
// Module Files
'modules/angular-meteor-subscribe.js',
'modules/angular-meteor-stopper.js',
'modules/angular-meteor-collection.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('sanjo:[email protected]');
api.use('urigo:angular');
api.use('angular:angular-mocks');
// auxiliary
api.addFiles([
'tests/integration/auxiliary/matchers.js',
'tests/integration/auxiliary/test_data.js'
]);
// spec files
api.addFiles([
'tests/integration/angular-meteor-session-spec.js',
'tests/integration/angular-meteor-stopper-spec.js',
'tests/integration/angular-meteor-diff-array-spec.js',
'tests/integration/angular-meteor-get-updates-spec.js',
'tests/integration/angular-meteor-collection-spec.js',
'tests/integration/angular-meteor-object-spec.js',
'tests/integration/angular-meteor-reactive-scope-spec.js',
'tests/integration/angular-meteor-utils-spec.js',
'tests/integration/test_collections.js'
], 'client');
api.addFiles([
'tests/integration/test_collections.js'
], 'server');
});