-
Notifications
You must be signed in to change notification settings - Fork 185
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,18 +2,19 @@ dist: trusty | |
language: node_js | ||
node_js: | ||
- '8' | ||
# addons: | ||
# chrome: stable | ||
# before_install: | ||
# - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost & | ||
before_install: .travis/before_install.sh | ||
install: | ||
- npm install | ||
after_success: .travis/after_success.sh | ||
# script: lerna run lint && lerna run test | ||
after_success: "npm run build-all" | ||
script: lerna run lint | ||
sudo: false | ||
deploy: | ||
- | ||
provider: script | ||
script: "bash ./scripts/deploy.sh" | ||
skip_cleanup: true | ||
true: | ||
branch: master | ||
- | ||
allow-empty-commit: true | ||
email: [email protected] | ||
|
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 [email protected] @storybook/cli @angular/cli [email protected] | ||
npm install -g [email protected] |
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