Skip to content

Commit bde6acc

Browse files
authored
Merge pull request #472 from materializecss/release-2.0.4
Release 2.0.4
2 parents 93e673c + c3435f0 commit bde6acc

51 files changed

Lines changed: 7018 additions & 23814 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.commitlintrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.gitattributes

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
* text=auto
22
**/*.html linguist-documentation
3-
js/velocity.min.js linguist-vendored
4-
js/jquery.easing.1.4.js linguist-vendored
5-
js/jquery.timeago.min.js linguist-vendored
6-
73

84
css/ghpages-materialize.css merge=ours
95
.gitignore merge=ours

.github/workflows/docs.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/lint-commits.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.husky/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.husky/commit-msg

Lines changed: 0 additions & 5 deletions
This file was deleted.

.prettierignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
js/anime.min.js
2-
js/cash.js
3-
js/waves.js
4-
js/jquery.timeago.min.js
51
node_modules/
62
package.json
73
package.json.lock
84
bin/
95
dist/
10-
extras/
116
css/

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ patches and features.
3636
Before you now get lost in the repository, here are a few starting points for you to check out. You might find that others have had similar questions or that your question rather belongs in one place than another.
3737

3838
* Chat: https://gitter.im/materializecss/materialize
39-
* Website: https://materializecss.github.io/materialize
39+
* Website: https://materializeweb.com
4040
* Github discussions: https://github.com/materializecss/materialize/discussions
4141

4242
## Using the issue tracker
@@ -169,7 +169,7 @@ If you want to help us translate the documentation into other languages, you can
169169

170170
After `npm install`, you can run `npm test` and it will run the tests. If you get any errors and have not made any changes, it means you have not installed the proper dependencies.
171171

172-
Materialize uses Jasmine as the testing framework. We also include a jQuery library which allows you to write tests using jQuery syntax.
172+
Materialize uses Jasmine as the testing framework.
173173

174174
### Starting Out
175175

@@ -199,7 +199,7 @@ expect(toast.length).toBe(0, 'because toast should be removed by now');
199199
```
200200
When this expect statement fails it will list the reason as “because toast should be removed by now”.
201201

202-
Because our components are very front end heavy, familiarize yourself with jQuery ways of interacting with the dom and our components. You can use methods like [trigger](http://api.jquery.com/trigger/), to simulate certain events like the user clicking a button.
202+
Because our components are very front end heavy, familiarize yourself with jQuery ways of interacting with the dom and our components. Maybe use ```dispatch();``` to simulate certain events like the user clicking a button.
203203

204204
We also understand that testing CSS properties is pretty tough so you’ll have to be creative when writing good tests that ensure the styling is still working. Try and cover as many cases as you can but don’t worry if there are some edge cases. You can add comments describing some problematic edge cases in TODOs so we know about them.
205205

Gruntfile.js

Lines changed: 10 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,25 @@ const path = require('path');
22
const sass = require('sass');
33
const webpackConfig = require('./webpack.config.js');
44

5-
module.exports = function(grunt) {
5+
module.exports = function (grunt) {
66
// configure the tasks
77
const config = {
88
jasmine: {
99
components: {
1010
src: ['bin/materialize.js'],
1111
options: {
12-
vendor: ['node_modules/jquery/dist/jquery.min.js'],
1312
styles: 'bin/materialize.css',
1413
specs: 'tests/spec/**/*Spec.js',
1514
helpers: 'tests/spec/helper.js',
1615
keepRunner: true,
17-
version: '3.8.0',
1816
page: {
1917
viewportSize: {
2018
width: 1400,
2119
height: 735
2220
}
2321
},
2422
sandboxArgs: {
25-
args: ['--headless', '--no-sandbox']
23+
args: ['--no-sandbox']
2624
}
2725
}
2826
}
@@ -80,17 +78,7 @@ module.exports = function(grunt) {
8078

8179
postcss: {
8280
options: {
83-
processors: [
84-
require('autoprefixer')({
85-
browsers: [
86-
'last 2 versions',
87-
'Chrome >= 30',
88-
'Firefox >= 30',
89-
'ie >= 10',
90-
'Safari >= 8'
91-
]
92-
})
93-
]
81+
processors: [require('autoprefixer')()]
9482
},
9583
expanded: {
9684
src: 'dist/css/materialize.css'
@@ -282,7 +270,7 @@ module.exports = function(grunt) {
282270
banner:
283271
'/*!\n * Materialize v' +
284272
grunt.option('newver') +
285-
' (https://materializecss.github.io/materialize)\n * Copyright 2014-' +
273+
' (https://materializeweb.com)\n * Copyright 2014-' +
286274
new Date().getFullYear() +
287275
' Materialize\n * MIT License (https://raw.githubusercontent.com/materializecss/materialize/master/LICENSE)\n */',
288276
linebreak: true
@@ -315,8 +303,8 @@ module.exports = function(grunt) {
315303
options: {
316304
port: 9001,
317305
protocol: 'http',
318-
middleware: function(connect, options, middlewares) {
319-
middlewares.unshift(function(req, res, next) {
306+
middleware: function (connect, options, middlewares) {
307+
middlewares.unshift(function (req, res, next) {
320308
res.setHeader('Access-Control-Allow-Origin', '*');
321309
res.setHeader('Access-Control-Allow-Credentials', true);
322310
res.setHeader(
@@ -343,13 +331,16 @@ module.exports = function(grunt) {
343331
grunt.loadNpmTasks('grunt-text-replace');
344332
grunt.loadNpmTasks('grunt-banner');
345333
grunt.loadNpmTasks('grunt-rename-util');
346-
grunt.loadNpmTasks('grunt-browser-sync');
347334
grunt.loadNpmTasks('grunt-contrib-jasmine');
348335
grunt.loadNpmTasks('grunt-postcss');
349336
grunt.loadNpmTasks('grunt-webpack');
350337
grunt.loadNpmTasks('grunt-contrib-connect');
351338

352339
// define tasks
340+
grunt.registerTask('monitor', ['concurrent:monitor']); // DEV
341+
grunt.registerTask('sass_compile', ['sass:gh', 'sass:bin', 'postcss:bin']);
342+
grunt.registerTask('jas_test', ['connect', 'jasmine']);
343+
grunt.registerTask('test', ['webpack:dev', 'sass_compile', 'jas_test']);
353344
grunt.registerTask('release', [
354345
'replace:version', // before webpack
355346
'sass:expanded',
@@ -368,18 +359,4 @@ module.exports = function(grunt) {
368359
'rename:rename_src',
369360
'rename:rename_compiled'
370361
]);
371-
372-
grunt.registerTask('sass_compile', ['sass:gh', 'sass:bin', 'postcss:bin']);
373-
grunt.registerTask('monitor', ['concurrent:monitor']); // DEV
374-
grunt.registerTask('test', ['webpack:dev', 'sass_compile', 'connect', 'jasmine']);
375-
grunt.registerTask('jas_test', ['connect', 'jasmine']);
376-
377-
grunt.registerTask('test_repeat', function() {
378-
const tasks = ['connect'];
379-
const n = 30;
380-
for (let i = 0; i < n; i++) {
381-
tasks.push('jasmine');
382-
}
383-
grunt.task.run(tasks);
384-
});
385362
};

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2014-2023 Materialize
3+
Copyright (c) 2014-2024 Materialize
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)