-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
51 lines (48 loc) · 1.49 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
Package.describe({
name: 'roadshr:wechat',
version: '0.0.1',
// Brief, one-line summary of the package.
summary: '',
// URL to the Git repository containing the source code for this package.
git: '',
// By default, Meteor will default to using README.md for documentation.
// To avoid submitting documentation, set this field to null.
documentation: 'README.md'
})
Npm.depends({
'xml2js': '0.4.16',
'request': '2.72.0',
'xml': '1.0.1'
})
Package.onUse(function (api) {
api.versionsFrom('1.3.2.4')
api.use('ecmascript')
api.use('http')
api.use('check')
api.export('WechatMessage', 'server')
api.export('WechatJSSDK', 'server')
api.export('WechatOAuth', 'server')
api.export('WechatAuth', 'server')
api.export('WechatCS', 'server')
api.export('WechatUser', 'server')
api.export('WechatPay', 'server')
api.export('WechatMina', 'server')
api.export('WechatWork', 'server')
api.addFiles('wechat_message.js', 'server')
api.addFiles('wechat_jssdk.js', 'server')
api.addFiles('wechat_oauth.js', 'server')
api.addFiles('wechat_auth.js', 'server')
api.addFiles('wechat_cs.js', 'server')
api.addFiles('wechat_user.js', 'server')
api.addFiles('wechat_pay.js', 'server')
api.addFiles('wechat_mina.js', 'server')
api.addFiles('wechat_work.js', 'server')
})
Package.onTest(function (api) {
api.use('ecmascript')
api.use('tinytest')
api.use('http')
api.use('check')
api.use('roadshr:wechat-mp', 'server')
api.mainModule('wechat-mp-tests.js', 'server')
})