1
1
mirror of https://github.com/primer/css.git synced 2024-12-23 22:24:11 +03:00
css/script/build-docs

15 lines
261 B
Plaintext
Raw Normal View History

#!/bin/bash -e
# Build the base project so we can pull out the JSON data
npm run dist
cp -rf dist docs
# Now build the docs site using that data
cd docs
if [ -n "$1" ]; then
CI=true npm run build:storybook preview
else
CI=true npm run build:storybook
fi