Skip to content

Commit b8ff154

Browse files
authored
Merge pull request #562 from materializecss/release-2.2.0
Release 2.2.0
2 parents dda2c95 + 0f32ac5 commit b8ff154

Some content is hidden

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

53 files changed

+3513
-35359
lines changed

.eslintrc

-26
This file was deleted.

.github/workflows/nightly.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
run: |
2323
npm run release
2424
25-
- uses: actions/upload-artifact@v2
25+
- uses: actions/upload-artifact@v4
2626
with:
2727
name: build
2828
path: dist/

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ yarn-error.log*
2525
# Dependency directories
2626
node_modules/
2727

28+
dist
2829
dist/**/*.*
2930
!dist/css/*.css
3031
!dist/css/*.css.map

.prettierrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"printWidth": 100,
3-
"parser": "flow",
3+
"parser": "typescript",
44
"tabWidth": 2,
55
"useTabs": false,
66
"semi": true,

FOR_MAINTAINERS.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ To fully release a new version, you need to have access to the @materializecss o
2020
1. In your local copy of Materialize, go into the dev Branch with `git checkout v2-dev` and pull the newest version
2121
with `git pull origin v2-dev` to have the newest version from the server. Run Tests and check if everything works.
2222

23-
2. Create a new Release branch with `git checkout -b release-2.X.X-alpha`.
24-
In case something happend or needs to be changed during the release it is better to keep the release on its own branch.
23+
2. Create a new Release branch with `git checkout -b release-2.X.X`.
24+
In case something happens or needs to be changed during the release it is better to keep the release on its own branch.
2525

26-
3. Run `npm run release -- --oldver=<current_version> --newver=<new_version>`
27-
What this command does is that it will replace any occurrences of "<current_version>" with the "<new_version>". So for example, if the current release is `1.0.0`, and then the planned release is `1.1.0`, the command would be
28-
```npm run release -- --oldver=1.0.0 --newver=1.1.0```
26+
3. Run `npm version <change-type>`
27+
Where `<change-type> = patch, minor, major`.
28+
[details](https://docs.npmjs.com/updating-your-published-package-version-number)
2929

3030
4. Verify that the version is correctly replaced and files were generated in:
3131
* package.json

README.md

+7-9
Original file line numberDiff line numberDiff line change
@@ -29,31 +29,29 @@
2929
</a>
3030
</p>
3131

32-
## Quickstart
32+
## Getting started
3333
Read the [getting started guide](https://materializeweb.com/getting-started.html) for more information on how to use materialize.
3434

3535
- [Download the latest release](https://github.com/materializecss/materialize/releases/latest) of materialize directly from GitHub. ([Beta](https://github.com/materializecss/materialize/releases/))
3636
- Clone the repo: `git clone https://github.com/materializecss/materialize.git`
3737
- Include the files via [jsDelivr](https://www.jsdelivr.com/package/npm/@materializecss/materialize).
3838
- Install with [npm](https://www.npmjs.com): `npm install @materializecss/materialize` (Beta: `npm install @materializecss/materialize@next`)
3939

40+
## Testing
41+
To run tests locally you first have to build the files and then run the tests. This can be done with the command `npm test`;
42+
To get more info and debug information you can do the following:
43+
run `npx jasmine-browser-runner` then go to the url via browser `http://localhost:8888`. The tests will then run and show detailed feedback.
44+
4045
## Development
4146
The documentation can be found at <https://materializeweb.com>. To run the documentation locally on your machine, you need [Node.js](https://nodejs.org) installed on your computer.
42-
4347
This is the core project with all the components. To see how they are used we recommend using an example project or go to the documentation.
44-
Otherwise, if you want to develop the components itself, the dev process of this core-repo works like this:
45-
```sh
46-
npm install
47-
npm run dev
48-
```
4948

5049
### Running documentation locally
5150
See [Materialize Docs Repo](https://github.com/materializecss/materialize-docs) to see Materialize in Action.
5251

53-
### Documentation for previous releases
52+
### Releases
5453
Previous releases are available [here](https://github.com/materializecss/materialize/releases).
5554

56-
## Release
5755
If you want to release `materialize.css` or `materialize.js` from the latest commit, you can build the files with the following command after `npm install`. See `package.json` to check the current version like `1.0.0`.
5856
```sh
5957
npm run release -- --oldver=<current_version> --newver=<new_version>

ci/compress.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const fs = require('fs');
2-
const archiver = require('archiver');
1+
import fs from 'fs';
2+
import archiver from 'archiver';
33

44
const packageJson = JSON.parse(fs.readFileSync('./package.json').toString());
55

0 commit comments

Comments
 (0)