Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.35 KB

File metadata and controls

44 lines (32 loc) · 1.35 KB

Pathom3 Plugins

This repository exposes some plugins that I use with pathom3. Feel free to include the project via deps.edn or copy the plugins directly (source).

{:deps {dehli/pathom3-plugins {:git/url "git@github.com:dehli/pathom3-plugins.git"
                               :sha "<COMMIT_SHA>"}}}

Id Remaps Plugin

This plugin allows you to specify an ::id-remaps key on your defmutation. By specifying this, if the consumer passes up a temporary id, :app/id-remaps will be automatically merged in.

Params Spec Plugin

This plugin allows you to specify a ::params-spec key on your defmutation. By specifying this, the mutation will only be invoked if the params fulfills the spec contract. Additionally, select-spec will be called on params so that extra data isn't sent to the mutation.

Development

clj -M:outdated       # View outdated dependencies
clj -M:provided:test  # Run tests

Linting

# Pull latest kondo configs
clj-kondo --lint "$(clojure -Spath)" --copy-configs --dependencies

# Lint project
clj-kondo --lint ./src