File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
- .PHONY : generate lint examples test
1
+ .PHONY : pgroll generate format lint examples test
2
2
3
- generate :
3
+ pgroll :
4
+ go build
5
+
6
+ clean :
7
+ go clean
8
+
9
+ format :
4
10
# Format JSON schema
5
- 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 > schema.json.tmp
6
- mv schema.json.tmp schema.json
11
+ 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
7
12
13
+ generate : format
8
14
# Generate the types from the JSON schema
9
15
# Temporarily use the `surjection/go-jsonschema` image because we need https://github.com/omissis/go-jsonschema/pull/220
10
16
# Use the official `omissis/gojsonschema` image once 0.17.0 is released.
You can’t perform that action at this time.
0 commit comments