summaryrefslogtreecommitdiffstats
path: root/packages/markdown/package.js
blob: ac725b8f7ae4423d3bd6b60f8c466fe59d4535b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Source: https://github.com/chjj/marked

Package.describe({
	name: 'wekan-markdown',
	summary: "GitHub flavored markdown parser for Meteor based on marked.js",
	version: "1.0.7",
	git: "https://github.com/wekan/markdown.git"
});

// Before Meteor 0.9?
if(!Package.onUse) Package.onUse = Package.on_use;

Package.onUse(function (api) {
	if(api.versionsFrom) api.versionsFrom('METEOR@0.9.0');

	api.use('templating');

	api.add_files('marked/lib/marked.js', ['server', 'client']);
	api.add_files('markdown.js', ['server', 'client']);
	api.export('Markdown', ['server', 'client']);

	api.use("ui", "client", {weak: true});
	api.add_files("template-integration.js", "client");
});