Skip to content

Commit

Permalink
Update example project
Browse files Browse the repository at this point in the history
  • Loading branch information
arttuka committed Mar 10, 2022
1 parent b2c6879 commit 6cad5d8
Show file tree
Hide file tree
Showing 8 changed files with 175 additions and 89 deletions.
4 changes: 0 additions & 4 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

Example project demonstrating `arttuka/reagent-material-ui`. Server will run at http://localhost:9500/

If you're running this example with NPM deps,
you can also uncomment the `example.data-grid` require
and its use in `core.cljs` to see an example of `@mui/x-data-grid`.

### Run with Figwheel Main

#### Leiningen + CLJSJS deps
Expand Down
2 changes: 1 addition & 1 deletion example/deps.edn
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{:paths ["src" "target" "resources"]
:deps {arttuka/reagent-material-ui {:mvn/version "5.4.3-0"
:deps {arttuka/reagent-material-ui {:mvn/version "5.5.0-0"
#_#_:exclusions [arttuka/reagent-material-ui-js]}
cljsjs/react {:mvn/version "17.0.2-0"}
cljsjs/react-dom {:mvn/version "17.0.2-0"}
Expand Down
235 changes: 159 additions & 76 deletions example/package-lock.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"dependencies": {
"@emotion/react": "^11.7.1",
"@emotion/react": "^11.8.2",
"@emotion/styled": "^11.6.0",
"@mui/lab": "5.0.0-alpha.70",
"@mui/material": "5.4.3",
"@mui/x-data-grid": "5.5.1",
"@mui/lab": "5.0.0-alpha.72",
"@mui/material": "5.5.0",
"@mui/x-data-grid": "5.6.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-transition-group": "^4.4.2",
"shadow-cljs": "2.16.12"
"shadow-cljs": "2.17.8"
},
"scripts": {
"watch": "shadow-cljs watch dev"
},
"devDependencies": {
"webpack": "^5.69.0",
"webpack": "^5.70.0",
"webpack-cli": "^4.9.2"
}
}
2 changes: 1 addition & 1 deletion example/project.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(defproject reagent-material-ui-example "1.0.0"
:dependencies [[org.clojure/clojure "1.10.3"]
[org.clojure/clojurescript "1.11.4"]
[arttuka/reagent-material-ui "5.4.3-0"
[arttuka/reagent-material-ui "5.5.0-0"
#_#_ :exclusions [arttuka/reagent-material-ui-js]]
[cljsjs/react "17.0.2-0"]
[cljsjs/react-dom "17.0.2-0"]]
Expand Down
2 changes: 1 addition & 1 deletion example/shadow-cljs.edn
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{:dependencies [[reagent "1.1.0"]
[arttuka/reagent-material-ui "5.4.3-0"]]
[arttuka/reagent-material-ui "5.5.0-0"]]
:source-paths ["src"]
:builds {:dev {:target :browser
:output-dir "resources/public/js"
Expand Down
4 changes: 4 additions & 0 deletions example/src/deps.cljs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{:foreign-libs
[{:file "x-data-grid-mock.js"
:provides ["@mui/x-data-grid"]
:global-exports {"@mui/x-data-grid" MuiXDataGrid}}]}
3 changes: 3 additions & 0 deletions example/src/x-data-grid-mock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
var MuiXDataGrid = {
DataGrid: function() { return "Data Grid is not available with CLJSJS deps"; }
};

0 comments on commit 6cad5d8

Please sign in to comment.