serverless-cljs-plugin icon indicating copy to clipboard operation
serverless-cljs-plugin copied to clipboard

Shadow-cljs compiler

Open arichiardi opened this issue 8 years ago • 4 comments

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?

arichiardi avatar Aug 30 '17 15:08 arichiardi

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

moea avatar Aug 30 '17 18:08 moea

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

arichiardi avatar Sep 03 '17 17:09 arichiardi

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

arichiardi avatar Sep 03 '17 18:09 arichiardi

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.

arichiardi avatar Sep 03 '17 18:09 arichiardi