Re: [ANN] cljs-start with batteries included
Hi, I just updated the cljs-start lein-template to create a cljs lib with batteries included: - directories layout of a cljs lib project - cljsbuild configurations - clojurescript.test configuration and setup - brepl connection The most significant update regards the substitution of the piggieback lib with the austin plugins from Chas Emerick. All the Austin use cases should work as expected (but I did not test them intensively). To create a new cljs lib with batteries included: lein new cljs-start wonderful-lib cd wonderful-lib lein compile lein test To connect the be repl: lein repl Compiling ClojureScript. nREPL server started on port 55101 on host 127.0.0.1 REPL-y 0.2.1 Clojure 1.5.1 Docs: (doc function-name-here) (find-doc part-of-name-here) Source: (source function-name-here) Javadoc: (javadoc java-object-or-class-here) Exit: Control+D or (exit) or (quit) Results: Stored in vars *1, *2, *3, an exception in *e ring.server= Then run the http-server ring.server= (run) 2013-11-18 22:54:42.997:INFO:oejs.Server:jetty-7.6.8.v20121106 2013-11-18 22:54:43.026:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:3000 #Server org.eclipse.jetty.server.Server@3e522509 ring.server= Next create the brepl environment and launch it ring.server= (def repl-env (reset! cemerick.austin.repls/browser-repl-env (cemerick.austin/repl-env))) Browser-REPL ready @ http://localhost:55146/5840/repl/start #'ring.server/repl-env ring.server= (cemerick.austin.repls/cljs-repl repl-env) Type `:cljs/quit` to stop the ClojureScript REPL nil cljs.user= Finally, just visit the localhost:3000 url, wait a moment and then you can go back to brepl in clojurescript for supporting the development of your wonderful cljs lib. HIH Mimmo On Oct 31, 2013, at 11:33 PM, Mimmo Cosenza mimmo.cose...@gmail.com wrote: Hi all, I just create a simple leon-template to create CLJS libs with batteries included: - separation of concerns between the user view and the dev view of the created lib (obtained by using the profiles.clj local to the project - http server and brepl (with piggieback by Chas) to bREPLing with the project (everything is kept separated in the profiles.clj) - unit test lib included (clojurescript.test by Chas) - compilatation included of each build optimisation - test-command already defined for phantoms - and few other minutiae I also started to write a quick README to use it. https://github.com/magomimmo/cljs-start Here is a very quick start lein new cljs-start your-project cd your-project lein compile lein test To connect with the browser lein repl (require '[ring.server :as http]) (http/run) (browser-repl) Now visit localhost:3000 and wait a moment to go back to repl cljs.user (cemerick.cljs.test/run-all-tests) To generate the jar lein jar Everything is just started, so be benevolent with me. Feedback are appreciated, even the bad ones. HIH mimmo signature.asc Description: Message signed with OpenPGP using GPGMail
Re: [ANN] cljs-start with batteries included
Hi Mimmo, I think it is a really nice project, but I was not able to run it successfully: $ lein new cljs-start foo Failed to resolve version for cljs-start:lein-template:jar:RELEASE: Could not find metadata cljs-start:lein-template/maven-metadata.xml in local (/home/shantanukumar/.m2/repository) This could be due to a typo in :dependencies or network issues. If you are behind a proxy, try setting the 'http_proxy' environment variable. Could not find template cljs-start on the classpath. I saw that on Clojars it has only SNAPSHOT versions are uploaded: https://clojars.org/cljs-start/lein-template -- could that be a reason why it does not automatically download the template? I am running Leiningen 2.3.3 with Java 7 on 64-bit Linux. Shantanu On Friday, 1 November 2013 04:03:32 UTC+5:30, Magomimmo wrote: Hi all, I just create a simple leon-template to create CLJS libs with batteries included: - separation of concerns between the user view and the dev view of the created lib (obtained by using the profiles.clj local to the project - http server and brepl (with piggieback by Chas) to bREPLing with the project (everything is kept separated in the profiles.clj) - unit test lib included (clojurescript.test by Chas) - compilatation included of each build optimisation - test-command already defined for phantoms - and few other minutiae I also started to write a quick README to use it. https://github.com/magomimmo/cljs-start Here is a very quick start lein new cljs-start your-project cd your-project lein compile lein test To connect with the browser lein repl (require '[ring.server :as http]) (http/run) (browser-repl) Now visit localhost:3000 and wait a moment to go back to repl cljs.user (cemerick.cljs.test/run-all-tests) To generate the jar lein jar Everything is just started, so be benevolent with me. Feedback are appreciated, even the bad ones. HIH mimmo -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [ClojureScript] [ANN] cljs-start with batteries included
Yeah, yestarday I forgot to publish the release 0.0.1. Sorry about that. I did it this morning. Now it should works. Could you confirm me please? Thanks so much. Mimmo p.s. In the next release I think I'm going to add both :crossovers and :clix in such a way to have a complete starting setup. Have you any more needs to start from? On Nov 1, 2013, at 9:26 AM, Shantanu Kumar kumar.shant...@gmail.com wrote: Hi Mimmo, I think it is a really nice project, but I was not able to run it successfully: $ lein new cljs-start foo Failed to resolve version for cljs-start:lein-template:jar:RELEASE: Could not find metadata cljs-start:lein-template/maven-metadata.xml in local (/home/shantanukumar/.m2/repository) This could be due to a typo in :dependencies or network issues. If you are behind a proxy, try setting the 'http_proxy' environment variable. Could not find template cljs-start on the classpath. I saw that on Clojars it has only SNAPSHOT versions are uploaded: https://clojars.org/cljs-start/lein-template -- could that be a reason why it does not automatically download the template? I am running Leiningen 2.3.3 with Java 7 on 64-bit Linux. Shantanu On Friday, 1 November 2013 04:03:32 UTC+5:30, Magomimmo wrote: Hi all, I just create a simple leon-template to create CLJS libs with batteries included: - separation of concerns between the user view and the dev view of the created lib (obtained by using the profiles.clj local to the project - http server and brepl (with piggieback by Chas) to bREPLing with the project (everything is kept separated in the profiles.clj) - unit test lib included (clojurescript.test by Chas) - compilatation included of each build optimisation - test-command already defined for phantoms - and few other minutiae I also started to write a quick README to use it. https://github.com/magomimmo/cljs-start Here is a very quick start lein new cljs-start your-project cd your-project lein compile lein test To connect with the browser lein repl (require '[ring.server :as http]) (http/run) (browser-repl) Now visit localhost:3000 and wait a moment to go back to repl cljs.user (cemerick.cljs.test/run-all-tests) To generate the jar lein jar Everything is just started, so be benevolent with me. Feedback are appreciated, even the bad ones. HIH mimmo -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups ClojureScript group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescr...@googlegroups.com. Visit this group at http://groups.google.com/group/clojurescript. signature.asc Description: Message signed with OpenPGP using GPGMail
Re: [ClojureScript] [ANN] cljs-start with batteries included
thanks Shantanu! Let me know if you find ant issue. I started commenting both profiles.clj and project.clj to try to explain what each setting is used for. IMHO there is a big open issue regarding lein-cljsbuild: As pointed to me by David Nolen, you need to fill the leaning :source-paths with the set union al all the :source-paths from each cljsbuild to not incur in unexpected behaviour. But if you do it, you loose control on the jar package generated by lein jar task and if you use the :jar true setting for including any cljs source file in the jar package, you'll get a double entry error when you issue the lein jar task. To me this is a something to be solved someway. My personal opinion about that is that I would never see any cljs pathname in any cli directory (and viceversa). Even to see a macros.clj in a cljs dir disturb me a lot. Anyway…. let me know if it works as you expect thanks so much. Mimmo On Nov 1, 2013, at 11:26 AM, Shantanu Kumar kumar.shant...@gmail.com wrote: On Friday, 1 November 2013 15:45:01 UTC+5:30, Magomimmo wrote: Yeah, yestarday I forgot to publish the release 0.0.1. Sorry about that. I did it this morning. Now it should works. Could you confirm me please? It works now. Thanks! Shantanu -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups ClojureScript group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescr...@googlegroups.com. Visit this group at http://groups.google.com/group/clojurescript. -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [ClojureScript] [ANN] cljs-start with batteries included
Hi, It doesn't work for me : lein new cljs-start battery-cljs Retrieving cljs-start/lein-template/0.0.1-SNAPSHOT/lein-template-0.0.1-20131101.074510-2.pom from clojars Retrieving cljs-start/lein-template/0.0.1/lein-template-0.0.1.pom from clojars Retrieving cljs-start/lein-template/0.1.0-SNAPSHOT/lein-template-0.1.0-20131028.235447-1.pom from clojars Retrieving cljs-start/lein-template/0.1.0-SNAPSHOT/lein-template-0.1.0-20131028.235447-1.jar from clojars Generating fresh 'lein new' cljs-start project. Template resource 'leiningen/new/cljs_start/README.MD' not found. After that there is not battery-cljs directory created. Am i doing something wrong or is it just a bug ? On Fri, Nov 1, 2013 at 12:39 PM, Mimmo Cosenza mimmo.cose...@gmail.comwrote: thanks Shantanu! Let me know if you find ant issue. I started commenting both profiles.clj and project.clj to try to explain what each setting is used for. IMHO there is a big open issue regarding lein-cljsbuild: As pointed to me by David Nolen, you need to fill the leaning :source-paths with the set union al all the :source-paths from each cljsbuild to not incur in unexpected behaviour. But if you do it, you loose control on the jar package generated by lein jar task and if you use the :jar true setting for including any cljs source file in the jar package, you'll get a double entry error when you issue the lein jar task. To me this is a something to be solved someway. My personal opinion about that is that I would never see any cljs pathname in any cli directory (and viceversa). Even to see a macros.clj in a cljs dir disturb me a lot. Anyway…. let me know if it works as you expect thanks so much. Mimmo On Nov 1, 2013, at 11:26 AM, Shantanu Kumar kumar.shant...@gmail.com wrote: On Friday, 1 November 2013 15:45:01 UTC+5:30, Magomimmo wrote: Yeah, yestarday I forgot to publish the release 0.0.1. Sorry about that. I did it this morning. Now it should works. Could you confirm me please? It works now. Thanks! Shantanu -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups ClojureScript group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescr...@googlegroups.com. Visit this group at http://groups.google.com/group/clojurescript. -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [ClojureScript] [ANN] cljs-start with batteries included
It seems that you're using the SNAPSHOT version instead of the release one. Probably this has been caused by the fact that yesterday night I forgot to publish the 0.0.1 as a release (I did it this morning). Could you please try the following: rm -rf ~/.m2/repository/cljs-start and try again? Please, let me know if you succeeded Thanks Mimmo On Nov 1, 2013, at 11:54 AM, Deniz Kurucu makka...@gmail.com wrote: Hi, It doesn't work for me : lein new cljs-start battery-cljs Retrieving cljs-start/lein-template/0.0.1-SNAPSHOT/lein-template-0.0.1-20131101.074510-2.pom from clojars Retrieving cljs-start/lein-template/0.0.1/lein-template-0.0.1.pom from clojars Retrieving cljs-start/lein-template/0.1.0-SNAPSHOT/lein-template-0.1.0-20131028.235447-1.pom from clojars Retrieving cljs-start/lein-template/0.1.0-SNAPSHOT/lein-template-0.1.0-20131028.235447-1.jar from clojars Generating fresh 'lein new' cljs-start project. Template resource 'leiningen/new/cljs_start/README.MD' not found. After that there is not battery-cljs directory created. Am i doing something wrong or is it just a bug ? On Fri, Nov 1, 2013 at 12:39 PM, Mimmo Cosenza mimmo.cose...@gmail.com wrote: thanks Shantanu! Let me know if you find ant issue. I started commenting both profiles.clj and project.clj to try to explain what each setting is used for. IMHO there is a big open issue regarding lein-cljsbuild: As pointed to me by David Nolen, you need to fill the leaning :source-paths with the set union al all the :source-paths from each cljsbuild to not incur in unexpected behaviour. But if you do it, you loose control on the jar package generated by lein jar task and if you use the :jar true setting for including any cljs source file in the jar package, you'll get a double entry error when you issue the lein jar task. To me this is a something to be solved someway. My personal opinion about that is that I would never see any cljs pathname in any cli directory (and viceversa). Even to see a macros.clj in a cljs dir disturb me a lot. Anyway…. let me know if it works as you expect thanks so much. Mimmo On Nov 1, 2013, at 11:26 AM, Shantanu Kumar kumar.shant...@gmail.com wrote: On Friday, 1 November 2013 15:45:01 UTC+5:30, Magomimmo wrote: Yeah, yestarday I forgot to publish the release 0.0.1. Sorry about that. I did it this morning. Now it should works. Could you confirm me please? It works now. Thanks! Shantanu -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups ClojureScript group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescr...@googlegroups.com. Visit this group at http://groups.google.com/group/clojurescript. -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. signature.asc Description: Message signed with OpenPGP using GPGMail
[ANN] cljs-start with batteries included
Hi all, I just create a simple leon-template to create CLJS libs with batteries included: - separation of concerns between the user view and the dev view of the created lib (obtained by using the profiles.clj local to the project - http server and brepl (with piggieback by Chas) to bREPLing with the project (everything is kept separated in the profiles.clj) - unit test lib included (clojurescript.test by Chas) - compilatation included of each build optimisation - test-command already defined for phantoms - and few other minutiae I also started to write a quick README to use it. https://github.com/magomimmo/cljs-start Here is a very quick start lein new cljs-start your-project cd your-project lein compile lein test To connect with the browser lein repl (require '[ring.server :as http]) (http/run) (browser-repl) Now visit localhost:3000 and wait a moment to go back to repl cljs.user (cemerick.cljs.test/run-all-tests) To generate the jar lein jar Everything is just started, so be benevolent with me. Feedback are appreciated, even the bad ones. HIH mimmo -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.