This is a proposal for creating a new package along with lumo-cljs
containing
all the un-bundled JavaScript files needed for the current lumo
to work,
like:
target/bundle.min.js
target/main.js
target/main.js.map
#!/bin/bash | |
do_usage() { | |
echo | |
echo "Package the zip ready for lambda deployment." | |
echo | |
echo " -s is the stage, will default to dev is absent." | |
echo " -p accepts an dir path where the package will be copied, it defaults | |
to \"./.serverless\"". | |
echo " -B option skips compilation, in case you already have compiled |
(ns user.shadow-build | |
(:require [cheshire.core :as json] | |
[clojure.java.io :as io])) | |
(def ^:private package-json-path "package.json") | |
(def ^:private deps-edn-path "src/deps.cljs") | |
(defn deps-cljs | |
[package-json-edn] | |
{:npm-deps (get package-json-edn "dependencies" {})}) |
#!/usr/bin/env bash | |
set -euo pipefail | |
# The following is the mvn dependency:list expected output | |
# | |
# [INFO] The following files have been resolved: | |
# [INFO] com.elasticpath.service.tenant:tenant-service-model:jar:1.0-SNAPSHOT:compile | |
# [INFO] com.elasticpath.service.tenant:tenant-service-dao:jar:1.0-SNAPSHOT:compile |
;; This setup solves the problem of prod and dev code path differing at startup. | |
;; The above issue leads to problems hard to catch, catch when deploying to prod. | |
;; | |
;; in production main | |
;; | |
(def duct-config-file-path (io/resource "/<project>/config.edn") | |
(defn prep-config | |
"Duct prep-config wrapper." |
(ns test.parallel | |
(:require | |
[clojure.core.async :as clj-async :refer [>! go]]) | |
(:import | |
java.util.concurrent.CountDownLatch | |
java.util.concurrent.TimeUnit)) | |
(def | |
^{:dynamic true | |
:doc |
ns services.email | |
(:require [clojure.tools.logging :as log] | |
[clojure.string :as string] | |
[clojure.java.io :as io] | |
[schema.core :as s] | |
[camel-snake-kebab.core :as csk] | |
[camel-snake-kebab.extras :as cske] | |
[amazonica.core :as aws] | |
[amazonica.aws.simpleemail :as ses] | |
[selmer.parser :as selmer] |