arcadia-unity / ArcadiaGodot

Other
178 stars 14 forks source link

Feature/add compilation scene #17

Open kwrooijen opened 3 years ago

kwrooijen commented 3 years ago

This feature adds the ability to compile your clojure code using the Godot Headless Client. This way you don't manually have to compile your Clojure code from within the REPL, instead you can run the following command:

bashgodot3-headless -d ArcadiaGodot/Compiler.tscn --src "." --target my/export/directory

This also enables us to compile CLJ files from our CI/CD.

kwrooijen commented 3 years ago

Once https://github.com/arcadia-unity/ArcadiaGodot/pull/22 is merged we can omit the --src and instead use the :source-paths key in configuration.edn. We can also add an additional key such as :target-dir or :release-dir so that the --target key can also be omitted. With those changes we can even run the scene in the Godot editor itself to compile CLJ files without a CLI tool.

kwrooijen commented 3 years ago

@selfsame I've updated this PR so that the Compiler.tscn scene will look in configuration.edn for the :source-paths and :target-path keys. All you have to do now is run the Compiler.tscn either through the command-line or Godot editor and everything gets compiled nicely! If you could try this out, that would be great. If it works as expected then I don't see a reason to keep the manually compilation in the README.md.

bfollington commented 3 years ago

I think this is a very nice addition in terms of developer / onboarding experience, any chance of getting this one merged @selfsame?