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

update build storybook script #5452

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
15 changes: 13 additions & 2 deletions .buildkite/scripts/build-storybook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,18 @@ set -e
# shellcheck source=setup-registry.sh
. ".buildkite/scripts/helpers/setup-registry.sh"

echo "--- Build Storybook"
corepack enable
echo "--- installing deps"
pnpm install --frozen-lockfile
pnpm turbo build:docs --filter=@docs/storybook
tar -czf ./storybook.tar.gz ./docs/storybook-static
echo "--- building storybook"
if pnpm turbo build:docs --filter=@docs/storybook; then
echo "--- unpack Storybook" to ./docs/storybook-static
if tar -czf ./storybook.tar.gz ./docs/storybook-static; then
echo "Build and unpack of Storybook successful"
exit 0
fi
fi

echo "Build or unpack of Storybook failed"
exit 1
8 changes: 8 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,12 @@ export default {
globals: true,
setupFiles: path.resolve(__dirname, './vitest.setup.ts'),
},
css: {
preprocessorOptions: {
scss: {
// This surpresses the warning on dart-sass. As we are sunsetting our use of scss in Kaizen, this will not be a required dep update and just creates noise
silenceDeprecations: ['legacy-js-api'],
},
},
},
}
Loading