Giter Site home page Giter Site logo

cljs-boilerplate's People

Contributors

jblomo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

stantont

cljs-boilerplate's Issues

breakout cljs/initializer into separate project

The initializer code, based on the "Garber-Irish implementation" of page init scripts, should be its own project so it can stay general and be useful to other people not using cljs-boilerplate.

Something wrong with -htmlclean

While running the default ant build, I get these strange FNFE:

.../> lein deps
...
.../build> ant
...
-htmlclean:
     [echo] Run htmlcompressor on the HTML
     [echo]  - maintaining whitespace
     [echo]  - removing html comments
     [echo]  - compressing inline style/script tag contents
    [apply] java.io.FileNotFoundException: /Users/danieljomphe/dev/cljs-boilerplate/resources/public/../resources/public/404.html (No such file or directory)
    [apply]     at java.io.FileOutputStream.open(Native Method)
    [apply]     at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
    [apply]     at java.io.FileOutputStream.<init>(FileOutputStream.java:84)
    [apply]     at com.googlecode.htmlcompressor.CmdLineCompressor.main(CmdLineCompressor.java:346)
    [apply] Result: 1
    [apply] java.io.FileNotFoundException: /Users/danieljomphe/dev/cljs-boilerplate/resources/public/../resources/public/index.html (No such file or directory)
    [apply]     at java.io.FileOutputStream.open(Native Method)
    [apply]     at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
    [apply]     at java.io.FileOutputStream.<init>(FileOutputStream.java:84)
    [apply]     at com.googlecode.htmlcompressor.CmdLineCompressor.main(CmdLineCompressor.java:346)
    [apply] Result: 1
    [apply] java.io.FileNotFoundException: /Users/danieljomphe/dev/cljs-boilerplate/resources/public/../resources/public/soy/cljs_boilerplate/core.soy (No such file or directory)
    [apply]     at java.io.FileOutputStream.open(Native Method)
    [apply]     at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
    [apply]     at java.io.FileOutputStream.<init>(FileOutputStream.java:84)
    [apply]     at com.googlecode.htmlcompressor.CmdLineCompressor.main(CmdLineCompressor.java:346)
    [apply] Result: 1

...

Moreover, when I open the index.html file, it displays as a blank page, although it's got some html source code in it.

Allow access to settings from ClojureScript

There are probably many instances in which you'd like to share settings between server side and client side code. Right now settings.clj and settings/custom.clj are only used by server side clojure. All settings should probably not be shared: you don't want to ship your database settings to the client side.

One way to do this might be to use the Closure compiler's @define / --define semantics.

Upgrade to clojure-1.3

In dev mode, we'd like to compile and serve clojurescript inline, that means the rest stack needs to be moved to 1.3.

Remove H5BP build dependency on tools.cljsc

Right now build/build.xml uses tools.cljsc to build the advanced optimized clojurescript. tools.cljsc points to ../clojurescript/bin/cljsc by default, ie a side build of clojurescript. It should point to a script inside the repository that uses lib/ for its jar dependencies on clojurescript.

One way to do this is to make a lein plugin for compiling clojurescript. Another would be to simply copy the bin/cljsc script into the repository, and modify it to use the lib/ jar.

Use maven/lein dependencies for H5BP jars

As @scottjad points out, keeping the jars in the source repo is inefficient. Ideally we should use config/project.properties to set the path of the jars to lib/dev or even modify build.xml if needed. This will also require uploading or finding the maven dependencies for the jars in build/tools.

Use lein to run the build script

Right now, running ant in build/ is the way to compile and compact the resources needed for the app. Ideally, this would be done with a lein command. I want to avoid rewriting the build script as a lein plugin so that we can keep pace with the H5BP project. Is there a way to call ant build steps from lein?

H5BP build scripts don't update css/jss assets in .soy files

To support production mode, the .soy templates need to be updated to refer to the compressed assets, which typically are named by the sha1 of their contents at build time. The relevant build sections are around the replaceregexp elements.

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.