We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
examples
test
Makefile
1 parent 00d492a commit bccdf48Copy full SHA for bccdf48
Makefile
@@ -1,4 +1,5 @@
1
-.PHONY: generate
+.PHONY: generate lint examples test
2
+
3
generate:
4
# 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
@@ -15,3 +16,14 @@ generate:
15
16
17
lint:
18
golangci-lint --config=.golangci.yml run
19
20
+examples:
21
+ @go run . init
22
+ @for file in examples/*.json; do \
23
+ if [ -f $$file ]; then \
24
+ go run . start --complete $$file; \
25
+ fi \
26
+ done
27
28
+test:
29
+ go test ./...
0 commit comments