Skip to content

Commit

Permalink
docs - build
Browse files Browse the repository at this point in the history
  • Loading branch information
dustingetz committed Aug 10, 2022
1 parent d04f5c7 commit 6125c75
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.cpcache
.idea
.shadow-cljs
.env
/.clj-kondo/.cache
/.lsp
/.nrepl-port
Expand Down
12 changes: 7 additions & 5 deletions build.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ rm -rf ./resources/public/js
clj -T:build clean
clojure -T:build jar :version '"'$HYPERFIDDLE_PHOTON_DATE'"'
git tag v$HYPERFIDDLE_PHOTON_DATE
```

## Install jar in local maven repo
```shell
clojure -T:build install :version '"'$HYPERFIDDLE_PHOTON_DATE'"'
```

Expand All @@ -28,11 +24,17 @@ clojure -T:build install :version '"'$HYPERFIDDLE_PHOTON_DATE'"'
{:deps {org.clojure/clojure {:mvn/version "1.11.1"}
com.hyperfiddle/photon {:mvn/version "$HYPERFIDDLE_PHOTON_DATE"}}} ; replace value
```
```shell
clj -A:dev -X user/main :replace-deps '{:deps {com.hyperfiddle/photon {:mvn/version "'$HYPERFIDDLE_PHOTON_DATE'"}}}'
# how to run tests cli?
```

## Deploy

```shell
CLOJARS_USERNAME=dustingetz CLOJARS_PASSWORD=<token> clojure -T:build deploy :version '"'$HYPERFIDDLE_PHOTON_DATE'"'
CLOJARS_PASSWORD= \
CLOJARS_USERNAME=dustingetz \
clojure -T:build deploy :version '"'$HYPERFIDDLE_PHOTON_DATE'"'
```

- `CLOJARS_USERNAME` is your account username.
Expand Down

0 comments on commit 6125c75

Please sign in to comment.