forked from Differential/accounts-entry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
95 lines (85 loc) · 2.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
Package.describe({
summary: "Make signin and signout their own pages with routes.",
version: '1.0.3',
name: "joshowens:accounts-entry",
githubUrl: 'https://github.com/Differential/accounts-entry',
});
Package.onUse(function(api) {
api.versionsFrom("[email protected]");
api.use(['iron:[email protected]', 'softwarerero:[email protected]', 'joshowens:[email protected]'], ['client', 'server']);
// CLIENT
api.use([
'deps',
'service-configuration',
'accounts-base',
'underscore',
'templating',
'handlebars',
'session',
'coffeescript',
'less',
'sha']
, 'client');
api.addFiles([
'client/entry.coffee',
'client/entry.less',
'client/helpers.coffee',
'client/views/signIn/signIn.html',
'client/views/signIn/signIn.coffee',
'client/views/signUp/signUp.html',
'client/views/signUp/signUp.coffee',
'client/views/signUp/extraSignUpFields.html',
'client/views/signUp/extraSignUpFields.coffee',
'client/views/forgotPassword/forgotPassword.html',
'client/views/forgotPassword/forgotPassword.coffee',
'client/views/resetPassword/resetPassword.html',
'client/views/resetPassword/resetPassword.coffee',
'client/views/social/social.html',
'client/views/social/social.coffee',
'client/views/error/error.html',
'client/views/error/error.coffee',
'client/views/accountButtons/accountButtons.html',
'client/views/accountButtons/_wrapLinks.html',
'client/views/accountButtons/signedIn.html',
'client/views/accountButtons/accountButtons.coffee',
'client/t9n/english.coffee',
'client/t9n/french.coffee',
'client/t9n/german.coffee',
'client/t9n/italian.coffee',
'client/t9n/polish.coffee',
'client/t9n/spanish.coffee',
'client/t9n/swedish.coffee',
'client/t9n/portuguese.coffee',
'client/t9n/slovene.coffee',
'client/t9n/russian.coffee',
'client/t9n/arabic.coffee'
], 'client');
// SERVER
api.use([
'deps',
'service-configuration',
'accounts-password',
'accounts-base',
'underscore',
'coffeescript'
], 'server');
api.addFiles(['server/entry.coffee'], 'server');
// CLIENT and SERVER
api.imply('accounts-base', ['client', 'server']);
api.imply('accounts-password', ['client', 'server']);
api.export('AccountsEntry', ['client', 'server']);
api.addFiles(['shared/router.coffee'], ['client', 'server']);
});
Package.onTest(function (api) {
api.use(['tinytest',
'underscore',
'handlebars',
'test-helpers',
'templating',
'mongo-livedata',
'coffeescript'
]);
api.use(['iron:router', 'softwarerero:accounts-t9n', 'joshowens:simple-form'], ['client', 'server']);
api.use('joshowens:accounts-entry');
api.addFiles(['tests/route.coffee', 'tests/client.html', 'tests/client.coffee'], 'client');
});