2018-05-20 16:49:41 +00:00
|
|
|
# Development Instructions
|
|
|
|
|
|
|
|
|
|
## Building
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
./scripts/lein-modules do clean, install
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Running tests
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
./scripts/test.sh clj
|
|
|
|
|
./scripts/test.sh cljs
|
|
|
|
|
```
|
|
|
|
|
|
2022-02-12 20:42:10 +00:00
|
|
|
## Formatting
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
clojure-lsp format
|
|
|
|
|
clojure-lsp clean-ns
|
|
|
|
|
```
|
|
|
|
|
|
2018-05-20 16:49:41 +00:00
|
|
|
## Documentation
|
|
|
|
|
|
2020-07-28 10:15:10 +00:00
|
|
|
The documentation lives under `doc` and it is hosted on [cljdoc](https://cljdoc.org). See their
|
|
|
|
|
documentation for [library authors](https://github.com/cljdoc/cljdoc/blob/master/doc/userguide/for-library-authors.adoc)
|
2018-05-20 16:49:41 +00:00
|
|
|
|
2025-10-24 11:54:51 +00:00
|
|
|
## Updating deps
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* `lein ancient upgrade`
|
|
|
|
|
* Mention non-dev non-test dep upgrades in CHANGELOG.md
|
|
|
|
|
* `npm update --save`
|
|
|
|
|
* Make a PR, run CI
|
|
|
|
|
|
2021-03-05 18:45:28 +00:00
|
|
|
## Making a release
|
2018-05-20 16:49:41 +00:00
|
|
|
|
2019-03-14 07:50:21 +00:00
|
|
|
We use [Break Versioning][breakver]. Remember our promise: patch-level bumps never include breaking changes!
|
|
|
|
|
|
|
|
|
|
[breakver]: https://github.com/ptaoussanis/encore/blob/master/BREAK-VERSIONING.md
|
|
|
|
|
|
2018-05-20 16:49:41 +00:00
|
|
|
```bash
|
|
|
|
|
# new version
|
|
|
|
|
./scripts/set-version "1.0.0"
|
2021-04-23 14:53:53 +00:00
|
|
|
|
|
|
|
|
# create a release commit and a tag
|
2025-10-24 11:54:51 +00:00
|
|
|
git add -u
|
2021-04-23 14:53:53 +00:00
|
|
|
git commit -m "Release 1.0.0"
|
|
|
|
|
git tag 1.0.0
|
2018-05-20 16:49:41 +00:00
|
|
|
|
|
|
|
|
# works
|
2021-04-23 14:53:53 +00:00
|
|
|
./scripts/lein-modules install
|
2018-05-20 16:49:41 +00:00
|
|
|
lein test
|
|
|
|
|
|
|
|
|
|
# deploy to clojars
|
2023-02-21 13:54:52 +00:00
|
|
|
CLOJARS_USERNAME=*** CLOJARS_PASSWORD=*** ./scripts/lein-modules do clean, deploy clojars
|
2021-04-23 14:53:53 +00:00
|
|
|
|
|
|
|
|
# push the commit and the tag
|
|
|
|
|
git push
|
|
|
|
|
git push --tags
|
2018-05-20 16:49:41 +00:00
|
|
|
```
|
2021-04-23 14:53:53 +00:00
|
|
|
|
2025-10-24 11:54:51 +00:00
|
|
|
* Remember to update the changelog!
|
2021-04-23 14:55:47 +00:00
|
|
|
* Announce the release at least on #reitit in Clojurians.
|