-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
91 lines (88 loc) · 2.23 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
Package.describe({
name: 'urbanetic:utility',
summary: 'A collection of utility modules',
version: '1.2.3',
git: 'https://github.com/urbanetic/meteor-utility.git'
});
Package.onUse(function(api) {
Npm.depends({
'@urbanetic/utility': '0.1.6'
});
api.versionsFrom('[email protected]');
api.use([
'coffeescript',
'underscore',
'minimongo',
'aramk:[email protected]_1',
'aramk:[email protected]_1',
], ['client', 'server']);
api.use([
'deps',
'jquery',
'less',
'templating'
], 'client');
// Compile the Node.js package for server and client, and export the global Services namespace.
api.use(['cosmos:[email protected]']);
api.addFiles(['src/lib.browserify.js']);
api.use([
'aldeed:[email protected]',
'momentjs:[email protected]',
'matb33:[email protected]',
'semantic:[email protected]',
], 'client', {weak: true});
// Either of these will contain the Async module, but we don't want to strongly require either
// since we don't know which is being used.
api.use([
'meteorhacks:[email protected]',
'meteorhacks:[email protected]'
], 'server', {weak: true});
api.use([
'aldeed:[email protected]',
'aldeed:[email protected]'
], ['client', 'server']);
// Make these available to the app to allow working with tiem and deferreds.
api.imply(['momentjs:moment', 'aramk:q'], ['client','server'])
api.export([
'Collections',
'Colors',
'Dates',
'DeferredQueue',
'DeferredQueueSet',
'DeferredQueueMap',
'Depends',
'Environment',
'Promises'
], ['client', 'server']);
api.export([
'Buffers'
], 'server');
api.export([
'Blobs',
'Forms',
'Templates'
], 'client');
api.addFiles([
'src/Collections.coffee',
'src/Colors.coffee',
'src/data/DeferredQueue.coffee',
'src/data/DeferredQueueSet.coffee',
'src/data/DeferredQueueMap.coffee',
'src/Dates.coffee',
'src/Depends.coffee',
'src/Environment.coffee',
'src/Promises.coffee'
], ['client', 'server']);
api.addFiles([
'src/Blobs.coffee',
'src/Forms.coffee',
'src/Templates.coffee',
'src/forms.less'
], 'client');
api.addFiles([
'src/Buffers.coffee'
], 'server');
});