Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically build TypeDoc and Storybook in CI #2450

Merged
merged 1 commit into from
Dec 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@ yarn-error.log*
# typescript
tsconfig.tsbuildinfo

# typedoc
/typedoc/
# generated docs
public/docs
public/storybook
10 changes: 10 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ module.exports = {
},
async redirects() {
return [
{
source: '/storybook',
destination: '/storybook/index.html',
permanent: true,
},
{
source: '/docs',
destination: '/docs/index.html',
permanent: true,
},
{
source: '/my',
destination: '/my/home',
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"build": "next build",
"start": "next start -p 80",
"devserver": "next dev -p 3000",
"docs:build": "storybook build -o public/storybook && typedoc --out public/docs",
"lint:eslint": "eslint src integrationTesting",
"lint:prettier": "prettier --check src integrationTesting",
"lint:translations": "ts-node src/tools/lint-translations",
Expand All @@ -21,8 +22,7 @@
"playwright:skipbuild": "cross-env NODE_ENV=production SKIP_BUILD=1 playwright test",
"playwright:ci": "cross-env NODE_ENV=production playwright test",
"storybook": "storybook dev -p 6006",
"make-yaml": "ts-node src/tools/make-yaml.ts",
"build-storybook": "storybook build"
"make-yaml": "ts-node src/tools/make-yaml.ts"
},
"dependencies": {
"@date-io/date-fns": "1.x",
Expand Down
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
"exclude": [
".next",
"node_modules",
"storybook-static"
"storybook-static",
"public/storybook",
"public/docs"
]
}
Loading