forked from GoodDollar/GoodWeb3-Mono
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstorybook-release
More file actions
executable file
·35 lines (27 loc) · 799 Bytes
/
storybook-release
File metadata and controls
executable file
·35 lines (27 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
rm -rf packages/good-design/storybook-static
rm -rf packages/sdk-v2/storybook-static
rm -rf dist/storybook
#(cp yarn.lock packages/good-design; cp yarn.lock packages/sdk-v2)
export YARN_FLAGS=
export YARN_ENABLE_IMMUTABLE_INSTALLS=false
yarn config set -H enableImmutableInstalls false
# build storybook distros
cd packages/good-design
yarn lingui:prepare
yarn
if ! yarn build-storybook; then
exit 1
fi
cd ../sdk-v2
yarn
export STORYBOOK_BASEPATH=/sdk/
if ! yarn build-storybook -- --preview-url=/sdk/iframe.html; then
exit 1
fi
cd ../../
# pre-create output folders
mkdir -p dist/storybook/sdk
# copy bundles. UI goes to the root, sdk-v2 will be at /sdk
cp -R packages/good-design/storybook-static/* dist/storybook
cp -R packages/sdk-v2/storybook-static/* dist/storybook/sdk