Add tooling/docs for auto-generating API hooks.

This commit is contained in:
Dan Albert
2022-03-06 17:16:26 -08:00
parent b7439cbd17
commit de284c2bf6
5 changed files with 1161 additions and 3 deletions

View File

@@ -31,6 +31,7 @@
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build && generate-license-file --input package.json --output build/NOTICE",
"regenerate-api": "rtk-query-codegen-openapi ./openapi-config.ts",
"prepare": "eslint src && license-checker --onlyAllow \"MIT;Apache-2.0;CC0-1.0;BSD-3-Clause;ISC;Custom: https://github.com/tmcw/jsonlint;BSD-2-Clause;Hippocratic-2.1;BSD*;WTFPL\" --excludePrivatePackages --production",
"test": "react-scripts test",
"eject": "react-scripts eject",
@@ -55,6 +56,7 @@
]
},
"devDependencies": {
"@rtk-query/codegen-openapi": "^1.0.0-alpha.1",
"@trivago/prettier-plugin-sort-imports": "^3.2.0",
"@types/leaflet": "^1.7.9",
"@types/redux-logger": "^3.0.9",
@@ -64,6 +66,7 @@
"generate-license-file": "^1.3.0",
"license-checker": "^25.0.1",
"react-scripts": "5.0.0",
"ts-node": "^10.7.0",
"wait-on": "^6.0.1"
}
}