项目作者: dfuenzalida

项目描述 :
An HTML5 Files API demo using shadow-cljs
高级语言: Clojure
项目地址: git://github.com/dfuenzalida/cljs-files-api.git
创建时间: 2020-05-21T00:58:12Z
项目社区:https://github.com/dfuenzalida/cljs-files-api

开源协议:

下载


HTML5 Files API demo using shadow-cljs

Development

Run in developmeent:

  1. yarn run html
  2. yarn shadow-cljs watch app

shadow-cljs will be installed in node_modules/ when you run yarn.

:dev-http specifies that target/ will be served at http://localhost:8080 .

Click on the file selector to feed the page a file. The code will display the filename, size, mime-type and the first 100 bytes of the file.

REPL

After page is loaded, you may also start a REPL connected to browser with:

  1. yarn shadow-cljs cljs-repl app

Release

Compile with optimizations with release sub-command:

  1. yarn shadow-cljs release app
  2. mkdir -p target && cp assets/index.html target/
  3. yarn serve # serving target/ on http://localhost:8080

Read docs for more http://doc.shadow-cljs.org/ .

License

MIT