refactor(package): #2388 add script that generates types from local yml schema
This commit is contained in:
parent
acae8e5f7d
commit
92b1467d4d
|
@ -6,10 +6,10 @@
|
|||
"description": "Funkwhale front-end",
|
||||
"author": "Funkwhale Collective <contact@funkwhale.audio>",
|
||||
"scripts": {
|
||||
"dev": "yarn run update-schema && vite",
|
||||
"dev": "vite",
|
||||
"dev:docs": "VP_DOCS=true vitepress dev ui-docs",
|
||||
"build": "yarn run update-schema && vite build --mode development",
|
||||
"build:deployment": "yarn run update-schema && vite build",
|
||||
"build": "vite build --mode development",
|
||||
"build:deployment": "vite build",
|
||||
"build:docs": "VP_DOCS=true vitepress build ui-docs",
|
||||
"serve:docs": "VP_DOCS=true vitepress serve ui-docs",
|
||||
"serve": "vite preview",
|
||||
|
@ -18,7 +18,7 @@
|
|||
"test:generate-mock-server": "msw-auto-mock ../docs/schema.yml -o test/msw-server.ts --node",
|
||||
"lint": "eslint --cache --cache-strategy content --ext .ts,.js,.vue,.json,.html src test cypress public/embed.html",
|
||||
"lint:tsc": "vue-tsc --noEmit --incremental && tsc --noEmit --incremental -p cypress",
|
||||
"update-schema": "yarn run openapi-typescript https://docs.funkwhale.audio/develop/swagger/schema.yml -o src/generated/types.ts"
|
||||
"generate-local-schema": "yarn run openapi-typescript ../api/schema.yml -o src/generated/types.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@sentry/tracing": "7.47.0",
|
||||
|
|
Loading…
Reference in New Issue