GithubHelp home page GithubHelp logo

Comments (9)

arichiardi avatar arichiardi commented on June 24, 2024

I would definitely take inspiration from boot about task options: https://github.com/boot-clj/boot/wiki/Task-Options-DSL

from calvin.

arichiardi avatar arichiardi commented on June 24, 2024

So I have had this idea for a while, what if we specify tasks and their options with data? I am trying to push this in boot as well, but, I think it would be valuable in any (clojure) build tool.

This is what is looks like (I have a macro ready for parsing this and creating boot tasks, but of course it would need some change for calvin tasks).

from calvin.

eginez avatar eginez commented on June 24, 2024

that's an interesting idea. How do you envision we would share configurations from different tasks, when one or more keys need to be different, would there be any sort of inheritance/reuse?

from calvin.

arichiardi avatar arichiardi commented on June 24, 2024

Basically at the moment there is one simple convention: a key in the shared conf contains options for the task it names. Every task is passed the content of the map.

If tasks have same options you will have a shared var (see env which is shared in there). This is also good because you can share with tasks that have different option names but accept basically the same thing ( : dependency vs :dependencies).

from calvin.

arichiardi avatar arichiardi commented on June 24, 2024

I think this is what we were looking for 😀 https://github.com/juxt/mach

from calvin.

eginez avatar eginez commented on June 24, 2024

In essence yes. I think it's a good idea to follow the target/task philosophy. However one of my goals is to have a pure cljs compiler and the above project seems to be relying on the jvm to do the actual build?.
But overall I like your idea of have options for each task and the developer can create new tasks or use the core ones

from calvin.

eginez avatar eginez commented on June 24, 2024

FYI I just pushed a branch where I am using the bootstrapped compiler to compile very simple forms, so far so good, however I am still researching if we are going to need to use this https://github.com/google/closure-compiler-js

from calvin.

arichiardi avatar arichiardi commented on June 24, 2024

from calvin.

eginez avatar eginez commented on June 24, 2024

right building clojurescript without relying on the java . Sounds good let me know how it goes

from calvin.

Related Issues (11)

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.