forked from roman01la/uix
-
Notifications
You must be signed in to change notification settings - Fork 22
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
12 changed files
with
649 additions
and
42 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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
orbs: | ||
browser-tools: circleci/[email protected] | ||
github-cli: circleci/[email protected] | ||
|
||
jobs: | ||
create-release: | ||
docker: | ||
- image: 'cimg/base:stable' | ||
- image: "cimg/base:stable" | ||
|
||
working_directory: ~/repo | ||
|
||
steps: | ||
- checkout | ||
- attach_workspace: | ||
|
@@ -20,7 +20,7 @@ jobs: | |
name: Create Release | ||
command: | | ||
gh release create $(git rev-parse --short HEAD) build_info | ||
build: | ||
docker: | ||
- image: cimg/clojure:1.11-browsers | ||
|
@@ -36,12 +36,12 @@ jobs: | |
|
||
- restore_cache: | ||
keys: | ||
- v1-dependencies-{{ checksum "core/deps.edn" }} | ||
- v1-dependencies-{{ checksum "core/deps.edn" }}-{{ checksum "dom/deps.edn" }} | ||
- v1-dependencies- | ||
|
||
- restore_cache: | ||
keys: | ||
- v1-npm-deps-{{ checksum "core/yarn.lock" }} | ||
- v1-npm-deps-{{ checksum "core/yarn.lock" }}-{{ checksum "dom/yarn.lock" }} | ||
- v1-npm-deps- | ||
|
||
- run: cd core && yarn install --frozen-lockfile | ||
|
@@ -52,12 +52,14 @@ jobs: | |
|
||
- run: cd core && scripts/test | tee ../build_info && curl -sSLo ../build_info_master https://github.com/pitch-io/uix/releases/latest/download/build_info | ||
|
||
- run: cd dom && scripts/test | ||
|
||
- when: | ||
condition: | ||
not: | ||
equal: [ master, << pipeline.git.branch >> ] | ||
equal: [master, << pipeline.git.branch >>] | ||
steps: | ||
- run: | ||
- run: | ||
name: Comment on PR | ||
command: | | ||
# Extract the PR number from the URL. https://support.circleci.com/hc/en-us/articles/360047521451-Why-is-CIRCLE-PR-NUMBER-empty- | ||
|
@@ -72,12 +74,12 @@ jobs: | |
- save_cache: | ||
paths: | ||
- ~/.m2 | ||
key: v1-dependencies-{{ checksum "core/deps.edn" }} | ||
key: v1-dependencies-{{ checksum "core/deps.edn" }}-{{ checksum "dom/deps.edn" }} | ||
|
||
- save_cache: | ||
paths: | ||
- ~/.cache/yarn | ||
key: v1-npm-deps-{{ checksum "core/yarn.lock" }} | ||
key: v1-npm-deps-{{ checksum "core/yarn.lock" }}-{{ checksum "dom/yarn.lock" }} | ||
|
||
workflows: | ||
version: 2 | ||
|
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 |
---|---|---|
|
@@ -3,3 +3,8 @@ | |
.nrepl-port | ||
.clj-kondo | ||
.lsp | ||
node_modules | ||
.cpcache | ||
.shadow-cljs | ||
out | ||
server_render_test |
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,3 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
clojure -A:dev -m cljfmt.main fix --indents indentation.clj | ||
clojure -A:dev -m cljfmt.main fix --indents indentation.clj ./src ./test ../dom/src ../dom/test |
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
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
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 |
---|---|---|
|
@@ -25,3 +25,7 @@ | |
o) | ||
#js {} | ||
m))) | ||
|
||
#?(:clj | ||
(defn cljs-env? [env] | ||
(boolean (:ns env)))) |
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
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,5 +1,10 @@ | ||
{:deps {} | ||
:paths ["src"] | ||
:aliases {:dev {:extra-deps {uix.core/uix.core {:local/root "../core"}}} | ||
:aliases {:dev {:extra-deps {org.clojure/clojure {:mvn/version "1.10.3"} | ||
org.clojure/clojurescript {:mvn/version "1.10.879"} | ||
uix.core/uix.core {:local/root "../core"}}} | ||
:test {:extra-paths ["test"] | ||
:extra-deps {clj-diffmatchpatch/clj-diffmatchpatch {:mvn/version "0.0.9.3"} | ||
thheller/shadow-cljs {:mvn/version "2.15.5"}}} | ||
:release {:extra-deps {appliedscience/deps-library {:mvn/version "0.3.4"}} | ||
:main-opts ["-m" "deps-library.release"]}}} |
Oops, something went wrong.