mihneadb / cljs-webapp Goto Github PK
View Code? Open in Web Editor NEWLein template for cljs webapps.
License: Eclipse Public License 1.0
Lein template for cljs webapps.
License: Eclipse Public License 1.0
Right now, if you try to create a new app inside an existing dir, you will get this output:
Generating fresh cljs-webapp project..
Could not create directory /tmp/app. Maybe it already exists?
Start right away with `lein cljsbuild auto dev` and check out resources/public/index.html!
It should only print the error message.
I created a project and changed the version of the ClojureScript dependency to 0.0-2080 and the build fails with the following exception:
$ lein cljsbuild auto dev
Compiling ClojureScript.
Compiling "resources/public/js/cljs.js" from ["src-cljs"]...
Compiling "resources/public/js/cljs.js" failed.
Exception in thread "main" java.lang.AssertionError: Assert failed: :output-dir "/home/fm/tmp/bar/target/cljsbuild-compiler-0" must specify a directory in :output-to's parent "/home/fm/tmp/bar/resources/public/js" if optimization setting applied
(same-or-subdirectory-of? (absolute-parent output-to) output-dir)
at cljs.closure$check_source_map.invoke(closure.clj:1024)
at cljs.closure$build.invoke(closure.clj:1063)
at cljs.closure$build.invoke(closure.clj:1047)
at cljsbuild.compiler$compile_cljs$fn__3026.invoke(compiler.clj:58)
at cljsbuild.compiler$compile_cljs.invoke(compiler.clj:57)
at cljsbuild.compiler$run_compiler.invoke(compiler.clj:156)
at user$eval3152$iter__3155__3159$fn__3160.invoke(form-init767779977473673648.clj:1)
at clojure.lang.LazySeq.sval(LazySeq.java:42)
at clojure.lang.LazySeq.seq(LazySeq.java:60)
at clojure.lang.RT.seq(RT.java:484)
at clojure.core$seq.invoke(core.clj:133)
at clojure.core$dorun.invoke(core.clj:2780)
at clojure.core$doall.invoke(core.clj:2796)
at user$eval3152.invoke(form-init767779977473673648.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:6619)
at clojure.lang.Compiler.eval(Compiler.java:6609)
at clojure.lang.Compiler.load(Compiler.java:7064)
at clojure.lang.Compiler.loadFile(Compiler.java:7020)
at clojure.main$load_script.invoke(main.clj:294)
at clojure.main$init_opt.invoke(main.clj:299)
at clojure.main$initialize.invoke(main.clj:327)
at clojure.main$null_opt.invoke(main.clj:362)
at clojure.main$main.doInvoke(main.clj:440)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at clojure.lang.Var.invoke(Var.java:419)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.Var.applyTo(Var.java:532)
at clojure.main.main(main.java:37)
I think that it's the source-map causing the problem. Without it, it seems to work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.