-
Notifications
You must be signed in to change notification settings - Fork 40
/
package.js
89 lines (78 loc) · 2.52 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
Package.describe({
name: 'arkham:comments-ui',
summary: 'Simple templates for disqus-like comment functionality',
version: '1.4.3',
git: 'https://github.com/komentify/meteor-comments-ui.git'
});
Npm.depends({
linkifyjs: '2.0.2',
});
Package.onUse(function(api) {
// Meteor Version
api.versionsFrom('[email protected]');
// Meteor Core Dependencies
api.use(['[email protected]'], { weak: true });
api.use([
'accounts-base',
'ecmascript',
'underscore',
'mongo-livedata',
'templating',
'jquery',
'check',
'[email protected]_2',
'tracker',
'check',
'random',
'markdown',
'reactive-dict',
]);
// Atmosphere Package Dependencies
api.use([
'momentjs:[email protected]', 'reywood:[email protected]',
'aldeed:[email protected]', 'barbatus:[email protected]'
]);
// Package specific globals and files
api.addFiles([
'lib/collections/anonymous-user.js',
'lib/collections/comments.js',
'lib/collections/methods/anonymous-user.js',
'lib/collections/methods/comments.js',
]);
api.addFiles([
'lib/services/media-analyzers/image.js',
'lib/services/media-analyzers/youtube.js',
'lib/services/user.js',
'lib/services/time-tick.js',
'lib/services/media.js',
'lib/components/commentsBox/commentsBox.html',
'lib/components/commentsBox/commentsBox.less',
'lib/components/commentsSingleComment/commentsSingleComment.html',
'lib/components/commentsTextarea/commentsTextarea.html',
'lib/components/commentsSubheader/commentsSubheader.html',
'lib/components/commentsList/commentsList.html',
'lib/api.js',
]);
api.addFiles([
'lib/components/helpers.js',
'lib/components/commentsBox/commentsBox.js',
'lib/components/commentsSingleComment/commentsSingleComment.js',
'lib/components/commentsTextarea/commentsTextarea.js',
'lib/components/commentsSubheader/commentsSubheader.js',
'lib/components/commentsList/commentsList.js',
], 'client');
api.addFiles([
'lib/server/publish.js',
'lib/services/hashing.js',
'lib/comment-status-api.js',
'lib/server/api.js',
], 'server');
api.export('Comments');
});
Package.onTest(function(api) {
api.use(['tinytest', 'accounts-password', 'ecmascript', 'audit-argument-checks', 'check']);
api.use('arkham:comments-ui');
api.addFiles(['tests/api-tests.js', 'tests/reply-service-tests.js']);
api.addFiles('tests/ui-tests.js', 'client');
});