-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpackage.js
100 lines (87 loc) · 2.87 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
96
97
98
99
100
Package.describe({
summary: "Make signin and signout their own pages with routes (in javascript)",
version: '0.9.0',
name: "selaias:accounts-entry",
git: 'https://github.com/selaias/meteor-accounts-entry.git',
});
Package.onUse(function(api) {
api.versionsFrom("1.2.0.1");
api.use('selaias:[email protected]', 'client');
api.use(['iron:[email protected]', 'anti:[email protected]'], ['client', 'server']);
// CLIENT
api.use([
'deps',
'service-configuration',
'accounts-base',
'underscore',
'templating',
'handlebars',
'session',
'check',
'less',
'[email protected]'], 'client');
api.addFiles([
'client/lib/entry.js',
'client/lib/simpleform.js',
'client/css/entry.less',
'client/lib/helpers.js',
'client/views/signIn/signIn.html',
'client/views/signIn/signIn.js',
'client/views/signUp/signUp.html',
'client/views/signUp/signUp.js',
'client/views/signUp/extraSignUpFields.html',
'client/views/signUp/extraSignUpFields.js',
'client/views/forgotPassword/forgotPassword.html',
'client/views/forgotPassword/forgotPassword.js',
'client/views/resetPassword/resetPassword.html',
'client/views/resetPassword/resetPassword.js',
'client/views/enrollAccount/enrollAccount.html',
'client/views/enrollAccount/enrollAccount.js',
'client/views/verifyEmail/emailVerificationPending.html',
'client/views/verifyEmail/emailVerificationPending.js',
'client/views/social/social.html',
'client/views/social/social.js',
'client/views/accountButtons/accountButtons.html',
'client/views/accountButtons/_wrapLinks.html',
'client/views/accountButtons/signedIn.html',
'client/views/accountButtons/accountButtons.js'
], 'client');
// SERVER
api.use([
'deps',
'check',
'service-configuration',
'accounts-base',
'underscore'], 'server');
api.addFiles(['server/entry.js'], 'server');
// CLIENT and SERVER
api.imply('accounts-base', ['client', 'server']);
api.export('AccountsEntry', ['client', 'server']);
api.export('SimpleForm', ['client', 'server']);
api.addFiles([
'shared/router.js',
'shared/i18n/i18n_ar.js',
'shared/i18n/i18n_de.js',
'shared/i18n/i18n_el.js',
'shared/i18n/i18n_en.js',
'shared/i18n/i18n_es.js',
'shared/i18n/i18n_fr.js',
'shared/i18n/i18n_it.js',
'shared/i18n/i18n_pl.js',
'shared/i18n/i18n_pt.js',
'shared/i18n/i18n_ru.js',
'shared/i18n/i18n_sl.js',
'shared/i18n/i18n_sv.js'
], ['client', 'server']);
});
Package.onTest(function (api) {
api.use(['tinytest',
'underscore',
'handlebars',
'test-helpers',
'templating',
'mongo-livedata']);
api.use(['iron:router', 'anti:[email protected]', 'selaias:[email protected]'], ['client', 'server']);
api.use('selaias:accounts-entry');
api.addFiles(['tests/route.js', 'tests/client.html', 'tests/client.js'], 'client');
});