1
1
mirror of https://github.com/primer/css.git synced 2024-11-29 14:14:26 +03:00
css/script/build-docs

15 lines
261 B
Plaintext
Raw Permalink 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