forked from joypixels/emojione
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
45 lines (39 loc) · 1.17 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
Package.describe({
name: 'emojione:emojione',
summary: 'Meteor Package of http://www.emojione.com/ set',
version: '2.0.0',
git: 'https://github.com/Ranks/emojione.git'
});
Package.onUse(function(api) {
api.versionsFrom('1.0.2.1');
api.addFiles([
'lib/meteor/pre-export.js',
'lib/js/emojione.js',
'lib/meteor/post-export.js',
]);
api.use([
'blaze',
'htmljs',
'templating',
], 'client');
api.addFiles([
'lib/meteor/emojione-client.js',
'assets/css/emojione.css',
], 'client');
if ((process.env.EMOJIONE_ADD_SVG_SPRITES !== undefined && process.env.EMOJIONE_ADD_SVG_SPRITES.toLowerCase() === 'true') || (process.env.EMOJIONE_ADD_PNG_SPRITES !== undefined && process.env.EMOJIONE_ADD_PNG_SPRITES.toLowerCase() === 'true')) {
api.addFiles([
'assets/sprites/emojione.sprites.css',
], 'client');
if (process.env.EMOJIONE_ADD_SVG_SPRITES) {
api.addAssets([
'assets/sprites/emojione.sprites.svg'
], 'client');
}
if (process.env.EMOJIONE_ADD_PNG_SPRITES) {
api.addAssets([
'assets/sprites/emojione.sprites.png'
], 'client');
}
}
api.export('emojione');
});