gitlab-ce/scripts/frontend/start_storybook.sh

17 lines
443 B
Bash
Executable File

#!/bin/bash
if ! [[ -d storybook/node_modules ]]; then
yarn storybook:install
fi
echo "Storybook needs fixture files to run. Generate or download them."
echo "See: https://docs.gitlab.com/ee/development/testing_guide/frontend_testing.html#frontend-test-fixtures"
read -rp "Download fixtures? (y/N) " response
if [ "$response" = "y" ]; then
./scripts/frontend/download_fixtures.sh
fi
yarn tailwindcss:build
yarn --cwd ./storybook start