forked from meteor-blog/meteor-blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
125 lines (107 loc) · 3.01 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
Package.describe({
summary: "A package that provides a blog at /blog",
version: "0.5.5",
name: "ryw:blog",
git: "https://github.com/Differential/meteor-blog.git"
});
Package.onUse(function(api) {
api.versionsFrom('[email protected]');
var both = ['client', 'server'];
/**
* Packages for client
*/
api.use([
'session',
'templating',
'ui',
'less',
'aslagle:[email protected]',
'joshowens:[email protected]'
], 'client');
/**
* Files for client
*/
api.addFiles([
'client/stylesheets/lib/side-comments/side-comments.css',
'client/stylesheets/lib/side-comments/default.css',
'client/stylesheets/lib/medium-editor.css',
'client/stylesheets/lib/medium-themes/bootstrap.css',
'client/stylesheets/lib/medium-editor-insert-plugin.css',
'client/stylesheets/lib/bootstrap-tagsinput.css',
'client/boot.coffee',
'client/compatibility/side-comments.js',
'client/compatibility/medium-editor.js',
'client/compatibility/medium-editor-insert-plugin.all.js',
'client/compatibility/bootstrap-tagsinput.js',
'client/compatibility/typeahead.jquery.js',
'client/compatibility/beautify-html.js',
'client/compatibility/highlight.pack.js',
'client/views/404.html',
'client/views/dynamic.html',
'client/views/dynamic.coffee',
'client/views/admin/admin.less',
'client/views/admin/admin.html',
'client/views/admin/admin.coffee',
'client/views/admin/edit.html',
'client/views/admin/edit.coffee',
'client/views/blog/blog.less',
'client/views/blog/blog.html',
'client/views/blog/show.html',
'client/views/blog/blog.coffee',
'client/views/widget/latest.html',
'client/views/widget/latest.coffee'
], 'client');
/**
* Static assets for client
*/
api.addFiles([
'public/default-user.png',
'client/stylesheets/images/remove.png',
'client/stylesheets/images/resize-bigger.png',
'client/stylesheets/images/resize-smaller.png'
], 'client', { isAsset: true });
/**
* Files for server
*/
api.addFiles([
'collections/config.coffee',
'server/boot.coffee',
'server/rss.coffee',
'server/publications.coffee'
], 'server');
/**
* Packages for server
*/
Npm.depends({ rss: '0.0.4' });
/**
* Packages for server and client
*/
api.use([
'coffeescript',
'deps',
'iron:[email protected]',
'accounts-base',
'mrt:[email protected]',
'mrt:[email protected]',
'mrt:[email protected]',
'alanning:[email protected]'
], both);
/**
* Files for server and client
*/
api.addFiles([
'router.coffee',
'collections/author.coffee',
'collections/post.coffee',
'collections/comment.coffee',
'collections/tag.coffee',
'collections/files.coffee'
], both);
});
Package.onTest(function (api) {
api.use("ryw:blog", ['client', 'server']);
api.use('tinytest', ['client', 'server']);
api.use('test-helpers', ['client', 'server']);
api.use('coffeescript', ['client', 'server']);
api.add_files('test/server/rss.coffee', 'server');
});