forked from Dogfalo/materialize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
56 lines (47 loc) · 1.63 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
// package metadata file for Meteor.js
Package.describe({
name: 'materialize:materialize', // http://atmospherejs.com/materialize/materialize
summary: 'Materialize (official): A modern responsive front-end framework based on Material Design',
version: '0.97.2',
git: 'https://github.com/Dogfalo/materialize.git'
});
Package.onUse(function (api) {
api.versionsFrom('[email protected]');
api.use('jquery', 'client');
api.imply('jquery', 'client');
var assets = [
'font/material-design-icons/Material-Design-Icons.eot',
'font/material-design-icons/Material-Design-Icons.svg',
'font/material-design-icons/Material-Design-Icons.ttf',
'font/material-design-icons/Material-Design-Icons.woff',
'font/material-design-icons/Material-Design-Icons.woff2',
'font/roboto/Roboto-Bold.ttf',
'font/roboto/Roboto-Bold.woff',
'font/roboto/Roboto-Bold.woff2',
'font/roboto/Roboto-Light.ttf',
'font/roboto/Roboto-Light.woff',
'font/roboto/Roboto-Light.woff2',
'font/roboto/Roboto-Medium.ttf',
'font/roboto/Roboto-Medium.woff',
'font/roboto/Roboto-Medium.woff2',
'font/roboto/Roboto-Regular.ttf',
'font/roboto/Roboto-Regular.woff',
'font/roboto/Roboto-Regular.woff2',
'font/roboto/Roboto-Thin.ttf',
'font/roboto/Roboto-Thin.woff',
'font/roboto/Roboto-Thin.woff2',
];
addAssets(api, assets);
api.addFiles([
'dist/js/materialize.js',
'dist/css/materialize.css'
], 'client');
api.export('Materialize', 'client');
});
function addAssets(api, assets){
if(api.addAssets){
api.addAssets(assets, 'client');
} else {
api.addFiles(assets, 'client', {isAsset: true});
}
}