This is a boilerplate project for developing client-side code using ClojureScript. Flavors:
- Follow the instructions for installing Boot
- Clone/download this repository
- Start running tasks as described below in the tasks section
closcri/ ├─ resources/ # Files to be included in build │ ├─ assets/ # Static files │ ├─ app.cljs.edn # Application entry point │ ├─ devcards.cljs.edn # Devcards entry point │ ├─ devcards.html # HTML to present Devcards │ └─ index.html # HTML to present application ├─ src/ │ └─ projectname/ # Project namespace │ ├─ app/ # Application namespace │ │ └─ main.cljs # Application entry point │ └─ common/ # Shared code namespace │ ├─ config.cljc # Configuration data/functions │ ├─ devcards.cljs # Devcards entry point │ └─ reload.cljs # Helpers for hot reload ├─ boot.properties # Boot properties └─ build.boot # Tasks and dependencies for project
When JavaScript code is built, entry points are defined by the .cljs.edn
file inside the resources/
directory. The entry point files reference namespaces and functions in the src/
directory.
Tasks can be executed in the following manner:
boot [command]
Examples:
boot dev -s -p 8000 boot build
Create a development build with source maps.
- If you want to include Devcards, use the
-d
option. - If you want to run a local server with live updates and a REPL, use the
-s
option. The-p
option is also available to specify the port number.
Create a production build with optimizations.
Create a production build with optimizations, and serve on a static server.
Create a standalone build of devcards only.
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.
- Language
- Development Tools
- Build Tools