forked from particle4dev/upload-avatar-meteor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.js
48 lines (40 loc) · 1.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
Package.describe({
summary: "simple upload avatar package for meteor",
version: "1.1.0",
name: "chansdad:upload-avatar",
git: "https://github.com/chansdad/upload-avatar-meteor.git"
});
// meteor test-packages ./
var both = ['client', 'server'];
var client = ['client'];
var server = ['server'];
Package.on_use(function (api) {
api.versionsFrom("[email protected]");
api.use(['underscore', 'accounts-base', 'accounts-password'], both);
api.use(['jquery', 'templating', 'mizzao:[email protected]_1'], client);
//add file
api.add_files([
'src/helpers.js'
], both);
api.add_files([
'src/vendor/imgareaselect/border-anim-h.gif',
'src/vendor/imgareaselect/border-anim-v.gif',
'src/vendor/imgareaselect/imgareaselect-animated.css',
'src/vendor/imgareaselect/jquery.imgareaselect.pack.js',
'src/client.js',
'src/template/editYourAvatarModal.html',
'src/template/editYourAvatarModal.js',
'src/template/editYourAvatarModal.css'
], client);
api.add_files([
'src/server.js',
], server);
if (typeof api.export !== 'undefined') {
//api.export('DEBUGX', both);
}
});
Package.on_test(function (api) {
api.use(['particle4dev:upload-avatar','accounts-password','tinytest'], both);
api.add_files('tests/client.js', 'client');
api.add_files('tests/server.js', 'server');
});