chore: build storybook and deploy to Codeberg Page

We can now deploy Storybook to Codeberg Pages!

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
This commit is contained in:
André Jaenisch 2024-02-08 10:56:03 +01:00
parent e248e0073d
commit a350e43362
No known key found for this signature in database
GPG key ID: 5A668E771F1ED854
4 changed files with 171 additions and 1072 deletions

2
.gitignore vendored
View file

@ -14,7 +14,7 @@ node_modules
coverage
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
storybook-static
/storybook-static
# See https://tauri.app/v1/guides/development/development-cycle#2-start-tauri-development-window
src-tauri/target

View file

@ -25,8 +25,8 @@ const config: StorybookConfig = {
server: {
...config.server,
fs: {
...config.server.fs,
allow: [].concat(config.server.fs.allow || []).concat('stories')
...config.server?.fs,
allow: [].concat(config.server?.fs?.allow || []).concat('stories')
}
}
});

1232
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -18,7 +18,9 @@
"lint": "prettier --check . && eslint .",
"format": "prettier --write .",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
"build-storybook": "storybook build",
"deploy-storybook": "gh-pages -d storybook-static -b pages -r git@codeberg.org:Anvil/Anvil.git",
"predeploy-storybook": "npm run build-storybook"
},
"devDependencies": {
"@playwright/test": "1.44.1",
@ -49,6 +51,7 @@
"eslint-config-prettier": "9.1.0",
"eslint-plugin-storybook": "0.6.15",
"eslint-plugin-svelte": "2.40.0",
"gh-pages": "6.1.1",
"jsdom": "24.1.0",
"postcss": "8.4.38",
"prettier": "3.2.5",