1 |
|
2 |
|
3 | Package.describe({
|
4 | name: 'materialize:materialize',
|
5 | summary: 'Materialize (official): A modern responsive front-end framework based on Material Design',
|
6 | version: '0.97.2',
|
7 | git: 'https://github.com/Dogfalo/materialize.git'
|
8 | });
|
9 |
|
10 | Package.onUse(function (api) {
|
11 | api.versionsFrom('METEOR@1.0');
|
12 |
|
13 | api.use('jquery', 'client');
|
14 | api.imply('jquery', 'client');
|
15 |
|
16 | var assets = [
|
17 | 'font/material-design-icons/Material-Design-Icons.eot',
|
18 | 'font/material-design-icons/Material-Design-Icons.svg',
|
19 | 'font/material-design-icons/Material-Design-Icons.ttf',
|
20 | 'font/material-design-icons/Material-Design-Icons.woff',
|
21 | 'font/material-design-icons/Material-Design-Icons.woff2',
|
22 | 'font/roboto/Roboto-Bold.ttf',
|
23 | 'font/roboto/Roboto-Bold.woff',
|
24 | 'font/roboto/Roboto-Bold.woff2',
|
25 | 'font/roboto/Roboto-Light.ttf',
|
26 | 'font/roboto/Roboto-Light.woff',
|
27 | 'font/roboto/Roboto-Light.woff2',
|
28 | 'font/roboto/Roboto-Medium.ttf',
|
29 | 'font/roboto/Roboto-Medium.woff',
|
30 | 'font/roboto/Roboto-Medium.woff2',
|
31 | 'font/roboto/Roboto-Regular.ttf',
|
32 | 'font/roboto/Roboto-Regular.woff',
|
33 | 'font/roboto/Roboto-Regular.woff2',
|
34 | 'font/roboto/Roboto-Thin.ttf',
|
35 | 'font/roboto/Roboto-Thin.woff',
|
36 | 'font/roboto/Roboto-Thin.woff2',
|
37 | ];
|
38 |
|
39 | addAssets(api, assets);
|
40 |
|
41 | api.addFiles([
|
42 | 'dist/js/materialize.js',
|
43 | 'dist/css/materialize.css'
|
44 | ], 'client');
|
45 |
|
46 | api.export('Materialize', 'client');
|
47 | });
|
48 |
|
49 |
|
50 | function addAssets(api, assets){
|
51 | if(api.addAssets){
|
52 | api.addAssets(assets, 'client');
|
53 | } else {
|
54 | api.addFiles(assets, 'client', {isAsset: true});
|
55 | }
|
56 | }
|