Giter Club home page Giter Club logo

Comments (17)

ckirkendall avatar ckirkendall commented on July 28, 2024

Can you give m some more information on your setup so I can try to reproduce the issue.

I need the versions of the following: Clojure, Lein, and lien-cljsbuild.

from enfocus.

ckirkendall avatar ckirkendall commented on July 28, 2024

If possible can you setup a github repo that I can pull down and look at. In particular I want to see javascript files that are produced.

from enfocus.

dbushenko avatar dbushenko commented on July 28, 2024

This is how my project.clj looks like:

(defproject integrator "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :dependencies [[org.clojure/clojure "1.5.0-RC1"]
                 [compojure "1.1.3"]
                 [lib-noir "0.3.0"]
                 [enfocus "1.0.0-beta2"]
                 [enlive "1.0.1"]
                 [com.mysql/connectorj "5.1.12"]
                 [korma "0.3.0-beta11"]
                 [org.clojure/clojurescript "0.0-1450"]]
  :plugins [[lein-ring "0.7.5"]
                 [lein-cljsbuild "0.2.10"]]
  :ring {:handler integrator.handler/app}
  :profiles
  {:dev {:dependencies [[ring-mock "0.1.3"]]}}

  :aot []
  :source-paths ["src/clj"]
  :cljsbuild {
              :builds {
                       :main {
                              :source-path "src/cljs"
                              :compiler {
                                     :output-to "resources/public/js/main.js"
                                     :warnings true
                                     :optimizations :whitespace
                                     :pretty-print true
                                     :print-input-delimiter false
                                     :output-dir ".clojurescript-output"
                                     :libs ["closure/library/third_party/closure"]
                                     }}}}
  :war {:name "integrator.war"})

I will set up the github repo shortly.

from enfocus.

dbushenko avatar dbushenko commented on July 28, 2024

This is my project: https://github.com/dbushenko/websample

And one question more: when do you plan to release this version? I think Enfocues is fabulous. I have convinced my manager to use Clojure web stack (including Enfocus) for our next project. Can't wait for version 1.0 of Enfocus :-)

from enfocus.

ckirkendall avatar ckirkendall commented on July 28, 2024

I was able to pull down the code and get it to work under optimization advanced. I did have to make one modification to it but this affected both simple and advanced, so I am not sure it is the problem you are seeing. The change I made below was to wait for the load of snippets and templates.

(set! (.-onload js/window) #(em/wait-for-load (mystart))) 

from enfocus.

ckirkendall avatar ckirkendall commented on July 28, 2024

Can you push your main.js compiled under advanced so I can make sure there are no differences from mine.

from enfocus.

dbushenko avatar dbushenko commented on July 28, 2024

No problem, 5 minutes...

from enfocus.

dbushenko avatar dbushenko commented on July 28, 2024

Done. Have a look at /resources/public/js

main.whitespace.js -- compiled with optimizations "whitespace".
main.advanced.js -- compiled with optimizations "advanced".

BTW, may be you may add me to skype? My id is "d.bushenko".

Happy New Year! :-)

from enfocus.

ckirkendall avatar ckirkendall commented on July 28, 2024

What time is it where you are? Is there are reason you are using such an old version of ClojureScript? It looks like I am compiling mine with a newer version even though I am using your project file. Not exactly sure why.

from enfocus.

dbushenko avatar dbushenko commented on July 28, 2024

Hmmm.... I thought I'm using the latest released version. Will search for newer and try again.... Weird....

from enfocus.

ckirkendall avatar ckirkendall commented on July 28, 2024

Clojurescript is bundled with lein-cljsbuild so you don't need to specify it in your dependencies.

from enfocus.

dbushenko avatar dbushenko commented on July 28, 2024

I can't say what's going on, but removing the version line has just broken everything. I'm trying to get the reason, so I can't answer your question right now.

BTW, does it work for you?

from enfocus.

ckirkendall avatar ckirkendall commented on July 28, 2024

Yes it does work for me, I will fork and push up my main.js. You may need
to add the line wait-for-load line. The new version of cljs is faster and
may be hitting the condition before the request has time to load.

CK

On Mon, Dec 31, 2012 at 10:57 AM, dbushenko [email protected]:

I can't say what's going on, but removing the version line has just broken
everything. I'm trying to get the reason, so I can't answer your question.

BTW, does it work for you?


Reply to this email directly or view it on GitHubhttps://github.com//issues/37#issuecomment-11779345.

from enfocus.

dbushenko avatar dbushenko commented on July 28, 2024

Great! Thanks!

from enfocus.

dbushenko avatar dbushenko commented on July 28, 2024

Yes, adding wait-for-load made the script working. Thanks again! :-) Happy New Year!

from enfocus.

ckirkendall avatar ckirkendall commented on July 28, 2024

Sweet! Does this mean I can close the ticket? Also I realized I didn't give you a response on releasing 1.0.0. I will probably be released last Jan or early Feb depending on if any issues are found.

from enfocus.

dbushenko avatar dbushenko commented on July 28, 2024

Yes, no problem with optimizations more.

And thanks again for great work!

from enfocus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.