This is a template for creating and developing ClojureScript applications with Reagent and re-frame.
- Baseline yet featureful environment for working with Reagent and re-frame
- Use Boot for easy extensibility and customization
- Development tools/setup out of the box
- Live reloading, hot loading
- Source maps
- REPL using Dirac
- Testing and test watching
- Devcards included (can be used with testing)
- Integration with Redux DevTools extension available
- Standalone asset builds
- Standalone devcards builds
- Linting and code analyzing can be checked
- Follow the instructions for installing Boot
- Clone/download this repository
- Run one of tasks defined below. If this is your first time using this dependencies will automatically be downloaded.
- View project structure and customize
build.boot
to fit your needs.
For example, you can run boot dev
to start the development environment. From there you can visit http://localhost:3000
to view the current build and http://localhost:3000/devcards.html
to view devcards.
Directories/files | Description |
---|---|
resources/public/** | Static assets or files that map to a built file |
resources/public/**/*.cljs.edn | Define a JS file that will be compiled from src |
src/**/*.cljs | ClojureScript source files |
src/**/*_test.cljs | ClojureScript test files |
src/app/config.cljs | Settings that can be set by the build tool using :closure-defines |
Start the development server complete with live updates, source maps, REPL, and devcards. If you want to omit devcards use the boot -d
option. To run the server under a different port number use the -p
option. (example to run server in port 8000: boot dev -p 8000
)
Create a production build with optimizations. Devcard related items are omitted.
Create a production build with optimizations, and serve on a static server. Devcard related items are omitted.
Create a standalone build of devcards only, ready to share.
Run all CLJS tests once. If tests are defined with devcards, those are included.
Run all CLJS tests once and run again on file changes. If tests are defined with devcards, those are included.
Check and analyze source code.