-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(build): refactor deploy and update package.jsons (#223)
* fix(build): refactor deploy and update package.jsons * add build-demos to try and stay within netlifys time limit * have netlify build-all-demos instead of build-all
- Loading branch information
Showing
11 changed files
with
64 additions
and
84 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 was deleted.
Oops, something went wrong.
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,8 +1,5 @@ | ||
#!/bin/bash | ||
set -e | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
|
||
# Note: do not do set -x or the passwords will leak! | ||
set -e | ||
|
||
# @angular/cli should be removed when the angular dmeo project has been removed | ||
npm install -g lerna@3.2.1 @storybook/cli @angular/cli rollup@0.67.3 | ||
npm install -g lerna@3.2.1 |
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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
# README: | ||
# each package should build a dist folder that contains everything needed to publish that package | ||
# including: | ||
# - package.json | ||
# - .js files and .d.ts files (no raw .ts files!) | ||
# - README.md | ||
# - and any specialty files | ||
|
||
# Generate all assets needed for push to gh-pages | ||
mkdir -p pages | ||
touch pages/.nojekyll | ||
# echo "charts.carbondesignsystem.com" > pages/CNAME | ||
|
||
|
||
# run the demo:build script in all packages | ||
lerna run --parallel demo:build | ||
# copy all the demos/{package name here} folders to the pages deploy directory | ||
lerna exec -- cp -a demo/bundle/. \$LERNA_ROOT_PATH/pages |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e # exit with nonzero exit code if anything fails | ||
|
||
npm run build-all | ||
|
||
# Should remove once lerna stops mistakenly | ||
# adding package-lock.json to every package after npm install | ||
rm -rf **/package-lock.json | ||
|
||
lerna publish --conventional-commits --yes --github-release --contents dist |
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