-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpackage.js
47 lines (41 loc) · 1.67 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
Package.describe({
name: 'huaming:wechat-js',
version: '0.0.4',
// Brief, one-line summary of the package.
summary: 'This is a library to use wechat js api, including get accessToken, get jsTicket, using wx library',
// URL to the Git repository containing the source code for this package.
git: 'https://www.github.com/raohuaming/meteor-wechat-js',
// By default, Meteor will default to using README.md for documentation.
// To avoid submitting documentation, set this field to null.
documentation: 'README.md'
});
Package.onUse(function(api) {
api.versionsFrom('1.1.0.2');
api.use([
'http',
'aldeed:[email protected]',
'matb33:[email protected]',
'zimme:[email protected]',
'stevezhu:[email protected]',
]);
api.use([
'templating'
], 'client');
api.export('WechatJs', 'server');
api.export('WechatTokens', 'server');
api.export('WechatJsTickets', 'server');
// Generated with: github.com/philcockfield/meteor-package-paths
api.addFiles('shared/collections/wechat_js_tickets.js', ['client', 'server']);
api.addFiles('shared/collections/wechat_tokens.js', ['client', 'server']);
api.addFiles('server/lib/wechat_js.js', 'server');
api.addFiles('client/templates/app.html', 'client');
});
Package.onTest(function(api) {
api.use('sanjo:[email protected]');
api.use('velocity:[email protected]');
api.use('huaming:wechat-js');
// Generated with: github.com/philcockfield/meteor-package-paths
api.addFiles('tests/server/collections/wechat_js_ticket_spec.js', 'server');
api.addFiles('tests/server/collections/wechat_tokens_spec.js', 'server');
api.addFiles('tests/server/lib/wechat_js_spec.js', 'server');
});