https://github.com/vharmain/minesweeper-cljs
Minesweeper clone using ClojureScript, Reagent and shadow-cljs
https://github.com/vharmain/minesweeper-cljs
clojurescript create-cljs-app reagent shadow-cljs
Last synced: 12 days ago
JSON representation
Minesweeper clone using ClojureScript, Reagent and shadow-cljs
- Host: GitHub
- URL: https://github.com/vharmain/minesweeper-cljs
- Owner: vharmain
- Created: 2020-02-08T17:10:52.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-18T07:54:30.000Z (11 months ago)
- Last Synced: 2025-03-30T11:12:06.196Z (about 1 month ago)
- Topics: clojurescript, create-cljs-app, reagent, shadow-cljs
- Language: Clojure
- Homepage:
- Size: 518 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# minesweeper-cljs
[https://vharmain.github.io/minesweeper-cljs/](https://vharmain.github.io/minesweeper-cljs/)
This project was bootstrapped with [Create CLJS App](https://github.com/filipesilva/create-cljs-app).
## Available Scripts
In the project directory, you can run:
### `yarn start`
Runs the app in development mode.
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
The page will reload if you make edits.The app uses [Reagent](https://reagent-project.github.io), a minimalistic interface between ClojureScript and React.
You can use existing npm React components directly via a [interop call](http://reagent-project.github.io/docs/master/InteropWithReact.html#creating-reagent-components-from-react-components).Builds use [Shadow CLJS](https://github.com/thheller/shadow-cljs) for maximum compatibility with NPM libraries. You'll need a [Java SDK](https://adoptopenjdk.net/) (Version 8+, Hotspot) to use it.
You can [import npm libraries](https://shadow-cljs.github.io/docs/UsersGuide.html#js-deps) using Shadow CLJS. See the [user manual](https://shadow-cljs.github.io/docs/UsersGuide.html) for more information.### `yarn build`
Builds the app for production to the `public` folder.
It correctly bundles all code and optimizes the build for the best performance.Your app is ready to be deployed!
### `yarn lint` and `yarn format`
`yarn lint` checks the code for known bad code patterns using [clj-kondo](https://github.com/borkdude/clj-kondo).
`yarn format` will format your code in a consistent manner using [zprint-clj](https://github.com/clj-commons/zprint-clj).
### `yarn report`
Make a report of what files contribute to your app size.
Consider [code-splitting](https://code.thheller.com/blog/shadow-cljs/2019/03/03/code-splitting-clojurescript.html) or using smaller libraries to make your app load faster.### `yarn server`
Starts a Shadow CLJS background server.
This will speed up starting time for other commands that use Shadow CLJS.