Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joakin/cljs-browser-repl
A ClojureScript REPL and tutorial in your browser!
https://github.com/joakin/cljs-browser-repl
browser clojurescript repl tutorial web
Last synced: 2 months ago
JSON representation
A ClojureScript REPL and tutorial in your browser!
- Host: GitHub
- URL: https://github.com/joakin/cljs-browser-repl
- Owner: joakin
- Created: 2015-08-06T10:05:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-24T11:24:44.000Z (over 7 years ago)
- Last Synced: 2024-10-16T19:27:33.920Z (3 months ago)
- Topics: browser, clojurescript, repl, tutorial, web
- Language: Clojure
- Homepage: http://chimeces.com/cljs-browser-repl/
- Size: 2.68 MB
- Stars: 36
- Watchers: 5
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cljs-browser-repl
A clojurescript repl in your browser! 😱
Visit the deployed page at
[chimeces.com/cljs-browser-repl](http://chimeces.com/cljs-browser-repl/).![Repl](https://i.imgur.com/UWmycXw.png)
![Repl doc & autosize input](https://i.imgur.com/gOC4otV.png)## Current status
- [x] Repl implemented
- What do we do with `require` and friends?
- Repl UI
* [x] History
* [x] Auto scroll bottom
* [x] Auto-size text input
* [x] Don't submit unreadable forms (insert new-lines)
* [x] Shift+enter makes new line
* Navigate history
* [ ] From text input going up/down.
* [x] Tapping a form/result should populate the input with it. (Also works selecting some text)
* [ ] Max-height for the text-input.
* Other crazy things
* Rendering of other types of forms in the repl history (read meta or `:type`, render as appropiate).
* [x] Markdown
* [ ] Image url
* [x] HTML
* Load history contents from:
* [x] gist id
* [x] url
* [ ] drag file into repl
* [ ] Save history contents to gist/url or download file
* [ ] Edit the history in the repl.
* Loading libraries from cljsjs or somewhere else.
* Provide default utilities in the repl (for creating a floating movable iframe to eval in? something like that?).
* Add lessons support (load lesson exercises, check responses for match, move to next lesson).## Contributing
Please do.
Needs java, leiningen, node & npm.
### In dev
`rlwrap lein figwheel` Will start the dev server and cljs compilation.
In another terminal do `npm start` for kicking off the style builder.
Do not commit the `resources/public/style.css` or
`resources/public/js/compiled/cljs_browser_repl.js`, I'll update those when
making a deployment.### For deploying
In general I'll deploy so don't commit the previously mentioned assets.
Instructions are:Generating js: `lein clean && lein cljsbuild once min`
Generating css: `npm run build`
For deploying use git subtree to push the `resources/public` subtree to the
branch `gh-pages`.## License
Copyright © 2015 Joaquin Oltra
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.