A project is the map you get when you pprint it. A view of a project is the map 
you get when you pprint it with the corresponding profile (with-profiles). 

A CLJS lib is a project too, but you only use the CLJS subset of CLJS, a part 
from macros, because you're targeting the JS platform only (being the JS engine 
of the browser or node.js)

If you're targeting the JVM platform only, you're creating a CLJ lib. If you're 
targeting both the platforms you have a twofold scenario:

- the CLJ code implements the server side and the CLJS code implements the 
client side
- you're writing a portable lib, which is a lib which can run on both platform 
without modification in the source code.

The reference to phantom is included in the clojurescript.test lib, which is 
both a project and a CLJS lib too.

HIH
mimmo


On Jan 15, 2014, at 7:12 PM, gvim <[email protected]> wrote:

> When you say "Clojurescript lib" do you mean a project because your example 
> begins with starting a project, not a lib. I understand a lib to mean 
> something included in a project or web app, not the project/app itself. These 
> things can confuse a beginner. I also have no idea, from the git notes, how 
> this lib/app references PhantomJS as there are no instructions as to where to 
> locate the phantom.js file. Of course I may be missing the obvious but .... 
> I'm a beginner :)
> 
> gvim
> 
> On 13/01/2014 15:53, Mimmo Cosenza wrote:
>> I just published to clojars the 0.1.1 release of cljs-start lein
>> template to create a batteries included Clojurescript lib.
>> 
>> https://github.com/magomimmo/cljs-start
>> 
>> This release uses lein profiles (:user, :dev, :simple and :advanced) to
>> keep the corresponding CLJS builds separated from each other (thanks so
>> much to Laurent Petit for the suggestion).
>> 
>> quick start:
>> 
>> lein new cljs-start wonderful-lib
>> cd wonderful-lib
>> lein compile
>> lein repl
>> (run)
>> (browser-repl)
>> 
>> Then visit the localhost:3000 and after the connection is established
>> (few moments) you can start repling in CLJS with your browser.
>> 
>> Quick start with latest Eclipse/CCW (Thanks to Laurent Petit):
>> 
>> 1. File -> New Project -> Clojure Project:
>> - project name: wonderful-lib
>> - Leingen template: cljs-start
>> Click Finish
>> 2. Right Click on wonderful-lib in the Package Explorer -> Leiningen ->
>> Launch Headless REPL for the project
>> Once in the REPL:
>> (run)
>> (browser-repl)
>> 
>> Then visit the localhost:3000 and after the connection is established
>> (few moments) you can start repling in CLJS with your browser
>> 
>> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to