@materializecss/materialize 1.2.2 → 2.0.1-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Gruntfile.js +68 -313
- package/README.md +26 -14
- package/dist/css/materialize.css +1009 -1822
- package/dist/css/materialize.min.css +2 -8
- package/dist/js/materialize.js +8414 -12299
- package/dist/js/materialize.min.js +8968 -2
- package/dist/js/materialize.min.js.map +1 -0
- package/package.json +13 -9
- package/sass/components/_badges.scss +12 -2
- package/sass/components/_buttons.scss +16 -11
- package/sass/components/_cards.scss +14 -9
- package/sass/components/_carousel.scss +5 -2
- package/sass/components/_chips.scss +3 -3
- package/sass/components/_collapsible.scss +22 -8
- package/sass/components/_collection.scss +14 -6
- package/sass/components/_datepicker.scss +30 -11
- package/sass/components/_dropdown.scss +6 -4
- package/sass/components/_global.scss +132 -111
- package/sass/components/_grid.scss +119 -98
- package/sass/components/_modal.scss +3 -3
- package/sass/components/_navbar.scss +31 -17
- package/sass/components/_normalize.scss +26 -124
- package/sass/components/_sidenav.scss +21 -20
- package/sass/components/_slider.scss +27 -7
- package/sass/components/_table_of_contents.scss +12 -12
- package/sass/components/_tabs.scss +47 -16
- package/sass/components/_tapTarget.scss +6 -6
- package/sass/components/_theme_variables.scss +98 -0
- package/sass/components/_timepicker.scss +54 -46
- package/sass/components/_toast.scss +3 -3
- package/sass/components/_tooltip.scss +4 -5
- package/sass/components/_typography.scss +1 -1
- package/sass/components/_variables.scss +185 -120
- package/sass/components/forms/_checkboxes.scss +9 -9
- package/sass/components/forms/_file-input.scss +9 -7
- package/sass/components/forms/_input-fields.scss +173 -234
- package/sass/components/forms/_radio-buttons.scss +1 -1
- package/sass/components/forms/_range.scss +11 -11
- package/sass/components/forms/_select.scss +29 -19
- package/sass/components/forms/_switches.scss +22 -18
- package/sass/materialize.scss +1 -1
- package/src/autocomplete.ts +459 -0
- package/src/bounding.ts +6 -0
- package/{js/buttons.js → src/buttons.ts} +103 -162
- package/src/cards.ts +54 -0
- package/{js/carousel.js → src/carousel.ts} +137 -262
- package/src/characterCounter.ts +88 -0
- package/src/chips.ts +350 -0
- package/src/collapsible.ts +184 -0
- package/{js/component.js → src/component.ts} +6 -19
- package/{js/datepicker.js → src/datepicker.ts} +213 -299
- package/{js/dropdown.js → src/dropdown.ts} +140 -254
- package/src/edges.ts +6 -0
- package/src/forms.ts +120 -0
- package/src/global.ts +385 -0
- package/src/materialbox.ts +348 -0
- package/src/modal.ts +256 -0
- package/{js/parallax.js → src/parallax.ts} +47 -60
- package/{js/pushpin.js → src/pushpin.ts} +19 -47
- package/{js/range.js → src/range.ts} +58 -139
- package/{js/scrollspy.js → src/scrollspy.ts} +81 -153
- package/src/select.ts +448 -0
- package/{js/sidenav.js → src/sidenav.ts} +96 -202
- package/src/slider.ts +415 -0
- package/src/tabs.ts +293 -0
- package/src/tapTarget.ts +240 -0
- package/{js/timepicker.js → src/timepicker.ts} +268 -272
- package/{js/toasts.js → src/toasts.ts} +75 -134
- package/{js/tooltip.js → src/tooltip.ts} +59 -96
- package/src/waves.ts +70 -0
- package/extras/noUiSlider/nouislider.css +0 -404
- package/extras/noUiSlider/nouislider.js +0 -2147
- package/extras/noUiSlider/nouislider.min.js +0 -1
- package/js/anime.min.js +0 -34
- package/js/autocomplete.js +0 -479
- package/js/cards.js +0 -40
- package/js/cash.js +0 -960
- package/js/characterCounter.js +0 -136
- package/js/chips.js +0 -486
- package/js/collapsible.js +0 -275
- package/js/forms.js +0 -285
- package/js/global.js +0 -428
- package/js/materialbox.js +0 -453
- package/js/modal.js +0 -382
- package/js/select.js +0 -391
- package/js/slider.js +0 -497
- package/js/tabs.js +0 -402
- package/js/tapTarget.js +0 -315
- package/js/waves.js +0 -615
- package/sass/components/_waves.scss +0 -187
package/Gruntfile.js
CHANGED
|
@@ -1,42 +1,10 @@
|
|
|
1
|
+
const path = require('path');
|
|
1
2
|
const sass = require('sass');
|
|
3
|
+
const webpackConfig = require('./webpack.config.js');
|
|
2
4
|
|
|
3
5
|
module.exports = function(grunt) {
|
|
4
|
-
const concatFile = 'temp/js/materialize_concat.js.map';
|
|
5
|
-
const jsFiles = [
|
|
6
|
-
'js/cash.js',
|
|
7
|
-
'js/waves.js',
|
|
8
|
-
'js/component.js',
|
|
9
|
-
'js/global.js',
|
|
10
|
-
'js/anime.min.js',
|
|
11
|
-
'js/collapsible.js',
|
|
12
|
-
'js/dropdown.js',
|
|
13
|
-
'js/modal.js',
|
|
14
|
-
'js/materialbox.js',
|
|
15
|
-
'js/parallax.js',
|
|
16
|
-
'js/tabs.js',
|
|
17
|
-
'js/tooltip.js',
|
|
18
|
-
'js/toasts.js',
|
|
19
|
-
'js/sidenav.js',
|
|
20
|
-
'js/scrollspy.js',
|
|
21
|
-
'js/autocomplete.js',
|
|
22
|
-
'js/forms.js',
|
|
23
|
-
'js/slider.js',
|
|
24
|
-
'js/cards.js',
|
|
25
|
-
'js/chips.js',
|
|
26
|
-
'js/pushpin.js',
|
|
27
|
-
'js/buttons.js',
|
|
28
|
-
'js/datepicker.js',
|
|
29
|
-
'js/timepicker.js',
|
|
30
|
-
'js/characterCounter.js',
|
|
31
|
-
'js/carousel.js',
|
|
32
|
-
'js/tapTarget.js',
|
|
33
|
-
'js/select.js',
|
|
34
|
-
'js/range.js'
|
|
35
|
-
];
|
|
36
|
-
|
|
37
6
|
// configure the tasks
|
|
38
7
|
const config = {
|
|
39
|
-
// Jasmine
|
|
40
8
|
jasmine: {
|
|
41
9
|
components: {
|
|
42
10
|
src: ['bin/materialize.js'],
|
|
@@ -60,13 +28,11 @@ module.exports = function(grunt) {
|
|
|
60
28
|
}
|
|
61
29
|
},
|
|
62
30
|
|
|
63
|
-
// Sass
|
|
64
31
|
sass: {
|
|
65
32
|
// Global options
|
|
66
33
|
options: {
|
|
67
34
|
implementation: sass
|
|
68
35
|
},
|
|
69
|
-
|
|
70
36
|
// Task
|
|
71
37
|
expanded: {
|
|
72
38
|
// Target options
|
|
@@ -112,7 +78,6 @@ module.exports = function(grunt) {
|
|
|
112
78
|
}
|
|
113
79
|
},
|
|
114
80
|
|
|
115
|
-
// PostCss Autoprefixer
|
|
116
81
|
postcss: {
|
|
117
82
|
options: {
|
|
118
83
|
processors: [
|
|
@@ -141,39 +106,51 @@ module.exports = function(grunt) {
|
|
|
141
106
|
}
|
|
142
107
|
},
|
|
143
108
|
|
|
144
|
-
|
|
109
|
+
webpack: {
|
|
145
110
|
options: {
|
|
146
|
-
|
|
147
|
-
plugins: [
|
|
148
|
-
'transform-es2015-arrow-functions',
|
|
149
|
-
'transform-es2015-block-scoping',
|
|
150
|
-
'transform-es2015-classes',
|
|
151
|
-
'transform-es2015-template-literals',
|
|
152
|
-
'transform-es2015-object-super',
|
|
153
|
-
'babel-plugin-transform-object-rest-spread'
|
|
154
|
-
]
|
|
111
|
+
/*stats: !process.env.NODE_ENV || process.env.NODE_ENV === "development",*/
|
|
155
112
|
},
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
113
|
+
|
|
114
|
+
dev: Object.assign({}, webpackConfig, {
|
|
115
|
+
mode: 'development'
|
|
116
|
+
}),
|
|
117
|
+
|
|
118
|
+
dev_watch: Object.assign({}, webpackConfig, {
|
|
119
|
+
mode: 'development',
|
|
120
|
+
watch: true,
|
|
121
|
+
}),
|
|
122
|
+
|
|
123
|
+
dev_dist: Object.assign({}, webpackConfig, {
|
|
124
|
+
mode: 'development',
|
|
125
|
+
devtool: false,
|
|
126
|
+
optimization: {
|
|
127
|
+
minimize: false
|
|
159
128
|
},
|
|
160
|
-
|
|
161
|
-
|
|
129
|
+
output: {
|
|
130
|
+
filename: 'materialize.js',
|
|
131
|
+
path: path.resolve(__dirname, 'dist/js'),
|
|
132
|
+
libraryTarget: 'umd',
|
|
133
|
+
globalObject: 'this'
|
|
162
134
|
}
|
|
163
|
-
},
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
135
|
+
}),
|
|
136
|
+
|
|
137
|
+
prod_min: Object.assign({}, webpackConfig, {
|
|
138
|
+
mode: 'production',
|
|
139
|
+
devtool: 'source-map',
|
|
140
|
+
output: {
|
|
141
|
+
filename: 'materialize.min.js',
|
|
142
|
+
path: path.resolve(__dirname, 'dist/js'),
|
|
143
|
+
libraryTarget: 'umd',
|
|
144
|
+
globalObject: 'this'
|
|
167
145
|
}
|
|
168
|
-
}
|
|
169
|
-
},
|
|
146
|
+
}),
|
|
147
|
+
},
|
|
170
148
|
|
|
171
|
-
// Browser Sync integration
|
|
172
149
|
browserSync: {
|
|
173
150
|
bsFiles: ['bin/*', 'css/ghpages-materialize.css', '!**/node_modules/**/*'],
|
|
174
151
|
options: {
|
|
175
152
|
server: {
|
|
176
|
-
baseDir: './' // make server from root dir
|
|
153
|
+
baseDir: './docs/' // make server from root dir
|
|
177
154
|
},
|
|
178
155
|
port: 8000,
|
|
179
156
|
ui: {
|
|
@@ -186,55 +163,6 @@ module.exports = function(grunt) {
|
|
|
186
163
|
}
|
|
187
164
|
},
|
|
188
165
|
|
|
189
|
-
// Concat
|
|
190
|
-
concat: {
|
|
191
|
-
options: {
|
|
192
|
-
separator: ';'
|
|
193
|
-
},
|
|
194
|
-
dist: {
|
|
195
|
-
// the files to concatenate
|
|
196
|
-
src: jsFiles,
|
|
197
|
-
// the location of the resulting JS file
|
|
198
|
-
dest: 'temp/js/materialize.js'
|
|
199
|
-
},
|
|
200
|
-
temp: {
|
|
201
|
-
// the files to concatenate
|
|
202
|
-
options: {
|
|
203
|
-
sourceMap: true,
|
|
204
|
-
sourceMapStyle: 'link'
|
|
205
|
-
},
|
|
206
|
-
src: jsFiles,
|
|
207
|
-
// the location of the resulting JS file
|
|
208
|
-
dest: 'temp/js/materialize_concat.js'
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
|
|
212
|
-
// Uglify
|
|
213
|
-
uglify: {
|
|
214
|
-
options: {
|
|
215
|
-
// Use these options when debugging
|
|
216
|
-
// mangle: false,
|
|
217
|
-
// compress: false,
|
|
218
|
-
// beautify: true
|
|
219
|
-
},
|
|
220
|
-
dist: {
|
|
221
|
-
files: {
|
|
222
|
-
'dist/js/materialize.min.js': ['dist/js/materialize.js']
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
bin: {
|
|
226
|
-
files: {
|
|
227
|
-
'bin/materialize.min.js': ['bin/materialize.js']
|
|
228
|
-
}
|
|
229
|
-
},
|
|
230
|
-
extras: {
|
|
231
|
-
files: {
|
|
232
|
-
'extras/noUiSlider/nouislider.min.js': ['extras/noUiSlider/nouislider.js']
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
|
|
237
|
-
// Compress
|
|
238
166
|
compress: {
|
|
239
167
|
main: {
|
|
240
168
|
options: {
|
|
@@ -255,42 +183,7 @@ module.exports = function(grunt) {
|
|
|
255
183
|
files: [
|
|
256
184
|
{ expand: true, cwd: 'sass/', src: ['materialize.scss'], dest: 'materialize-src/sass/' },
|
|
257
185
|
{ expand: true, cwd: 'sass/', src: ['components/**/*'], dest: 'materialize-src/sass/' },
|
|
258
|
-
{
|
|
259
|
-
expand: true,
|
|
260
|
-
cwd: 'js/',
|
|
261
|
-
src: [
|
|
262
|
-
'anime.min.js',
|
|
263
|
-
'cash.js',
|
|
264
|
-
'component.js',
|
|
265
|
-
'global.js',
|
|
266
|
-
'collapsible.js',
|
|
267
|
-
'dropdown.js',
|
|
268
|
-
'modal.js',
|
|
269
|
-
'materialbox.js',
|
|
270
|
-
'parallax.js',
|
|
271
|
-
'tabs.js',
|
|
272
|
-
'tooltip.js',
|
|
273
|
-
'waves.js',
|
|
274
|
-
'toasts.js',
|
|
275
|
-
'sidenav.js',
|
|
276
|
-
'scrollspy.js',
|
|
277
|
-
'autocomplete.js',
|
|
278
|
-
'forms.js',
|
|
279
|
-
'slider.js',
|
|
280
|
-
'cards.js',
|
|
281
|
-
'chips.js',
|
|
282
|
-
'pushpin.js',
|
|
283
|
-
'buttons.js',
|
|
284
|
-
'datepicker.js',
|
|
285
|
-
'timepicker.js',
|
|
286
|
-
'characterCounter.js',
|
|
287
|
-
'carousel.js',
|
|
288
|
-
'tapTarget.js',
|
|
289
|
-
'select.js',
|
|
290
|
-
'range.js'
|
|
291
|
-
],
|
|
292
|
-
dest: 'materialize-src/js/'
|
|
293
|
-
},
|
|
186
|
+
{ expand: true, cwd: 'src/', src: ['**/*'], dest: 'materialize-src/ts/' },
|
|
294
187
|
{ expand: true, cwd: 'dist/js/', src: ['**/*'], dest: 'materialize-src/js/bin/' },
|
|
295
188
|
{ expand: true, cwd: './', src: ['LICENSE', 'README.md'], dest: 'materialize-src/' }
|
|
296
189
|
]
|
|
@@ -353,14 +246,6 @@ module.exports = function(grunt) {
|
|
|
353
246
|
}
|
|
354
247
|
},
|
|
355
248
|
|
|
356
|
-
// Clean
|
|
357
|
-
clean: {
|
|
358
|
-
temp: {
|
|
359
|
-
src: ['temp/']
|
|
360
|
-
}
|
|
361
|
-
},
|
|
362
|
-
|
|
363
|
-
// Pug
|
|
364
249
|
pug: {
|
|
365
250
|
compile: {
|
|
366
251
|
options: {
|
|
@@ -369,65 +254,18 @@ module.exports = function(grunt) {
|
|
|
369
254
|
debug: false
|
|
370
255
|
}
|
|
371
256
|
},
|
|
372
|
-
files: {
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
'
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
'docs/typography.html': 'pug/typography.pug',
|
|
382
|
-
'docs/color.html': 'pug/color.pug',
|
|
383
|
-
'docs/shadow.html': 'pug/shadow.pug',
|
|
384
|
-
'docs/grid.html': 'pug/grid.pug',
|
|
385
|
-
'docs/media-css.html': 'pug/media-css.pug',
|
|
386
|
-
'docs/table.html': 'pug/table.pug',
|
|
387
|
-
'docs/helpers.html': 'pug/helpers.pug',
|
|
388
|
-
'docs/buttons.html': 'pug/buttons.pug',
|
|
389
|
-
'docs/navbar.html': 'pug/navbar.pug',
|
|
390
|
-
'docs/cards.html': 'pug/cards.pug',
|
|
391
|
-
'docs/preloader.html': 'pug/preloader.pug',
|
|
392
|
-
'docs/collections.html': 'pug/collections.pug',
|
|
393
|
-
'docs/badges.html': 'pug/badges.pug',
|
|
394
|
-
'docs/footer.html': 'pug/footer.pug',
|
|
395
|
-
'docs/modals.html': 'pug/modals.pug',
|
|
396
|
-
'docs/dropdown.html': 'pug/dropdown.pug',
|
|
397
|
-
'docs/tabs.html': 'pug/tabs.pug',
|
|
398
|
-
'docs/toasts.html': 'pug/toasts.pug',
|
|
399
|
-
'docs/tooltips.html': 'pug/tooltips.pug',
|
|
400
|
-
'docs/sidenav.html': 'pug/sidenav.pug',
|
|
401
|
-
'docs/pushpin.html': 'pug/pushpin.pug',
|
|
402
|
-
'docs/waves.html': 'pug/waves.pug',
|
|
403
|
-
'docs/media.html': 'pug/media.pug',
|
|
404
|
-
'docs/collapsible.html': 'pug/collapsible.pug',
|
|
405
|
-
'docs/scrollspy.html': 'pug/scrollspy.pug',
|
|
406
|
-
'docs/fullscreen-slider-demo.html': 'pug/fullscreen-slider-demo.pug',
|
|
407
|
-
'docs/pagination.html': 'pug/pagination.pug',
|
|
408
|
-
'docs/breadcrumbs.html': 'pug/breadcrumbs.pug',
|
|
409
|
-
'docs/carousel.html': 'pug/carousel.pug',
|
|
410
|
-
'docs/feature-discovery.html': 'pug/feature-discovery.pug',
|
|
411
|
-
'docs/pulse.html': 'pug/pulse.pug',
|
|
412
|
-
'docs/pushpin-demo.html': 'pug/pushpin-demo.pug',
|
|
413
|
-
'docs/css-transitions.html': 'pug/css-transitions.pug',
|
|
414
|
-
'docs/404.html': 'pug/404.pug',
|
|
415
|
-
'docs/autocomplete.html': 'pug/autocomplete.pug',
|
|
416
|
-
'docs/checkboxes.html': 'pug/checkboxes.pug',
|
|
417
|
-
'docs/chips.html': 'pug/chips.pug',
|
|
418
|
-
'docs/pickers.html': 'pug/pickers.pug',
|
|
419
|
-
'docs/radio-buttons.html': 'pug/radio-buttons.pug',
|
|
420
|
-
'docs/range.html': 'pug/range.pug',
|
|
421
|
-
'docs/select.html': 'pug/select.pug',
|
|
422
|
-
'docs/switches.html': 'pug/switches.pug',
|
|
423
|
-
'docs/text-inputs.html': 'pug/text-inputs.pug',
|
|
424
|
-
'docs/floating-action-button.html': 'pug/floating-action-button.pug',
|
|
425
|
-
'docs/auto-init.html': 'pug/auto-init.pug'
|
|
426
|
-
}
|
|
257
|
+
files: [{
|
|
258
|
+
expand: true,
|
|
259
|
+
cwd: 'pug/',
|
|
260
|
+
src: ['*.pug', '!**/pug/includes/*.*'],
|
|
261
|
+
dest: 'docs/',
|
|
262
|
+
rename: function (dest, src) {
|
|
263
|
+
return dest + src.split('.', 2)[0] + '.html';
|
|
264
|
+
}
|
|
265
|
+
}]
|
|
427
266
|
}
|
|
428
267
|
},
|
|
429
268
|
|
|
430
|
-
// Watch Files
|
|
431
269
|
watch: {
|
|
432
270
|
pug: {
|
|
433
271
|
files: ['pug/**/*'],
|
|
@@ -437,16 +275,14 @@ module.exports = function(grunt) {
|
|
|
437
275
|
spawn: false
|
|
438
276
|
}
|
|
439
277
|
},
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
tasks: ['js_compile'],
|
|
278
|
+
copydocs: {
|
|
279
|
+
files: ['bin/*.js'],
|
|
280
|
+
tasks: ['copy:docs_js'],
|
|
444
281
|
options: {
|
|
445
282
|
interrupt: false,
|
|
446
283
|
spawn: false
|
|
447
284
|
}
|
|
448
285
|
},
|
|
449
|
-
|
|
450
286
|
sass: {
|
|
451
287
|
files: ['sass/**/*'],
|
|
452
288
|
tasks: ['sass_compile'],
|
|
@@ -457,7 +293,6 @@ module.exports = function(grunt) {
|
|
|
457
293
|
}
|
|
458
294
|
},
|
|
459
295
|
|
|
460
|
-
// Concurrent
|
|
461
296
|
concurrent: {
|
|
462
297
|
options: {
|
|
463
298
|
logConcurrentOutput: true,
|
|
@@ -465,75 +300,21 @@ module.exports = function(grunt) {
|
|
|
465
300
|
},
|
|
466
301
|
monitor: {
|
|
467
302
|
tasks: [
|
|
303
|
+
'webpack:dev_watch',
|
|
468
304
|
'pug_compile',
|
|
469
305
|
'sass_compile',
|
|
470
|
-
'js_compile',
|
|
471
306
|
'watch:pug',
|
|
472
|
-
'watch:js',
|
|
473
307
|
'watch:sass',
|
|
474
|
-
'
|
|
308
|
+
'watch:copydocs',
|
|
475
309
|
'server'
|
|
476
310
|
]
|
|
477
311
|
}
|
|
478
312
|
},
|
|
479
313
|
|
|
480
|
-
// Notifications
|
|
481
|
-
notify: {
|
|
482
|
-
watching: {
|
|
483
|
-
options: {
|
|
484
|
-
enabled: true,
|
|
485
|
-
message: 'Watching Files!',
|
|
486
|
-
title: 'Materialize', // defaults to the name in package.json, or will use project directory's name
|
|
487
|
-
success: true, // whether successful grunt executions should be notified automatically
|
|
488
|
-
duration: 1 // the duration of notification in seconds, for `notify-send only
|
|
489
|
-
}
|
|
490
|
-
},
|
|
491
|
-
|
|
492
|
-
sass_compile: {
|
|
493
|
-
options: {
|
|
494
|
-
enabled: true,
|
|
495
|
-
message: 'Sass Compiled!',
|
|
496
|
-
title: 'Materialize',
|
|
497
|
-
success: true,
|
|
498
|
-
duration: 1
|
|
499
|
-
}
|
|
500
|
-
},
|
|
501
|
-
|
|
502
|
-
js_compile: {
|
|
503
|
-
options: {
|
|
504
|
-
enabled: true,
|
|
505
|
-
message: 'JS Compiled!',
|
|
506
|
-
title: 'Materialize',
|
|
507
|
-
success: true,
|
|
508
|
-
duration: 1
|
|
509
|
-
}
|
|
510
|
-
},
|
|
511
|
-
|
|
512
|
-
pug_compile: {
|
|
513
|
-
options: {
|
|
514
|
-
enabled: true,
|
|
515
|
-
message: 'Pug Compiled!',
|
|
516
|
-
title: 'Materialize',
|
|
517
|
-
success: true,
|
|
518
|
-
duration: 1
|
|
519
|
-
}
|
|
520
|
-
},
|
|
521
|
-
|
|
522
|
-
server: {
|
|
523
|
-
options: {
|
|
524
|
-
enabled: true,
|
|
525
|
-
message: 'Server Running!',
|
|
526
|
-
title: 'Materialize',
|
|
527
|
-
success: true,
|
|
528
|
-
duration: 1
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
},
|
|
532
|
-
|
|
533
314
|
// Replace text to update the version string
|
|
534
315
|
replace: {
|
|
535
316
|
version: {
|
|
536
|
-
src: ['bower.json', 'package.js', 'pug/**/*.html', 'pug/_navbar.pug', '
|
|
317
|
+
src: ['bower.json', 'package.js', 'pug/**/*.html', 'pug/includes/_navbar.pug', 'src/global.ts'],
|
|
537
318
|
overwrite: true,
|
|
538
319
|
replacements: [
|
|
539
320
|
{
|
|
@@ -583,17 +364,16 @@ module.exports = function(grunt) {
|
|
|
583
364
|
}
|
|
584
365
|
},
|
|
585
366
|
|
|
586
|
-
// Rename files
|
|
587
367
|
rename: {
|
|
588
368
|
rename_src: {
|
|
589
|
-
src: 'bin/materialize-src
|
|
369
|
+
src: 'bin/materialize-src.zip',
|
|
590
370
|
dest: 'bin/materialize-src-v' + grunt.option('newver') + '.zip',
|
|
591
371
|
options: {
|
|
592
372
|
ignore: true
|
|
593
373
|
}
|
|
594
374
|
},
|
|
595
375
|
rename_compiled: {
|
|
596
|
-
src: 'bin/materialize
|
|
376
|
+
src: 'bin/materialize.zip',
|
|
597
377
|
dest: 'bin/materialize-v' + grunt.option('newver') + '.zip',
|
|
598
378
|
options: {
|
|
599
379
|
ignore: true
|
|
@@ -635,70 +415,46 @@ module.exports = function(grunt) {
|
|
|
635
415
|
|
|
636
416
|
grunt.initConfig(config);
|
|
637
417
|
|
|
638
|
-
// load
|
|
639
|
-
// grunt.loadNpmTasks('grunt-gitinfo');
|
|
418
|
+
// load tasks
|
|
640
419
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
|
641
420
|
grunt.loadNpmTasks('grunt-sass');
|
|
642
|
-
grunt.loadNpmTasks('grunt-contrib-concat');
|
|
643
|
-
grunt.loadNpmTasks('grunt-contrib-uglify');
|
|
644
421
|
grunt.loadNpmTasks('grunt-contrib-compress');
|
|
645
|
-
grunt.loadNpmTasks('grunt-contrib-clean');
|
|
646
422
|
grunt.loadNpmTasks('grunt-contrib-pug');
|
|
647
423
|
grunt.loadNpmTasks('grunt-concurrent');
|
|
648
|
-
grunt.loadNpmTasks('grunt-notify');
|
|
649
424
|
grunt.loadNpmTasks('grunt-text-replace');
|
|
650
425
|
grunt.loadNpmTasks('grunt-banner');
|
|
651
426
|
grunt.loadNpmTasks('grunt-rename-util');
|
|
652
427
|
grunt.loadNpmTasks('grunt-browser-sync');
|
|
653
428
|
grunt.loadNpmTasks('grunt-contrib-jasmine');
|
|
654
429
|
grunt.loadNpmTasks('grunt-postcss');
|
|
655
|
-
grunt.loadNpmTasks('grunt-
|
|
430
|
+
grunt.loadNpmTasks('grunt-webpack');
|
|
656
431
|
grunt.loadNpmTasks('grunt-contrib-connect');
|
|
657
432
|
grunt.loadNpmTasks('grunt-contrib-copy');
|
|
658
433
|
|
|
659
|
-
// define
|
|
434
|
+
// define tasks
|
|
660
435
|
grunt.registerTask('release', [
|
|
436
|
+
'replace:version', // before webpack
|
|
661
437
|
'sass:expanded',
|
|
662
438
|
'sass:min',
|
|
663
439
|
'postcss:expanded',
|
|
664
440
|
'postcss:min',
|
|
665
|
-
'
|
|
666
|
-
'
|
|
667
|
-
'uglify:dist',
|
|
668
|
-
'uglify:extras',
|
|
441
|
+
'webpack:dev_dist',
|
|
442
|
+
'webpack:prod_min',
|
|
669
443
|
'usebanner:release',
|
|
670
444
|
'compress:main',
|
|
671
445
|
'compress:src',
|
|
672
446
|
'compress:starter_template',
|
|
673
447
|
'compress:parallax_template',
|
|
674
|
-
'replace:version',
|
|
448
|
+
'replace:version', // again because of cdn
|
|
675
449
|
'replace:package_json',
|
|
676
450
|
'rename:rename_src',
|
|
677
451
|
'rename:rename_compiled',
|
|
678
|
-
|
|
679
|
-
]);
|
|
680
|
-
|
|
681
|
-
grunt.
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
grunt.registerTask('pug_compile', ['pug', 'notify:pug_compile']);
|
|
686
|
-
grunt.registerTask('js_compile', [
|
|
687
|
-
'concat:temp',
|
|
688
|
-
'configureBabel',
|
|
689
|
-
'babel:bin',
|
|
690
|
-
'clean:temp',
|
|
691
|
-
'copy:docs_js'
|
|
692
|
-
]);
|
|
693
|
-
grunt.registerTask('sass_compile', [
|
|
694
|
-
'sass:gh',
|
|
695
|
-
'sass:bin',
|
|
696
|
-
'postcss:gh',
|
|
697
|
-
'postcss:bin',
|
|
698
|
-
'notify:sass_compile'
|
|
699
|
-
]);
|
|
700
|
-
grunt.registerTask('server', ['browserSync', 'notify:server']);
|
|
701
|
-
grunt.registerTask('monitor', ['concurrent:monitor']);
|
|
452
|
+
]);
|
|
453
|
+
grunt.registerTask('pug_compile', ['pug']);
|
|
454
|
+
grunt.registerTask('js_compile', ['webpack:dev', 'copy:docs_js']);
|
|
455
|
+
grunt.registerTask('sass_compile', ['sass:gh', 'sass:bin', 'postcss:gh', 'postcss:bin']);
|
|
456
|
+
grunt.registerTask('server', ['browserSync']);
|
|
457
|
+
grunt.registerTask('monitor', ['concurrent:monitor']); // DEV
|
|
702
458
|
grunt.registerTask('test', ['js_compile', 'sass_compile', 'connect', 'jasmine']);
|
|
703
459
|
grunt.registerTask('jas_test', ['connect', 'jasmine']);
|
|
704
460
|
grunt.registerTask('test_repeat', function() {
|
|
@@ -707,7 +463,6 @@ module.exports = function(grunt) {
|
|
|
707
463
|
for (let i = 0; i < n; i++) {
|
|
708
464
|
tasks.push('jasmine');
|
|
709
465
|
}
|
|
710
|
-
|
|
711
466
|
grunt.task.run(tasks);
|
|
712
467
|
});
|
|
713
468
|
grunt.registerTask('docs', [
|
package/README.md
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
</a>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
|
-
<h3 align="center">
|
|
7
|
+
<h3 align="center">Materialize</h3>
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
|
-
Materialize, a CSS Framework based on
|
|
10
|
+
Materialize, a CSS Framework based on Material Design.
|
|
11
11
|
<br>
|
|
12
12
|
<a href="https://materializecss.github.io/materialize/"><strong>-- Browse the docs --</strong></a>
|
|
13
13
|
<br>
|
|
@@ -24,19 +24,12 @@
|
|
|
24
24
|
<a href="https://gitter.im/materializecss/materialize">
|
|
25
25
|
<img src="https://badges.gitter.im/Join%20Chat.svg" alt="Gitter badge">
|
|
26
26
|
</a>
|
|
27
|
+
<a href="https://opencollective.com/materialize">
|
|
28
|
+
<img alt="Open Collective backers and sponsors" src="https://img.shields.io/opencollective/all/materialize">
|
|
29
|
+
</a>
|
|
27
30
|
</p>
|
|
28
31
|
|
|
29
|
-
##
|
|
30
|
-
- [Quickstart](#quickstart)
|
|
31
|
-
- [Documentation](#documentation)
|
|
32
|
-
- [Build](#build)
|
|
33
|
-
- [Supported Browsers](#supported-browsers)
|
|
34
|
-
- [Changelog](#changelog)
|
|
35
|
-
- [Testing](#testing)
|
|
36
|
-
- [Contributing](#contributing)
|
|
37
|
-
- [Copyright and license](#copyright-and-license)
|
|
38
|
-
|
|
39
|
-
## Quickstart:
|
|
32
|
+
## Quickstart
|
|
40
33
|
Read the [getting started guide](https://materializecss.github.io/materialize/getting-started.html) for more information on how to use materialize.
|
|
41
34
|
|
|
42
35
|
- [Download the latest release](https://github.com/materializecss/materialize/releases/latest) of materialize directly from GitHub. ([Beta](https://github.com/materializecss/materialize/releases/))
|
|
@@ -76,7 +69,6 @@ Materialize is compatible with:
|
|
|
76
69
|
- Safari 9+
|
|
77
70
|
- Opera
|
|
78
71
|
- Edge
|
|
79
|
-
- IE 11+
|
|
80
72
|
|
|
81
73
|
## Changelog
|
|
82
74
|
For changelogs, check out [the Releases section of materialize](https://github.com/materializecss/materialize/releases) or the [CHANGELOG.md](CHANGELOG.md).
|
|
@@ -87,5 +79,25 @@ We use Jasmine as our testing framework and we're trying to write a robust test
|
|
|
87
79
|
## Contributing
|
|
88
80
|
Check out the [CONTRIBUTING document](CONTRIBUTING.md) in the root of the repository to learn how you can contribute. You can also browse the [help-wanted](https://github.com/materializecss/materialize/labels/help-wanted) tag in our issue tracker to find things to do.
|
|
89
81
|
|
|
82
|
+
## Sponsors
|
|
83
|
+
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/materialize#sponsor)]
|
|
84
|
+
|
|
85
|
+
[](https://opencollective.com/materialize/sponsor/0/website)
|
|
86
|
+
[](https://opencollective.com/materialize/sponsor/1/website)
|
|
87
|
+
[](https://opencollective.com/materialize/sponsor/2/website)
|
|
88
|
+
[](https://opencollective.com/materialize/sponsor/3/website)
|
|
89
|
+
[](https://opencollective.com/materialize/sponsor/4/website)
|
|
90
|
+
[](https://opencollective.com/materialize/sponsor/5/website)
|
|
91
|
+
[](https://opencollective.com/materialize/sponsor/6/website)
|
|
92
|
+
[](https://opencollective.com/materialize/sponsor/7/website)
|
|
93
|
+
[](https://opencollective.com/materialize/sponsor/8/website)
|
|
94
|
+
[](https://opencollective.com/materialize/sponsor/9/website)
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
## Backers
|
|
98
|
+
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/materialize#backer)]
|
|
99
|
+
|
|
100
|
+
[](https://opencollective.com/materialize#backers)
|
|
101
|
+
|
|
90
102
|
## Copyright and license
|
|
91
103
|
Code Copyright 2023 Materialize. Code released under the MIT license.
|