-
Notifications
You must be signed in to change notification settings - Fork 9
/
package.js
48 lines (43 loc) · 1.08 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
Package.describe({
summary: "Define templates inside .md files.",
version: '2.0.3',
name: "simple:markdown-templating",
git: "https://github.com/stubailo/meteor-markdown-templating"
});
// Today, this package is closely intertwined with Showdown and Spacebars
Package.registerBuildPlugin({
name: "compileMarkdownTemplates",
use: [
'caching-compiler@1.1.6',
'ecmascript@0.7.0',
'markdown@1.0.4',
'spacebars-compiler@1.0.6',
'underscore@1.0.3',
'simple:highlight.js@1.0.9'
],
sources: [
'plugin/markdown-scanner.js',
'plugin/compile-templates.js'
]
});
// This on_use describes the *runtime* implications of using this package.
Package.onUse(function (api) {
api.use('isobuild:compiler-plugin@1.0.0');
api.imply(['templating@1.3.0'], 'client');
});
Package.onTest(function (api) {
api.use([
"tinytest",
"simple:markdown-templating",
"underscore",
"spacebars-compiler",
"showdown"
]);
api.addFiles([
"plugin/markdown-scanner.js",
"tests/tests.js"
], "server");
api.addAssets([
"tests/test.md"
], "server");
});