forked from peerlibrary/meteor-blaze-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
127 lines (110 loc) · 2.77 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
Package.describe({
name: 'peerlibrary:blaze-components',
summary: "Reusable components for Blaze",
version: '0.22.0_1',
git: 'https://github.com/peerlibrary/meteor-blaze-components.git'
});
// Based on meteor/packages/templating/package.js.
Package.registerBuildPlugin({
name: "compileBlazeComponentsTemplatesBatch",
use: [
],
sources: [
'patch-compiling.js',
'compile-templates.js'
]
});
Package.onUse(function (api) {
api.versionsFrom('[email protected]');
// Core dependencies.
api.use([
'blaze',
'[email protected] || 2.0.0', // 1.2.4 is the version from Meteor 1.4.1.
'underscore',
'tracker',
'reactive-var',
'ejson',
'spacebars',
'jquery'
]);
// If templating package is among dependencies, we want it to be loaded before
// us to not override our augmented functions. But we cannot make a real dependency
// because of a plugin conflict (both us and templating are registering a *.html plugin).
api.use([
'templating'
], {weak: true});
api.imply([
'meteor',
'blaze',
'spacebars'
]);
api.use('isobuild:[email protected]');
// Internal dependencies.
api.use([
'peerlibrary:[email protected]'
]);
// 3rd party dependencies.
api.use([
'peerlibrary:[email protected]',
'peerlibrary:[email protected]',
'peerlibrary:[email protected]',
'peerlibrary:[email protected]'
]);
api.export('Template');
api.export('BlazeComponent');
// TODO: Move to a separate package. Possibly one with debugOnly set to true.
api.export('BlazeComponentDebug');
api.addFiles([
'template.coffee',
'compatibility/templating.js',
'compatibility/dynamic.html',
'compatibility/dynamic.js',
'compatibility/lookup.js',
'compatibility/attrs.js',
'compatibility/materializer.js',
'lib.coffee',
'debug.coffee'
]);
api.addFiles([
'client.coffee'
], 'client');
api.addFiles([
'server.coffee'
], 'server');
});
Package.onTest(function (api) {
api.versionsFrom('[email protected]');
// Core dependencies.
api.use([
'[email protected] || 2.0.0', // 1.2.4 is the version from Meteor 1.4.1.
'jquery',
'reactive-var',
'underscore',
'tracker',
'ejson',
'random'
]);
// Internal dependencies.
api.use([
'peerlibrary:blaze-components'
]);
// 3rd party dependencies.
api.use([
'peerlibrary:[email protected]',
'mquandalle:[email protected]',
'peerlibrary:[email protected]',
'peerlibrary:[email protected]'
]);
api.addFiles([
'tests/tests.html',
'tests/tests.coffee',
'tests/tests.js',
'tests/tests.next.js',
'tests/tests.css'
]);
});