feat: update swagger prettier
parent
2dbb3b2671
commit
e541f02132
|
@ -60,7 +60,7 @@ go install github.com/mikefarah/yq/v4@latest
|
||||||
yq -o=json <span class="pl-s"><span class="pl-pds">'</span>.<span class="pl-pds">'</span></span> ./docs/swagger.yaml <span class="pl-k">></span> ./docs/swagger.json
|
yq -o=json <span class="pl-s"><span class="pl-pds">'</span>.<span class="pl-pds">'</span></span> ./docs/swagger.yaml <span class="pl-k">></span> ./docs/swagger.json
|
||||||
|
|
||||||
<span class="pl-c"><span class="pl-c">#</span> Format</span>
|
<span class="pl-c"><span class="pl-c">#</span> Format</span>
|
||||||
bunx prettier --write ./docs/swagger.yaml ./docs/swagger.json
|
bunx prettier@latest --write ./docs/swagger.yaml ./docs/swagger.json
|
||||||
|
|
||||||
<span class="pl-c"><span class="pl-c">#</span> Render locally</span>
|
<span class="pl-c"><span class="pl-c">#</span> Render locally</span>
|
||||||
bunx @redocly/cli preview-docs ./docs/swagger.json</pre>
|
bunx @redocly/cli preview-docs ./docs/swagger.json</pre>
|
||||||
|
|
|
@ -21,7 +21,7 @@ go install github.com/mikefarah/yq/v4@latest
|
||||||
yq -o=json '.' ./docs/swagger.yaml > ./docs/swagger.json
|
yq -o=json '.' ./docs/swagger.yaml > ./docs/swagger.json
|
||||||
|
|
||||||
# Format
|
# Format
|
||||||
bunx prettier --write ./docs/swagger.yaml ./docs/swagger.json
|
bunx prettier@latest --write ./docs/swagger.yaml ./docs/swagger.json
|
||||||
|
|
||||||
# Render locally
|
# Render locally
|
||||||
bunx @redocly/cli preview-docs ./docs/swagger.json
|
bunx @redocly/cli preview-docs ./docs/swagger.json
|
||||||
|
|
Loading…
Reference in New Issue