Skip to content

Commit

Permalink
Extract initialisation SQL into separate file (#435)
Browse files Browse the repository at this point in the history
This makes it easier to edit normally.

Also added a rule to `make format` which will use `npx sql-formatter` to format the file.
  • Loading branch information
ryanslade authored Oct 28, 2024
1 parent c35070a commit 88cc975
Show file tree
Hide file tree
Showing 3 changed files with 340 additions and 346 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ clean:
format:
# Format JSON schema
docker run --rm -v $$PWD/schema.json:/mnt/schema.json node:alpine npx prettier /mnt/schema.json --parser json --tab-width 2 --single-quote --trailing-comma all --no-semi --arrow-parens always --print-width 120 --write
docker run --rm -v $$PWD/pkg/state/init.sql:/mnt/init.sql node:alpine npx sql-formatter -l postgresql -o /mnt/init.sql /mnt/init.sql

generate: format
# Generate the types from the JSON schema
Expand Down
Loading

0 comments on commit 88cc975

Please sign in to comment.