A structured editor to generate a subset of Clojure code
Clojure Other
Latest commit 21ddbca Feb 24, 2017 @jiyinyiyong jiyinyiyong update respo 0.3.38

README.md

Stack Editor

ClojureScript editor inspired by Clouditor.

Editor http://repo.cirru.org/stack-editor/

Keyboard-Shortcuts.

Workspace Definitions Command Palette

Usage

I have to say it's quite hard to pick up. You may need to watch the video first: https://www.youtube.com/watch?v=uCNJUxGVcqs

The template project in the video is: https://github.com/mvc-works/stack-workflow

I've listed the keyboard shortcuts here, you will need it: https://github.com/Cirru/respo-cirru-editor/wiki/Keyboard-Shortcuts

Stack Editor is built on top of Boot. You can find more about the task at: https://github.com/Cirru/boot-stack-server

Run the demo

This demo itself is a based on Stack Editor, so you can clone this repo and try.

git clone git@github.com:Cirru/stack-editor.git
cd stack-editor
source tasks/class-path.cljs # prepare classpath for Lump
op=compile lumo -Kc $boot_deps:src/ -i tasks/server.cljs # just compile code
env=dev lumo -Kc $boot_deps:src/ -i tasks/render.cljs # render dev.html
lumo -Kc $boot_deps:src/ -i tasks/server.cljs # run server at localhost:7010

Open target/dev.html with an HTTP server, then you will see the editor.

Options

For remote working, there are two parameters:

http://repo.cirru.org/stack-editor/?host=tiye.me&port=7011

Default values are {"host" "localhost", "port" "7010"}.

Develop

https://github.com/mvc-works/stack-workflow

Build steps:

boot build-advanced
export boot_deps=`boot show -c`
rm .lumo_cache/stack_editor_SLASH_*
lumo -Kc $boot_deps:src/ -i tasks/render.cljs
webpack
bash tasks/rsync.sh

License

MIT