Simplify playground code and add snippets. (#136)

* Add instructions for how to run the playground locally.
* Make it easier to select backend in the elm code.
* Use scrolling for long scripts.
* Fix bug, send code to backend on connect, don't auto play on code changes.
* Compile and cache snippets.
This commit is contained in:
David Himmelstrup 2020-08-22 10:35:25 +08:00 committed by GitHub
commit c1c4996e63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 219 additions and 203 deletions

View file

@ -82,7 +82,11 @@ jobs:
- name: Playground
run: |
CWD=`pwd`
cd reanimate-playground/viewer-elm
stack build
cd reanimate-playground
stack build
stack exec --cwd ../ playground snippets reanimate-playground/snippets > viewer-elm/dist/snippets.js
cd viewer-elm
npm install
npm run build
mkdir $CWD/hpc/playground