railbird-gql/justfile

15 lines
317 B
Makefile
Raw Permalink Normal View History

2024-05-21 14:14:02 -06:00
NIX := "LD_LIBRARY_PATH='' nix"
prettier-gql:
#!/usr/bin/env bash
set -euxo pipefail
{{NIX}} develop --impure --command prettier ./src --write
gql-codegen:
#!/usr/bin/env bash
set -euxo pipefail
{{NIX}} develop --impure --command bash -c 'yarn install && yarn graphql-codegen'
gql: gql-codegen prettier-gql