From 8bde5246d8e1c4b994bfdf44cf682e545cc4c96c Mon Sep 17 00:00:00 2001 From: Moe Aboulkheir Date: Fri, 12 May 2017 20:02:39 +0100 Subject: [PATCH] 0.6.6 (#80) * Undo index-advanced change; assume toplevel NS * 0.6.6 --- example/project.clj | 2 +- plugin/project.clj | 2 +- plugin/resources/index-advanced.mustache | 4 ++-- templates/cljs-lambda/project.clj | 2 +- .../cljs-lambda/src/leiningen/new/cljs_lambda/project.clj | 2 +- templates/serverless/project.clj | 2 +- .../serverless/src/leiningen/new/serverless_cljs/project.clj | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/example/project.clj b/example/project.clj index 0276295..a8cb753 100644 --- a/example/project.clj +++ b/example/project.clj @@ -8,7 +8,7 @@ :plugins [[lein-cljsbuild "1.1.4"] [lein-npm "0.6.0"] [lein-doo "0.1.7"] - [io.nervous/lein-cljs-lambda "0.6.5"]] + [io.nervous/lein-cljs-lambda "0.6.6"]] :npm {:dependencies [[source-map-support "0.4.0"]]} :source-paths ["src"] :cljs-lambda diff --git a/plugin/project.clj b/plugin/project.clj index 87bf8e3..84ddc30 100644 --- a/plugin/project.clj +++ b/plugin/project.clj @@ -1,4 +1,4 @@ -(defproject io.nervous/lein-cljs-lambda "0.6.5" +(defproject io.nervous/lein-cljs-lambda "0.6.6" :description "Deploying Clojurescript functions to AWS Lambda" :url "https://github.com/nervous-systems/cljs-lambda" :license {:name "Unlicense" :url "http://unlicense.org/UNLICENSE"} diff --git a/plugin/resources/index-advanced.mustache b/plugin/resources/index-advanced.mustache index bdfa6fd..9e83a9c 100644 --- a/plugin/resources/index-advanced.mustache +++ b/plugin/resources/index-advanced.mustache @@ -9,10 +9,10 @@ try { process.env.{{key}} = "{{value}}"; {{/#env}} -var __CLJS_LAMBDA_NS_ROOT = require("./{{output-to}}"); +require("./{{output-to}}"); {{#module}} {{#function}} -exports.{{export}} = __CLJS_LAMBDA_NS_ROOT.{{js-name}}; +exports.{{export}} = {{js-name}}; {{/function}} {{/module}} diff --git a/templates/cljs-lambda/project.clj b/templates/cljs-lambda/project.clj index 653d0cc..2b0a173 100644 --- a/templates/cljs-lambda/project.clj +++ b/templates/cljs-lambda/project.clj @@ -1,4 +1,4 @@ -(defproject cljs-lambda/lein-template "0.4.9" +(defproject cljs-lambda/lein-template "0.4.10" :description "Clojurescript on AWS Lambda" :url "https://github.com/nervous-systems/cljs-lambda" :license {:name "Unlicense" :url "http://unlicense.org/UNLICENSE"} diff --git a/templates/cljs-lambda/src/leiningen/new/cljs_lambda/project.clj b/templates/cljs-lambda/src/leiningen/new/cljs_lambda/project.clj index 47d4cf3..32acaec 100644 --- a/templates/cljs-lambda/src/leiningen/new/cljs_lambda/project.clj +++ b/templates/cljs-lambda/src/leiningen/new/cljs_lambda/project.clj @@ -8,7 +8,7 @@ :plugins [[lein-cljsbuild "1.1.4"] [lein-npm "0.6.0"] [lein-doo "0.1.7"] - [io.nervous/lein-cljs-lambda "0.6.5"]] + [io.nervous/lein-cljs-lambda "0.6.6"]] :npm {:dependencies [[source-map-support "0.4.0"]]} :source-paths ["src"] :cljs-lambda diff --git a/templates/serverless/project.clj b/templates/serverless/project.clj index 58020c7..f003793 100644 --- a/templates/serverless/project.clj +++ b/templates/serverless/project.clj @@ -1,4 +1,4 @@ -(defproject serverless-cljs/lein-template "0.1.3" +(defproject serverless-cljs/lein-template "0.1.4" :description "Clojurescript on AWS Lambda via Serverless" :url "https://github.com/nervous-systems/cljs-lambda" :license {:name "Unlicense" :url "http://unlicense.org/UNLICENSE"} diff --git a/templates/serverless/src/leiningen/new/serverless_cljs/project.clj b/templates/serverless/src/leiningen/new/serverless_cljs/project.clj index 571b2b7..35d0b69 100644 --- a/templates/serverless/src/leiningen/new/serverless_cljs/project.clj +++ b/templates/serverless/src/leiningen/new/serverless_cljs/project.clj @@ -3,7 +3,7 @@ [org.clojure/clojurescript "1.8.51"] [io.nervous/cljs-lambda "0.3.5"]] :plugins [[lein-npm "0.6.2"] - [io.nervous/lein-cljs-lambda "0.6.5"]] + [io.nervous/lein-cljs-lambda "0.6.6"]] :npm {:dependencies [[serverless-cljs-plugin "0.1.2"]]} :cljs-lambda {:compiler {:inputs ["src"]