package.js
1.73 KB
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.5',
git: 'https://github.com/Dogfalo/materialize.git'
});
Package.onUse(function (api) {
api.versionsFrom('METEOR@1.0');
api.use('jquery', 'client');
api.imply('jquery', 'client');
var assets = [
'dist/font/material-design-icons/Material-Design-Icons.eot',
'dist/font/material-design-icons/Material-Design-Icons.svg',
'dist/font/material-design-icons/Material-Design-Icons.ttf',
'dist/font/material-design-icons/Material-Design-Icons.woff',
'dist/font/material-design-icons/Material-Design-Icons.woff2',
'dist/font/roboto/Roboto-Bold.ttf',
'dist/font/roboto/Roboto-Bold.woff',
'dist/font/roboto/Roboto-Bold.woff2',
'dist/font/roboto/Roboto-Light.ttf',
'dist/font/roboto/Roboto-Light.woff',
'dist/font/roboto/Roboto-Light.woff2',
'dist/font/roboto/Roboto-Medium.ttf',
'dist/font/roboto/Roboto-Medium.woff',
'dist/font/roboto/Roboto-Medium.woff2',
'dist/font/roboto/Roboto-Regular.ttf',
'dist/font/roboto/Roboto-Regular.woff',
'dist/font/roboto/Roboto-Regular.woff2',
'dist/font/roboto/Roboto-Thin.ttf',
'dist/font/roboto/Roboto-Thin.woff',
'dist/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});
}
}