-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
75 lines (63 loc) · 2.22 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
Package.describe({
name: 'yellowsquare:gdpr',
version: '1.0.4',
// Brief, one-line summary of the package.
summary: 'Helps to comply with GDPR in meteor+blaze apps',
// URL to the Git repository containing the source code for this package.
git: 'https://github.com/yellowsquaresas/meteor-gdpr',
// 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({
"moment": "2.22.1",
"simpl-schema": "1.4.3",
});
Package.onUse(function (api) {
api.versionsFrom('1.4');
api.use([
'underscore',
'less',
'ecmascript',
'mdg:validated-method@1.0.0',
'ziarno:restrict-mixin@0.0.4',
'accounts-base',
'accounts-password',
'aldeed:collection2@3.0.0',
'email',
]);
api.use([
'templating',
], 'client');
api.use('themeteorchef:bert@2.1.3');
// files in API used in both contexts
api.addFiles([
'lib/api/request/index.js',
'lib/api/user/index.js',
'lib/api/user/methods.js',
], ["client", "server"]);
// server side configuration and object
api.addFiles([
// publications
'lib/api/user/server/publication.js',
// server side methods
'lib/api/request/server/methods.js',
'lib/api/server/index.js',
], 'server');
api.export('GDPR', ['client', 'server']);
// client side templates
api.addAssets("lib/assets/power.svg", "client");
api.addAssets("lib/assets/profile.svg", "client");
api.addAssets("lib/fonts/fonts/gdpr.eot", "client");
api.addAssets("lib/fonts/fonts/gdpr.svg", "client");
api.addAssets("lib/fonts/fonts/gdpr.ttf", "client");
api.addAssets("lib/fonts/fonts/gdpr.woff", "client");
api.addAssets("lib/fonts/fonts/gdpr.woff2", "client");
api.addFiles('lib/fonts/style.less', 'client');
api.addFiles('lib/templates/profileName/profileName.js', 'client');
// client side configuration :
api.addFiles('lib/GDPRConfig.js', 'client');
//api.addFiles('lib/i18n/en.js', 'client');
api.addFiles('lib/i18n/fr.js', 'client');
api.export('GDPRconfig', 'client');
});