Comments (9)
I would definitely take inspiration from boot about task options: https://github.com/boot-clj/boot/wiki/Task-Options-DSL
from calvin.
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.
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.
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.
I think this is what we were looking for 😀 https://github.com/juxt/mach
from calvin.
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.
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.
from calvin.
right building clojurescript without relying on the java . Sounds good let me know how it goes
from calvin.
Related Issues (11)
- Fix running repls without a project.clj HOT 1
- `calvin deps` prints * chars forever on fail HOT 4
- Can calvin fetch npm dependencies? If possible, how? HOT 5
- Consider clj and tools.deps.alpha for dep resolution HOT 1
- Some project.clj files not readable/error not friendly? HOT 1
- Read :source-paths from project.clj HOT 2
- use the namespace cljs.js to compile cljs to js
- implement the new command from lein HOT 1
- Is it possible to compile cljs files with calvin? HOT 3
- Where's the guide?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from calvin.