-
Notifications
You must be signed in to change notification settings - Fork 2
Develop
题叶 edited this page May 28, 2017
·
3 revisions
This demo itself is a based on Stack Editor, so you can clone this repo and try.
- Get demo repository
git clone git@github.com:Cirru/stack-editor.git
cd stack-editor
- Render
target/dev.html
export deps=`boot show -c` # prepare classpath for Lump
env=dev lumo -Kc $deps:src/ -i tasks/render.cljs # render dev.html
- Start editor server
npm i -g stack-editor
stack-editor
and a new window for another watching task:
boot dev
- Open the page
Open target/dev.html
with an HTTP server, then you will see the editor.
npm i -g http-server
http-server -c-1 target/
boot build-advanced
export deps=`boot show -c`
rm .lumo_cache/stack_editor_SLASH_* # optional, remove Lumo caches
lumo -Kc $deps:src/ -i tasks/render.cljs
webpack
# bash tasks/rsync.sh