forked from meteor-blog/meteor-blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
135 lines (112 loc) · 3.83 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
126
127
128
129
130
131
132
133
134
135
Package.describe({
summary: "A package that provides a blog at /blog",
version: "0.8.4",
name: "ryw:blog",
git: "https://github.com/Differential/meteor-blog.git"
});
Package.onUse(function(api) {
api.versionsFrom('METEOR@1.2');
var both = ['client', 'server'];
// PACKAGES FOR SERVER AND CLIENT
api.use([
'underscore',
'coffeescript',
'accounts-base',
'iron:url@1.0.9',
'kaptron:minimongoid@0.9.1',
'momentjs:moment@2.10.6',
'alanning:roles@1.2.13',
'meteorhacks:fast-render@2.10.0',
'meteorhacks:subs-manager@1.6.2',
'cfs:standard-packages@0.5.9',
'cfs:gridfs@0.0.33',
'cfs:s3@0.1.3'
], both);
// FILES FOR SERVER AND CLIENT
api.addFiles([
'lib/boot.coffee',
'collections/author.coffee',
'collections/post.coffee',
'collections/comment.coffee',
'collections/tag.coffee',
'collections/files.coffee',
'router.coffee'
], both);
// PACKAGES FOR CLIENT
api.use([
'session',
'templating',
'tracker',
'reactive-var',
'less',
'aslagle:reactive-table@0.5.5',
'liberation:shareit@1.0.1',
'flawless:meteor-toastr@1.0.1'
], 'client');
// FILES FOR CLIENT
api.addFiles([
'client/boot.coffee',
// STYLESHEETS
'client/stylesheets/loading.less',
'client/stylesheets/lib/side-comments/side-comments.css',
'client/stylesheets/lib/side-comments/default.css',
'client/compatibility/bower_components/medium-editor/dist/css/medium-editor.css',
'client/compatibility/bower_components/medium-editor/dist/css/themes/bootstrap.css',
'client/compatibility/bower_components/medium-editor-insert-plugin/dist/css/medium-editor-insert-plugin.css',
'client/stylesheets/lib/bootstrap-tagsinput.css',
// JAVASCRIPT LIBS
'client/compatibility/side-comments.js',
'client/compatibility/bower_components/medium-editor/dist/js/medium-editor.js',
'client/compatibility/bower_components/handlebars/handlebars.runtime.js',
'client/compatibility/handlebars.noconflict.js',
'client/compatibility/bower_components/jquery-sortable/source/js/jquery-sortable.js',
'client/compatibility/bower_components/blueimp-file-upload/js/vendor/jquery.ui.widget.js',
'client/compatibility/bower_components/blueimp-file-upload/js/jquery.iframe-transport.js',
'client/compatibility/bower_components/blueimp-file-upload/js/jquery.fileupload.js',
'client/compatibility/bower_components/medium-editor-insert-plugin/dist/js/medium-editor-insert-plugin.js',
'client/compatibility/bootstrap-tagsinput.js',
'client/compatibility/typeahead.jquery.js',
'client/compatibility/beautify-html.js',
'client/compatibility/highlight.pack.js',
// PACKAGE FILES
'client/views/loading.html',
'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/stylesheets/variables.import.less',
'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.addAssets([
'public/default-user.png',
], 'client');
// FILES FOR SERVER
api.addFiles([
'collections/config.coffee',
'server/boot.coffee',
'server/rss.coffee',
'server/publications.coffee'
], 'server');
// PACKAGES FOR SERVER
api.use([
'check',
'simple:json-routes@1.0.4'
], 'server');
Npm.depends({ rss: '0.0.4' });
});
Package.onTest(function (api) {
api.use('kadira:flow-router');
api.use('ryw:blog');
api.use('tinytest');
api.use('coffeescript');
Npm.depends({ rss: '0.0.4' });
api.addFiles('test/server/rss.coffee', 'server');
});