forked from meteor-blog/meteor-blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
125 lines (106 loc) · 3.39 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.6.3",
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',
'underscore',
'aslagle:[email protected]',
'joshowens:[email protected]',
'gfk:[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-frontend.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/custom.html',
'client/views/custom.coffee',
'client/views/admin/admin.less',
'client/views/admin/admin.html',
'client/views/admin/admin.coffee',
'client/views/admin/edit.html',
'client/views/admin/editor.coffee',
'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/link.png',
'client/stylesheets/images/unlink.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]',
'iron:[email protected]',
'accounts-base',
'kaptron:[email protected]',
'mrt:[email protected]',
'vsivsi:[email protected]',
'alanning:[email protected]',
'meteorhacks:[email protected]',
'meteorhacks:[email protected]',
'cfs:[email protected]',
'cfs:[email protected]',
'cfs:[email protected]'
], both);
// FILES FOR SERVER AND CLIENT
api.addFiles([
'collections/author.coffee',
'collections/post.coffee',
'collections/comment.coffee',
'collections/tag.coffee',
'collections/files.coffee',
'router.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']);
Npm.depends({ rss: '0.0.4' });
api.addFiles('test/server/rss.coffee', 'server');
});