Liking cljdoc? Tell your friends :D

License Build Deploy Clojars

clj-monaco

A ClojureScript library for Monaco Editor.

STATUS: Pre-alpha, in design and prototyping phase.

Quick Start Guide

Add the following dependency in your project:

;; project.clj or build.boot
[clj-monaco "RELEASE"]

;; deps.edn
{:deps {clj-monaco {:mvn/version "RELEASE"}}}

Examples

You can see the online demo here and full example here.

Requirements

# Install npm deps
$ npm i

Development

# Run nREPL & connect from your IDE
$ make dev

# Application: http://localhost:3000 or http://localhost:3000/index.html
# Tests: http://localhost:3001/test/ or http://localhost:3001/test/index.html
# REPL: nrepl://localhost:7888

Testing

# Run tests with shadow-cljs via Chrome
$ npx run-s monaco:build test:watch

# Run tests with karma via Chrome Headless
$ make test

Deploy

# create a new git tag (available types `minor`, `major`)
$ make patch

# push a new git tag
$ make release

Available commands

$ make help
help                           Show help
dev                            Run app in dev mode
clean                          Clean
lint                           Run linter
test                           Run tests
serve                          Run local server
build                          Build app
jar                            Build jar
init                           Init first version
patch                          Increment patch version
minor                          Increment minor version
major                          Increment major version
install                        Install locally
release                        Release a new version
deploy                         Deploy to clojars

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close