-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
45 lines (38 loc) · 1.21 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
Package.describe({
name: 'pipeline:templating',
version: '0.1.0',
summary: 'Templating in the pipeline',
git: 'https://github.com/MeteorPipeline/templating',
documentation: null
});
Package.registerBuildPlugin({
name: 'pipeline:html',
use: [
'pipeline:[email protected]',
],
sources: [
'plugin/html_scanner.js',
'plugin/plugin.js'
]
});
// This onUse describes the *runtime* implications of using this package.
Package.onUse(function (api) {
// XXX would like to do the following only when the first html file
// is encountered
api.addFiles('templating.js', 'client');
api.export('Template', 'client');
api.use('[email protected]'); // only the subset in packages/blaze/microscore.js
api.use('isobuild:[email protected]');
// html_scanner.js emits client code that calls Meteor.startup and
// Blaze, so anybody using templating (eg apps) need to implicitly use
// 'meteor' and 'blaze'.
api.use([
]);
api.imply(['meteor', 'blaze', 'spacebars'], 'client');
api.addFiles(['dynamic.html', 'dynamic.js'], 'client');
});