jupl / ingob

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ingob

About

This is a template for creating and developing ClojureScript applications with Reagent and re-frame.

Variants

Goals and Features

  • 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
  • Standalone asset builds
  • Standalone devcards builds
  • Linting and code analyzing can be checked

Quick Start

  1. Follow the instructions for installing Boot
  2. Clone/download this repository
  3. Run one of tasks defined below. If this is your first time using this dependencies will automatically be downloaded.
  4. 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.

Project structure

Directories/filesDescription
resources/public/**Static assets or files that map to a built file
resources/public/**/*.cljs.ednDefine a JS file that will be compiled from src
src/**/*.cljsClojureScript source files
src/**/*_test.cljsClojureScript test files
src/app/config.cljsSettings that can be set by the build tool using :closure-defines

Tasks

boot dev [-d] [-p PORT]

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)

boot build

Create a production build with optimizations. Devcard related items are omitted.

boot serve build [-p PORT]

Create a production build with optimizations, and serve on a static server. Devcard related items are omitted.

boot devcards

Create a standalone build of devcards only, ready to share.

boot test

Run all CLJS tests once. If tests are defined with devcards, those are included.

boot watch test

Run all CLJS tests once and run again on file changes. If tests are defined with devcards, those are included.

boot analyze

Check and analyze source code.

About


Languages

Language:Clojure 95.1%Language:HTML 4.9%