Skip to content

Commit

Permalink
Merge pull request #57 from Branchout/yarnrc-quoted
Browse files Browse the repository at this point in the history
Yarnrc quoted
  • Loading branch information
stickycode authored Sep 23, 2020
2 parents 4e3c7ae + daa786f commit 962d1ba
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
5 changes: 3 additions & 2 deletions .deploy-to-homebrew
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ echo "class Branchout < Formula
depends_on \"branchout/branchout/branchout-core\"
depends_on \"branchout/branchout/branchout-maven\"
depends_on \"branchout/branchout/branchout-yarn\"
def test
system \"#{bin}/branchout version\"
Expand Down Expand Up @@ -70,7 +71,7 @@ echo "class BranchoutMaven < Formula
sha256 \"${HASH}\"
version \"${VERSION:1}\"
depends_on \"branchout/branchout/core\"
depends_on \"branchout/branchout/branchout-core\"
depends_on \"maven\"
def install
Expand All @@ -91,7 +92,7 @@ echo "class BranchoutYarn < Formula
sha256 \"${HASH}\"
version \"${VERSION:1}\"
depends_on \"branchout/branchout/core\"
depends_on \"branchout/branchout/branchout-core\"
depends_on \"yarn\"
def install
Expand Down
8 changes: 4 additions & 4 deletions branchout-yarn
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ function yarnSettings() {
echo "using yarnrc template ${BRANCHOUT_DIRECTORY}/branchout-templates/yarnrc"
echo <(cat "${BRANCHOUT_DIRECTORY}/branchout-templates/yarnrc") > "${BRANCHOUT_HOME}/node/yarnrc"
else
echo "registry ${BRANCHOUT_NPM_REGISTRY}
echo "registry \"${BRANCHOUT_NPM_REGISTRY}\"
user \"${BRANCHOUT_CONFIG_NPM_USER}\"
email \"${BRANCHOUT_CONFIG_GIT_EMAIL}\"
always-auth true
user ${BRANCHOUT_CONFIG_NPM_USER}
email ${BRANCHOUT_CONFIG_GIT_EMAIL}
disable-self-update-check true
" > "${BRANCHOUT_HOME}/node/yarnrc"
fi
Expand Down Expand Up @@ -82,7 +82,7 @@ function main() {
yarnSettings "${*}"
;;
show)
grep -v auth "${BRANCHOUT_HOME}/node/yarnrc"
grep -v '^auth ' "${BRANCHOUT_HOME}/node/yarnrc"
;;
*)
test -f "${BRANCHOUT_HOME}/node/.npmrc" || yarnSettings
Expand Down
7 changes: 4 additions & 3 deletions output/yarn/yarnrc.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
registry https://yarn.example.org/repository/npm-example
user npmuser
email [email protected]
registry "https://yarn.example.org/repository/npm-example"
user "npmuser"
email "[email protected]"
always-auth true
disable-self-update-check true

0 comments on commit 962d1ba

Please sign in to comment.