forked from Dogfalo/materialize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
94 lines (81 loc) · 2.84 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// 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.100.1',
git: 'https://github.com/Dogfalo/materialize.git'
});
Package.onUse(function (api) {
api.versionsFrom('[email protected]');
api.use('fourseven:[email protected]');
api.use('jquery', 'client');
api.imply('jquery', 'client');
var assets = [
'fonts/roboto/Roboto-Bold.woff',
'fonts/roboto/Roboto-Bold.woff2',
'fonts/roboto/Roboto-Light.woff',
'fonts/roboto/Roboto-Light.woff2',
'fonts/roboto/Roboto-Medium.woff',
'fonts/roboto/Roboto-Medium.woff2',
'fonts/roboto/Roboto-Regular.woff',
'fonts/roboto/Roboto-Regular.woff2',
'fonts/roboto/Roboto-Thin.woff',
'fonts/roboto/Roboto-Thin.woff2',
];
addAssets(api, assets);
api.addFiles([
'dist/js/materialize.js'
], 'client');
var scssFiles = [
'sass/components/date_picker/_default.date.scss',
'sass/components/date_picker/_default.scss',
'sass/components/date_picker/_default.time.scss',
'sass/components/forms/_checkboxes.scss',
'sass/components/forms/_file-input.scss',
'sass/components/forms/_forms.scss',
'sass/components/forms/_input-fields.scss',
'sass/components/forms/_radio-buttons.scss',
'sass/components/forms/_range.scss',
'sass/components/forms/_select.scss',
'sass/components/forms/_switches.scss',
'sass/components/_badges.scss',
'sass/components/_buttons.scss',
'sass/components/_cards.scss',
'sass/components/_carousel.scss',
'sass/components/_chips.scss',
'sass/components/_collapsible.scss',
'sass/components/_color.scss',
'sass/components/_dropdown.scss',
'sass/components/_global.scss',
'sass/components/_grid.scss',
'sass/components/_icons-material-design.scss',
'sass/components/_materialbox.scss',
'sass/components/_modal.scss',
'sass/components/_navbar.scss',
'sass/components/_normalize.scss',
'sass/components/_preloader.scss',
'sass/components/_pulse.scss',
'sass/components/_roboto.scss',
'sass/components/_sideNav.scss',
'sass/components/_slider.scss',
'sass/components/_table_of_contents.scss',
'sass/components/_tabs.scss',
'sass/components/_tapTarget.scss',
'sass/components/_toast.scss',
'sass/components/_tooltip.scss',
'sass/components/_transitions.scss',
'sass/components/_typography.scss',
'sass/components/_variables.scss',
'sass/components/_waves.scss',
'sass/materialize.scss'
];
api.addFiles(scssFiles, 'client');
api.export('Materialize', 'client');
});
function addAssets(api, assets){
if(api.addAssets){
api.addAssets(assets, 'client');
} else {
api.addFiles(assets, 'client', {isAsset: true});
}
}