Giter Club home page Giter Club logo

boot-cljx's People

Contributors

deraen avatar micha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

boot-cljx's Issues

reloading cljx files

https://github.com/boot-clj/boot/wiki/Repl-reloading works fine for adding the src paths to .clj files to be reloaded, but doesn't pick up changed .cljx files since they are compiled to a tmp directory. Is there a way to get a reference to the tmp directory, or maybe to set-refresh-dirs to be (conj src-paths cljx-target-dir) inside the cljx task?

Handle removed files

I wonder what happens if a .cljx file is removed. I think resulting .clj and .cljs files are left on fileset.

I should test this.

Exception when using v.2.1.2

I get the following exception when running cljx task with boot-cljx version 2.1.2:

clojure.lang.Compiler$CompilerException: java.io.FileNotFoundException: Could not locate boot/repl__init.class or boot/repl.clj on classpath: , compiling:(deraen/boot_cljx.clj:1:1)
          java.io.FileNotFoundException: Could not locate boot/repl__init.class or boot/repl.clj on classpath:
                                    ...
                   clojure.core/load/fn                          core.clj: 5641
                      clojure.core/load                          core.clj: 5640
                                    ...
                  clojure.core/load-one                          core.clj: 5446
               clojure.core/load-lib/fn                          core.clj: 5486
                  clojure.core/load-lib                          core.clj: 5485

This is with latest boot rc9.

I can reproduce this issue with saapas.
Everything works fine with boot-cljx version 2.1.1.

cljx middleware

this isn't an issue with the boot task persay, but would you add middleware between the repl and cider to compile cljx?

i have

(swap! boot.repl/*default-dependencies*
       concat '[[cider/cider-nrepl "0.8.1"]])

(swap! boot.repl/*default-middleware*
       conj 'cider.nrepl/cider-middleware)

in .profile.boot

assuming something similar could be done with cljx?

Error handling

It'd be nice to have some basic validation of the output files.
Not sure how that could be done without a significant performance penalty.

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.