Skip to content

Commit

Permalink
add deploy scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
prevwong committed Dec 21, 2019
1 parent 3eff510 commit 1972746
Show file tree
Hide file tree
Showing 4 changed files with 5,263 additions and 213 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/node_modules
/dist
/.cache
/site
*node_modules/
*lib/
*dist/
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"npmClient": "yarn",
"private": true,
"scripts": {
"build": "lerna run build --stream"
"dev": "lerna run start --parallel",
"build": "lerna run build --stream",
"build-site" : "./scripts/build-site.sh",
"deploy" : "git subtree push --prefix site origin gh-pages"
},
"devDependencies": {
"@babel/cli": "^7.7.4",
Expand Down
10 changes: 10 additions & 0 deletions scripts/build-site.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
lerna run export --stream
rm -rf site/
mkdir site
cp -r ./packages/examples/content-editor/out/* site/
touch .nojekyll ./packages/site
cp -r ./packages/docs/build site/r
mkdir site/examples
cp -r ./packages/examples/nextjs/out/ site/examples/basic
wait
Loading

0 comments on commit 1972746

Please sign in to comment.