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:
parent
e248e0073d
commit
a350e43362
4 changed files with 171 additions and 1072 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -14,7 +14,7 @@ node_modules
|
||||||
coverage
|
coverage
|
||||||
vite.config.js.timestamp-*
|
vite.config.js.timestamp-*
|
||||||
vite.config.ts.timestamp-*
|
vite.config.ts.timestamp-*
|
||||||
storybook-static
|
/storybook-static
|
||||||
|
|
||||||
# See https://tauri.app/v1/guides/development/development-cycle#2-start-tauri-development-window
|
# See https://tauri.app/v1/guides/development/development-cycle#2-start-tauri-development-window
|
||||||
src-tauri/target
|
src-tauri/target
|
||||||
|
|
|
@ -25,8 +25,8 @@ const config: StorybookConfig = {
|
||||||
server: {
|
server: {
|
||||||
...config.server,
|
...config.server,
|
||||||
fs: {
|
fs: {
|
||||||
...config.server.fs,
|
...config.server?.fs,
|
||||||
allow: [].concat(config.server.fs.allow || []).concat('stories')
|
allow: [].concat(config.server?.fs?.allow || []).concat('stories')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
1232
package-lock.json
generated
1232
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -18,7 +18,9 @@
|
||||||
"lint": "prettier --check . && eslint .",
|
"lint": "prettier --check . && eslint .",
|
||||||
"format": "prettier --write .",
|
"format": "prettier --write .",
|
||||||
"storybook": "storybook dev -p 6006",
|
"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": {
|
"devDependencies": {
|
||||||
"@playwright/test": "1.44.1",
|
"@playwright/test": "1.44.1",
|
||||||
|
@ -49,6 +51,7 @@
|
||||||
"eslint-config-prettier": "9.1.0",
|
"eslint-config-prettier": "9.1.0",
|
||||||
"eslint-plugin-storybook": "0.6.15",
|
"eslint-plugin-storybook": "0.6.15",
|
||||||
"eslint-plugin-svelte": "2.40.0",
|
"eslint-plugin-svelte": "2.40.0",
|
||||||
|
"gh-pages": "6.1.1",
|
||||||
"jsdom": "24.1.0",
|
"jsdom": "24.1.0",
|
||||||
"postcss": "8.4.38",
|
"postcss": "8.4.38",
|
||||||
"prettier": "3.2.5",
|
"prettier": "3.2.5",
|
||||||
|
|
Loading…
Reference in a new issue