Hi, I recently finished hacking on a small project, that helps to build entire 
web application
(with css, images, etc, not just .cljs files), and think it might be useful for 
others.

The suggested workflow is following:

1) Define assets component(s)

com/example/app/assets.edn

{:dependencies ["com/twitter/bootstrap"]
 :css ["app.css"]
 :files ["icons.png", "background.png"]
 :page {:main-ns com/example/app/main
        :body "index.html"}}

2) Then, just build it

$ lein assets page com/example/app

You get an entire single page application ready to be hosted from anywhere in 
the web. 

3) Another options is to start development server

$ lein assets server


There are some differences with cljsbuild workflow, namely 
You can use javascript files just like you use .cljs files
You specify namespace as a build entry point
I'd like to note that this project is a hack. No new features are planned for 
near future, although
bugs will be fixed, dependencies maintained and patches accepted.
Despite the fact, that builder was implemented with ease of extension and 
customization in mind,
the way to do it is not documented.

Anyway, I hope you'll find it useful. Here are links

leiningen plugin - https://github.com/dar-clojure/assets-lein
assets.edn spec - https://github.com/dar-clojure/assets

-- 
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.

Reply via email to