node package manager



npm version

A Serverless plugin which uses cljs-lambda to package services written in Clojurescript. At deployment time, it uses Leiningen to start a JVM in which your functions are compiled to Javascript.

$ lein new serverless-cljs example

Will generate an example directory containing a minimal serverless.yml and project.clj demonstrating this plugin's functionality.


    cljs: example.core/echo
 - serverless-cljs-plugin

With the above serverless.yml, serverless deploy will create a zip file containing your functions. Doing this is similar to setting the Serverless packaging.artifact option - cljs-lambda is responsible for the zip contents, and Serverless includes/excludes will be skipped (cljs-lambda offers equivalent functionality).

In the example above, there needn't be a corresponding entry for echo in project.clj.


serverless-cljs-plugin is free and unencumbered public domain software. For more information, see or the accompanying LICENSE file.