nervous-systems / serverless-cljs-plugin

Serverless plugin for Clojurescript deployment w/ cljs-lambda
The Unlicense
75 stars 10 forks source link

Shadow-cljs compiler #15

Open arichiardi opened 7 years ago

arichiardi commented 7 years ago

Hi @moea!

Given that now serverless-cljs-plugin is very flexible regarding compilers, what about adding shadow-cljs?

There should be a very low amount of work to do there, because it already provides its on shadow-cljs.edn file for configuring things, we'd just need to trigger the command line command with the necessary parameters (:functions definitions I guess).

I myself like to work with the lumo for the speed of development and then compile production with something more solid (as you've seen, the lumo compiler is in its very early stages).

What do you think?

moea commented 7 years ago

I'm fine with it if you think it can be implemented without many changes to the plugin.

arichiardi commented 7 years ago

This has some quirk, and in particular the shadow-cljs compile command wants a parameter, the build-id.

arichiardi commented 7 years ago

I think the idea here would be to reuse the stage variable from serverless

arichiardi commented 7 years ago

Uhm, I think I am try to fit square pegs in a round hole with this one, shadow-cljs controls the path of the generated artifact and there is no way to make it optional.