Skip to content

Commit

Permalink
Finishing touches (take 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Broadbent committed Dec 6, 2023
1 parent 5d620ed commit baa0338
Show file tree
Hide file tree
Showing 16 changed files with 666 additions and 57 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/types/generated/
Binary file added docs/internal/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/internal/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="utf8" />
<title>OpenAPI Demo</title>
Expand Down
Binary file added docs/internal/logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/internal/logo.png
Binary file not shown.
Binary file added docs/public/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/public/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="utf8" />
<title>OpenAPI Demo</title>
Expand Down
Binary file added docs/public/logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/public/logo.png
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/public/openapi.json
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"lint": "eslint . --ext .ts",
"lint:fix": "pnpm run lint --fix",
"prettier": "prettier --write '**/*.ts'",
"prebuild": "pnpm bundle:internal && pnpm bundle:api && pnpm generate",
"prebuild": "pnpm bundle:internal && pnpm bundle:public && pnpm generate",
"build": "tsc",
"dev": "NODE_ENV=local nodemon -r dotenv-flow/config --watch src --files src/index.ts",
"test": "jest",
"preview": "concurrently \"http-server docs/public\" \"open http://127.0.0.1:8080\"",
"verify": "pnpm validate && pnpm build && pnpm lint",
"validate": "redocly lint internal --lint-config error",
"bundle:api": "redocly bundle api -o ./src/config/openapi.bundle.json",
"bundle:public": "redocly bundle public -o ./src/config/openapi-public.bundle.json",
"bundle:internal": "redocly bundle internal -o ./src/config/openapi-internal.bundle.json",
"generate": "openapi-typescript ./src/config/openapi-internal.bundle.json --output ./src/types/generated/openapi-schema.ts"
},
Expand Down
2 changes: 1 addition & 1 deletion redocly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ rules:
allowAdditionalProperties: true

apis:
api:
public:
root: ./src/config/openapi.yml
decorators:
remove-x-internal: on
Expand Down
Loading

0 comments on commit baa0338

Please sign in to comment.