Skip to content

oakmac/cljs-cheatsheet

This branch is 1 commit ahead of master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9f1f4c3 · Jul 11, 2023

History

93 Commits
Feb 20, 2023
Feb 20, 2023
May 10, 2019
Feb 20, 2023
Jan 31, 2021
Jan 10, 2020
Feb 15, 2016
Jan 12, 2020
Feb 21, 2023
Feb 15, 2016
Apr 18, 2020
Jan 10, 2020
Mar 29, 2016
Feb 21, 2023
Feb 20, 2023
Feb 15, 2016
Apr 18, 2020
Jul 11, 2023

Repository files navigation

A ClojureScript Cheatsheet

This project produces the cheatsheet at cljs.info/cheatsheet

Design

You can read about some of the design decisions that went into the cheatsheet here.

Development Setup

First time setup

Install Leiningen, Node.js, and Yarn or use nix-shell from the project root.

# install node_modules
yarn install

Development workflow

You may wish to run these commands in separate console tabs / screens.

# does two things:
# - compiles LESS into CSS whenever a less/*.less file changes
# - builds public/docs.json whenever a docfiles/*.cljsdoc file changes
npx grunt watch

# run a local web server on port 9224
# the port is configurable and defaults to 8888 if not provided
node server.js 9224

# compile ClojureScript files
lein clean && lein cljsbuild auto

# build public/index.html
# NOTE: app.js is generated from "lein cljsbuild auto" above
node app.js

# create a build into the 00_build directory
yarn run build-release

License

MIT License