Skip to content

Commit

Permalink
Version 5.0.0-alpha.27-1
Browse files Browse the repository at this point in the history
  • Loading branch information
arttuka committed Mar 21, 2021
1 parent 316fee2 commit 6e9ab3f
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ jobs:
env:
CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }}
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }}
run: lein deploy
run: ./scripts/deploy.sh
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

See [Material UI changelog](https://github.com/mui-org/material-ui/blob/next/CHANGELOG.md) for changes in Material UI.

## 5.0.0-alpha.27-1

**[compare](https://github.com/arttuka/reagent-material-ui/compare/v5.0.0-alpha.27-0...v5.0.0-alpha.27-1)**

- Move packaged Material UI to a separate dependency so it can be excluded
- Add source maps to dev versions of packaged Material UI
- Remove optional dependency of `@material-ui/lab` from `deps.cljs`

## 5.0.0-alpha.27-0

**[compare](https://github.com/arttuka/reagent-material-ui/compare/v5.0.0-alpha.20-0...v5.0.0-alpha.27-0)**
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Their examples are very good. and this library tries to follow the original idea

To add Material UI to an existing Reagent project, just add this library to your dependencies:
```
[arttuka/reagent-material-ui "5.0.0-alpha.27-0"]
[arttuka/reagent-material-ui "5.0.0-alpha.27-1"]
```

Most of the library is in the form of regular Reagent components. Each component is contained in a namespace that mirrors
Expand Down Expand Up @@ -43,6 +43,13 @@ See the example project for a usage example.
If you want to use another date library, you can use [date-fns](https://date-fns.org/) adapters.
The adapters from Material-UI Lab are not included in this library.

#### Using npm dependencies with Figwheel Main

To use npm dependencies with Figwheel Main, you need to exclude prebuilt JS files (React from CLJSJS and Material UI from this library).
To do so, add these exclusions to your dependency. See the example project for working configuration.

[arttuka/reagent-material-ui "5.0.0-alpha.27-1" :exclusions [cljsjs/react cljsjs/react-dom cljsjs/react-dom-server arttuka/reagent-material-ui-js]]

#### Material UI component names with shadow-cljs

The compiler used by shadow-cljs will remove local function names, causing most Material UI component to
Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject arttuka/reagent-material-ui "5.0.0-alpha.27-0"
(defproject arttuka/reagent-material-ui "5.0.0-alpha.27-1"
:description "Reagent wrapper library for Material UI v5 alpha"
:url "https://github.com/arttuka/reagent-material-ui"
:license {:name "Eclipse Public License 2.0"
Expand Down
12 changes: 12 additions & 0 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

set -euo pipefail

main_version=$(head -n1 "./project.clj" | cut -d' ' -f3)
sub_version=$(head -n1 "./reagent-material-ui-js/project.clj" | cut -d' ' -f3)

if [[ "$main_version" == "$sub_version" ]]; then
(cd reagent-material-ui-js; lein deploy;)
fi

lein deploy

0 comments on commit 6e9ab3f

Please sign in to comment.