-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
65 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
version: 2 | ||
jobs: | ||
cljs: | ||
docker: | ||
- image: circleci/clojure:openjdk-8-tools-deps-node-browsers | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: cljs-{{ checksum "deps.edn" }}-{{ checksum "package.json" }} | ||
- run: npm install | ||
- run: npx shadow-cljs -v compile ci-tests | ||
- run: ls -l target | ||
- run: npx karma start --single-run | ||
- save_cache: | ||
paths: | ||
- node_modules | ||
- ~/.m2 | ||
key: cljs-{{ checksum "deps.edn" }}-{{ checksum "package.json" }} | ||
clj: | ||
docker: | ||
- image: circleci/clojure:tools-deps-1.9.0.394 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: clj-{{ checksum "deps.edn" }} | ||
- run: clojure -A:dev:test:clj-tests | ||
- save_cache: | ||
paths: | ||
- ~/.m2 | ||
key: clj-{{ checksum "deps.edn" }} | ||
workflows: | ||
version: 2 | ||
fullstack: | ||
jobs: | ||
- clj | ||
- cljs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,24 @@ | ||
{:deps {:aliases [:test :dev :provided :book :workspaces]} | ||
:nrepl {:port 9000} | ||
:jvm-opts ["-Xmx2G"] | ||
:builds {:book {:target :browser | ||
:output-dir "docs/js/book" | ||
:asset-path "/js/book" | ||
:modules {:book {:entries [book.main]} | ||
; For the dynamic code splitting demo | ||
:main {:entries [book.demos.dynamic-ui-main] | ||
:depends-on #{:book}}} | ||
:devtools {:preloads [fulcro.inspect.preload] | ||
:http-root "resources/public" | ||
:http-port 9001}} | ||
{:deps {:aliases [:test :dev :workspaces]} | ||
:nrepl {:port 9000} | ||
:builds {:test {:target :browser-test | ||
:test-dir "resources/public/js/test" | ||
:ns-regexp "-spec$" | ||
:compiler-options {:static-fns false} ; required for mocking to work | ||
:devtools {:http-port 9002 | ||
:http-resource-root "public" | ||
:http-root "resources/public/js/test"}} | ||
|
||
:test {:target :browser-test | ||
:test-dir "resources/public/js/test" | ||
:ns-regexp "-spec$" | ||
:compiler-options {:static-fns false} ; required for mocking to work | ||
:devtools {:http-port 9002 | ||
:http-resource-root "public" | ||
:http-root "resources/public/js/test"}} | ||
:ci-tests {:target :karma | ||
:js-options {:js-provider :shadow} | ||
:compiler-options {:static-fns false} ; required for mocking to work | ||
:output-to "target/ci.js" | ||
:ns-regexp "-spec$"} | ||
|
||
:ci-tests {:target :karma | ||
:js-options {:js-provider :shadow} | ||
:compiler-options {:static-fns false} ; required for mocking to work | ||
:output-to "target/ci.js" | ||
:ns-regexp "-spec$"} | ||
|
||
:workspaces {:target nubank.workspaces.shadow-cljs.target | ||
:ns-regexp "-ws$" | ||
:output-dir "resources/public/js/workspaces" | ||
:asset-path "js/workspaces" | ||
:devtools {:http-port 9003 | ||
:http-resource-root "public" | ||
:http-root "resources/public"}}}} | ||
:workspaces {:target nubank.workspaces.shadow-cljs.target | ||
:ns-regexp "-ws$" | ||
:output-dir "resources/public/js/workspaces" | ||
:asset-path "js/workspaces" | ||
:devtools {:http-port 9003 | ||
:http-resource-root "public" | ||
:http-root "resources/public"}}}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters