2021-06-04 11:17:15 +02:00
|
|
|
{
|
|
|
|
"name": "websitev-2",
|
|
|
|
"version": "0.0.0",
|
|
|
|
"private": true,
|
2022-07-19 07:57:03 +02:00
|
|
|
"engines": {
|
|
|
|
"node": ">=16.14"
|
|
|
|
},
|
2021-06-04 11:17:15 +02:00
|
|
|
"scripts": {
|
|
|
|
"docusaurus": "docusaurus",
|
|
|
|
"start": "docusaurus start",
|
#1391: add generated doc cleaning script (#2077)
* #1391: add generated doc cleaning script
## What
The cleaning script replaces all references to the Unleash ushosted instance in the
generated OpenAPI docs. It removes extra path segments (such as leading
`/ushosted` instances) and replaces the ushosted base url with something
user-agnostic.
## Why
When we host the OpenAPI docs in our official documentation, the generated
docs shouldn't necessarily point at _one specific instance_, and especially
not one that the reader is unlikely to ever use. Instead, we can remove all
the bits that are specific to the generation source we use, and make the docs
easier to use. In particular, removing the leading `/ushosted` is likely to
save us loooots of questions.
* #1391: change env var used for generating openapi from localhost
Using NODE_ENV=development doesn't necessarily make sense, so adding
an extra variable sounds reasonable to me.
* #1391: ensure that all generation commands also clean docs
* #1391: change <your-unleash-instance-url> to <your-unleash-url>
* #1391: fix ushosted replacement: not all paths start with /api
* #1391: chore: remove potential `ushosted` ending of api url
In the event that we change the base URL of OpenAPI, so that paths
don't start with `/ushosted/`, the script should still work, changing
those paths into <your-unleash-url> too.
Additionally, remove all instances of `/ushosted` that we find. In the
event that some things switch around or whatever.
2022-09-20 12:43:39 +02:00
|
|
|
"build": "yarn generate && docusaurus build",
|
2021-06-04 11:17:15 +02:00
|
|
|
"swizzle": "docusaurus swizzle",
|
#1391: add generated doc cleaning script (#2077)
* #1391: add generated doc cleaning script
## What
The cleaning script replaces all references to the Unleash ushosted instance in the
generated OpenAPI docs. It removes extra path segments (such as leading
`/ushosted` instances) and replaces the ushosted base url with something
user-agnostic.
## Why
When we host the OpenAPI docs in our official documentation, the generated
docs shouldn't necessarily point at _one specific instance_, and especially
not one that the reader is unlikely to ever use. Instead, we can remove all
the bits that are specific to the generation source we use, and make the docs
easier to use. In particular, removing the leading `/ushosted` is likely to
save us loooots of questions.
* #1391: change env var used for generating openapi from localhost
Using NODE_ENV=development doesn't necessarily make sense, so adding
an extra variable sounds reasonable to me.
* #1391: ensure that all generation commands also clean docs
* #1391: change <your-unleash-instance-url> to <your-unleash-url>
* #1391: fix ushosted replacement: not all paths start with /api
* #1391: chore: remove potential `ushosted` ending of api url
In the event that we change the base URL of OpenAPI, so that paths
don't start with `/ushosted/`, the script should still work, changing
those paths into <your-unleash-url> too.
Additionally, remove all instances of `/ushosted` that we find. In the
event that some things switch around or whatever.
2022-09-20 12:43:39 +02:00
|
|
|
"generate": "docusaurus gen-api-docs all && node clean-generated-docs.js",
|
|
|
|
"deploy": "yarn generate && docusaurus deploy",
|
2021-06-04 11:17:15 +02:00
|
|
|
"clear": "docusaurus clear",
|
|
|
|
"serve": "docusaurus serve",
|
|
|
|
"write-translations": "docusaurus write-translations",
|
2022-02-17 12:30:49 +01:00
|
|
|
"write-heading-ids": "docusaurus write-heading-ids",
|
|
|
|
"storybook": "start-storybook -p 6006",
|
|
|
|
"build-storybook": "build-storybook"
|
2021-06-04 11:17:15 +02:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2022-08-01 21:41:04 +02:00
|
|
|
"@docusaurus/core": "2.0.1",
|
|
|
|
"@docusaurus/plugin-client-redirects": "2.0.1",
|
|
|
|
"@docusaurus/plugin-google-analytics": "2.0.1",
|
|
|
|
"@docusaurus/preset-classic": "2.0.1",
|
|
|
|
"@docusaurus/remark-plugin-npm2yarn": "2.0.1",
|
2021-09-27 09:09:49 +02:00
|
|
|
"@mdx-js/react": "1.6.22",
|
2022-07-22 19:50:19 +02:00
|
|
|
"@svgr/webpack": "6.3.1",
|
2022-07-11 23:57:11 +02:00
|
|
|
"clsx": "1.2.1",
|
2022-08-31 05:26:19 +02:00
|
|
|
"docusaurus-plugin-openapi-docs": "1.1.9",
|
2022-09-01 00:55:20 +02:00
|
|
|
"docusaurus-theme-openapi-docs": "1.1.9",
|
2021-09-27 09:09:49 +02:00
|
|
|
"file-loader": "6.2.0",
|
2022-06-15 00:02:22 +02:00
|
|
|
"react": "18.2.0",
|
|
|
|
"react-dom": "18.2.0",
|
2022-08-10 17:36:33 +02:00
|
|
|
"unleash-proxy-client": "2.1.0",
|
2021-09-27 09:09:49 +02:00
|
|
|
"url-loader": "4.1.1"
|
2021-06-04 11:17:15 +02:00
|
|
|
},
|
2021-06-04 22:57:42 +02:00
|
|
|
"resolutions": {
|
2022-08-26 10:27:30 +02:00
|
|
|
"async": "^3.2.4",
|
2021-09-27 12:13:43 +02:00
|
|
|
"trim": "^1.0.0",
|
2022-08-30 09:52:54 +02:00
|
|
|
"got": "^11.8.5",
|
2021-09-27 22:38:59 +02:00
|
|
|
"glob-parent": "^6.0.0",
|
2021-09-20 12:37:53 +02:00
|
|
|
"browserslist": "^4.16.5",
|
|
|
|
"set-value": "^4.0.1",
|
2021-09-27 13:26:18 +02:00
|
|
|
"immer": "^9.0.6",
|
|
|
|
"ansi-regex": "^5.0.1",
|
2022-08-26 10:27:30 +02:00
|
|
|
"nth-check": "^2.0.1",
|
|
|
|
"shelljs": "^0.8.5",
|
2022-08-26 12:21:47 +02:00
|
|
|
"trim-newlines": "^4.0.0"
|
2021-06-04 22:57:42 +02:00
|
|
|
},
|
2021-06-04 11:17:15 +02:00
|
|
|
"browserslist": {
|
|
|
|
"production": [
|
|
|
|
">0.5%",
|
|
|
|
"not dead",
|
|
|
|
"not op_mini all"
|
|
|
|
],
|
|
|
|
"development": [
|
|
|
|
"last 1 chrome version",
|
|
|
|
"last 1 firefox version",
|
|
|
|
"last 1 safari version"
|
|
|
|
]
|
2022-02-17 12:30:49 +01:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2022-10-10 10:13:08 +02:00
|
|
|
"@babel/core": "7.19.3",
|
2022-08-01 21:41:04 +02:00
|
|
|
"@docusaurus/module-type-aliases": "2.0.1",
|
2022-10-10 07:24:51 +02:00
|
|
|
"@storybook/addon-actions": "6.5.12",
|
|
|
|
"@storybook/addon-essentials": "6.5.12",
|
|
|
|
"@storybook/addon-interactions": "6.5.12",
|
|
|
|
"@storybook/addon-links": "6.5.12",
|
|
|
|
"@storybook/react": "6.5.12",
|
2022-06-13 18:59:59 +02:00
|
|
|
"@storybook/testing-library": "0.0.13",
|
2022-06-11 07:40:07 +02:00
|
|
|
"@tsconfig/docusaurus": "1.0.6",
|
2022-04-20 01:23:25 +02:00
|
|
|
"babel-loader": "8.2.5",
|
2022-06-28 22:18:14 +02:00
|
|
|
"enhanced-resolve": "5.10.0",
|
2022-04-06 21:42:26 +02:00
|
|
|
"react-router": "6.3.0",
|
2022-10-05 23:33:51 +02:00
|
|
|
"replace-in-file": "6.3.5",
|
2022-04-06 21:42:26 +02:00
|
|
|
"storybook-addon-root-attribute": "1.0.2",
|
2022-10-07 19:54:29 +02:00
|
|
|
"typescript": "4.8.4"
|
2021-06-04 11:17:15 +02:00
|
|
|
}
|
|
|
|
}
|