forked from Dogfalo/materialize
-
Notifications
You must be signed in to change notification settings - Fork 14
/
package.js
105 lines (94 loc) · 3.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
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
95
96
97
98
99
100
101
102
103
104
105
// package metadata file for Meteor.js
Package.describe({
name: 'poetic:materialize-scss', // http://atmospherejs.com/materialize/materialize
summary: 'Materialize (official): A modern responsive front-end framework based on Material Design',
version: '1.97.6_1',
git: 'https://github.com/poetic/meteor-materialize-scss'
});
Package.onUse(function (api) {
api.versionsFrom('METEOR@1.0');
api.use('fourseven:scss@3.4.3');
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',
'material-design-icons/iconfont/MaterialIcons-Regular.eot',
'material-design-icons/iconfont/MaterialIcons-Regular.ttf',
'material-design-icons/iconfont/MaterialIcons-Regular.woff',
'material-design-icons/iconfont/MaterialIcons-Regular.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',
], '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/_buttons.scss',
'sass/components/_cards.scss',
'sass/components/_chips.scss',
'sass/components/_collapsible.scss',
'sass/components/_color.scss',
'sass/components/_dropdown.scss',
'sass/components/forms/_forms.scss',
'sass/components/forms/_checkboxes.scss',
'sass/components/forms/_file-input.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/_global.scss',
'sass/components/_grid.scss',
'sass/components/_icons-material-design.scss',
'sass/components/_materialbox.scss',
'sass/components/_material-icons.scss',
'sass/components/_mixins.scss',
'sass/components/_modal.scss',
'sass/components/_navbar.scss',
'sass/components/_normalize.scss',
'sass/components/_prefixer.scss',
'sass/components/_preloader.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/_toast.scss',
'sass/components/_tooltip.scss',
'sass/components/_typography.scss',
'sass/components/_variables.scss',
'sass/components/_waves.scss',
'sass/components/_carousel.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});
}
}