Skip to content

Latest commit

 

History

History

clojurescript-simple

AWS Clojurescript Gradle Template

This project compiles Clojurescript to a NodeJS module using the Gradle Clojure Plugin.

NodeJS Support

Rudimentary support for loading/using NodeJS modules is provided.

See functions.cljs as an example.

To include NodeJS dependencies, modify build.gradle and add the module to the closurescript .. npmDeps section.

Prerequisites

Build and Deploy

  • To build, run npm i && ./gradlew clean build
  • To deploy, run serverless deploy

To invoke the function, run:

sls invoke -f hello

Using the Repl in IntelliJ Cursive IDE

This project contains a script the must be initialized in order to use the Repl in IntelliJ.