
* root: Makefile: copy over schema for website-watch `make website-watch` will fail with the following error if the schema.yml file is not present in the website's static directory. This was tested on a branch up to date with main with the schema file I copied over removed. ``` ➜ authentik git:(sdko/integrations-all/migr-to-wizard) ✗ w cd website && npm run watch > @goauthentik/website-docs@0.0.0 watch > docusaurus gen-api-docs all && docusaurus start (node:102678) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. (Use `node --trace-deprecation ...` to show where the warning was created) Loading of api failed for "/home/d/Code/authentik/website/static/schema.yml" [ERROR] [Error: ENOENT: no such file or directory, lstat '/home/d/Code/authentik/website/static/schema.yml'] { errno: -2, code: 'ENOENT', syscall: 'lstat', path: '/home/d/Code/authentik/website/static/schema.yml' } [INFO] Docusaurus version: 3.7.0 Node version: v23.6.1 make: *** [Makefile:233: website-watch] Error 1 ``` We should copy over the schema each time in case it changes. Adding it to this Makefile instruction as [official docs](https://docs.goauthentik.io/docs/developer-docs/setup/website-dev-environment) tell users to run `make website-install` which simply `npm ci`s, then this... Signed-off-by: Dominic R <dominic@sdko.org> * tabs? Signed-off-by: Dominic R <dominic@sdko.org> * Update Makefile Signed-off-by: Dominic R <dominic@sdko.org> * Update package.json Signed-off-by: Dominic R <dominic@sdko.org> * Update package.json Signed-off-by: Dominic R <dominic@sdko.org> --------- Signed-off-by: Dominic R <dominic@sdko.org>
92 lines
3.5 KiB
JSON
92 lines
3.5 KiB
JSON
{
|
|
"name": "@goauthentik/website-docs",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"build": "cp ../docker-compose.yml static/docker-compose.yml && cp ../schema.yml static/schema.yml && docusaurus gen-api-docs all && cross-env NODE_OPTIONS='--max_old_space_size=65536' docusaurus build",
|
|
"build-bundled": "cp ../schema.yml static/schema.yml && docusaurus gen-api-docs all && cross-env NODE_OPTIONS='--max_old_space_size=65536' docusaurus build",
|
|
"deploy": "docusaurus deploy",
|
|
"docusaurus": "docusaurus",
|
|
"lint:lockfile": "wireit",
|
|
"prettier": "prettier --write .",
|
|
"prettier-check": "prettier --check .",
|
|
"serve": "docusaurus serve",
|
|
"swizzle": "docusaurus swizzle",
|
|
"test": "node --test",
|
|
"watch": "cp -f ../schema.yml ./static/schema.yml && docusaurus gen-api-docs all && docusaurus start"
|
|
},
|
|
"dependencies": {
|
|
"semver": "^7.7.1",
|
|
"@docusaurus/core": "^3.7.0",
|
|
"@docusaurus/faster": "^3.7.0",
|
|
"@docusaurus/plugin-client-redirects": "^3.7.0",
|
|
"@docusaurus/plugin-content-docs": "^3.7.0",
|
|
"@docusaurus/preset-classic": "^3.7.0",
|
|
"@docusaurus/theme-common": "^3.7.0",
|
|
"@docusaurus/theme-mermaid": "^3.7.0",
|
|
"@mdx-js/react": "^3.1.0",
|
|
"clsx": "^2.1.1",
|
|
"disqus-react": "^1.1.6",
|
|
"docusaurus-plugin-openapi-docs": "4.3.4",
|
|
"docusaurus-theme-openapi-docs": "4.3.4",
|
|
"postcss": "^8.5.3",
|
|
"prism-react-renderer": "^2.4.1",
|
|
"react": "^18.3.1",
|
|
"react-before-after-slider-component": "^1.1.8",
|
|
"react-dom": "^18.3.1",
|
|
"react-feather": "^2.0.10",
|
|
"react-toggle": "^4.1.3",
|
|
"react-tooltip": "^5.28.0",
|
|
"remark-directive": "^4.0.0",
|
|
"remark-github": "^12.0.0"
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@types/semver": "^7.5.8",
|
|
"@docusaurus/module-type-aliases": "^3.3.2",
|
|
"@docusaurus/tsconfig": "^3.7.0",
|
|
"@docusaurus/types": "^3.3.2",
|
|
"@types/react": "^18.3.13",
|
|
"cross-env": "^7.0.3",
|
|
"prettier": "3.5.3",
|
|
"typescript": "~5.8.2",
|
|
"wireit": "^0.14.11"
|
|
},
|
|
"optionalDependencies": {
|
|
"@rspack/binding-darwin-arm64": "1.2.8",
|
|
"@rspack/binding-linux-arm64-gnu": "1.2.8",
|
|
"@rspack/binding-linux-x64-gnu": "1.2.8",
|
|
"lightningcss-darwin-arm64": "1.29.3",
|
|
"lightningcss-linux-arm64-gnu": "1.29.3",
|
|
"lightningcss-linux-x64-gnu": "1.29.3",
|
|
"@swc/core-darwin-arm64": "1.11.11",
|
|
"@swc/core-linux-arm64-gnu": "1.11.11",
|
|
"@swc/core-linux-x64-gnu": "1.11.11",
|
|
"@swc/html-darwin-arm64": "1.11.11",
|
|
"@swc/html-linux-arm64-gnu": "1.11.11",
|
|
"@swc/html-linux-x64-gnu": "1.11.11"
|
|
},
|
|
"wireit": {
|
|
"lint:lockfile": {
|
|
"__comment": "The lockfile-lint package does not have an option to ensure resolved hashes are set everywhere",
|
|
"shell": true,
|
|
"command": "[ -z \"$(jq -r '.packages | to_entries[] | select((.key | contains(\"node_modules\")) and (.value | has(\"resolved\") | not)) | .key' < package-lock.json)\" ]"
|
|
}
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
}
|
|
}
|