-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build and copy over built src to websites when building them so they'…
…re truely running from HEAD
- Loading branch information
1 parent
1f1d870
commit a18ee33
Showing
4 changed files
with
57 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
#echo "=== Building ES5 version of Gatsby" | ||
#./node_modules/.bin/lerna bootstrap --npm-client=yarn | ||
#./node_modules/.bin/lerna run build | ||
cd examples/gatsbygram | ||
echo "=== Building ES5 version of Gatsby" | ||
./node_modules/.bin/lerna bootstrap --npm-client=yarn | ||
./node_modules/.bin/lerna run build | ||
|
||
echo "=== Installing the website dependencies" | ||
cd examples/gatsbygram | ||
yarn | ||
#echo "=== Copying built Gatsby to website." | ||
#cp -r ../../packages/gatsby/dist ./node_modules/gatsby/dist | ||
|
||
echo "=== Copying built Gatsby to website." | ||
yarn global add gatsby-dev-cli@canary | ||
gatsby-dev --set-path-to-repo ../ | ||
gatsby-dev --scan-once | ||
|
||
echo "=== Building website" | ||
rm -rf .cache | ||
./node_modules/.bin/gatsby build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
#echo "=== Building ES5 version of Gatsby" | ||
#./node_modules/.bin/lerna bootstrap --npm-client=yarn | ||
#./node_modules/.bin/lerna run build | ||
cd www | ||
echo "=== Building ES5 version of Gatsby" | ||
./node_modules/.bin/lerna bootstrap --npm-client=yarn | ||
./node_modules/.bin/lerna run build | ||
|
||
echo "=== Installing the website dependencies" | ||
cd www | ||
yarn | ||
#echo "=== Copying built Gatsby to website." | ||
#cp -r ../packages/gatsby/dist ./node_modules/gatsby/dist | ||
|
||
echo "=== Copying built Gatsby to website." | ||
yarn global add gatsby-dev-cli@canary | ||
gatsby-dev --set-path-to-repo ../ | ||
gatsby-dev --scan-once | ||
|
||
echo "=== Building website" | ||
rm -rf .cache | ||
./node_modules/.bin/gatsby build |