👷(ci) deploy demo app on gh-pages
We want to provide a public access to our demo app.
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
"dev": "vite & nodemon --watch cunningham.ts --exec yarn build-theme",
|
"dev": "vite & nodemon --watch cunningham.ts --exec yarn build-theme",
|
||||||
"build-theme": "cunningham -o src -g css,ts",
|
"build-theme": "cunningham -o src -g css,ts",
|
||||||
"build": "tsc && vite build",
|
"build": "tsc && vite build",
|
||||||
|
"build-demo": "tsc && vite build --base=/cunningham/demo/",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,9 +1,15 @@
|
|||||||
rm -rf ghpages-output
|
rm -rf ghpages-output
|
||||||
mkdir -p ghpages-output/storybook
|
|
||||||
|
|
||||||
|
mkdir -p ghpages-output/storybook
|
||||||
cd packages/react && yarn build-storybook
|
cd packages/react && yarn build-storybook
|
||||||
cd ../..
|
cd ../..
|
||||||
mv packages/react/storybook-static/* ghpages-output/storybook
|
mv packages/react/storybook-static/* ghpages-output/storybook
|
||||||
|
|
||||||
|
mkdir -p ghpages-output/demo
|
||||||
|
cd apps/demo && yarn build-demo
|
||||||
|
cd ../..
|
||||||
|
mv apps/demo/dist/* ghpages-output/demo
|
||||||
|
|
||||||
touch ./ghpages-output/.nojekyll
|
touch ./ghpages-output/.nojekyll
|
||||||
touch ./ghpages-output/storybook/.nojekyll
|
touch ./ghpages-output/storybook/.nojekyll
|
||||||
|
touch ./ghpages-output/demo/.nojekyll
|
||||||
|
|||||||
Reference in New Issue
Block a user