-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: separate yarn and pnpm maintenance scripts (#1163)
- Loading branch information
1 parent
b713f3c
commit 488f829
Showing
6 changed files
with
66 additions
and
57 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
# This script checks that the prerequisite | ||
# pnpm is installed | ||
|
||
if ! command -v pnpm &> /dev/null | ||
then | ||
echo "**pnpm not installed**" | ||
echo "execute the following command:" | ||
echo "npm install pnpm -g" | ||
echo | ||
exit 1 # failure | ||
else | ||
echo "pnpm is installed" | ||
fi |
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,14 @@ | ||
#!/bin/bash | ||
# This script checks that the prerequisite | ||
# yarn is installed | ||
|
||
if ! command -v yarn &> /dev/null | ||
then | ||
echo "**yarn not installed**" | ||
echo "execute the following command:" | ||
echo "npm install yarn -g" | ||
echo | ||
exit 1 # failure | ||
else | ||
echo "yarn is installed" | ||
fi |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
set -e # fail on error | ||
# | ||
# Examples using the pnpm package manager are | ||
# updated to Cypress latest version | ||
# | ||
# Make sure that pnpm is installed | ||
./scripts/check-package-manager-pnpm.sh | ||
|
||
echo updating pnpm examples to Cypress latest version | ||
cd examples | ||
|
||
# examples/basic-pnpm (pnpm) | ||
echo | ||
echo updating examples/basic-pnpm to cypress@latest | ||
cd basic-pnpm | ||
pnpm add cypress@latest --save-dev --save-exact | ||
pnpm ls cypress | ||
cd .. | ||
|
||
# examples/start-and-pnpm-workspaces | ||
echo | ||
echo updating pnpm workspaces example to Cypress latest version | ||
echo | ||
echo updating examples/start-and-pnpm-workspaces to cypress@latest | ||
cd start-and-pnpm-workspaces | ||
pnpm update cypress --latest --recursive | ||
pnpm ls cypress --recursive | ||
cd .. | ||
|
||
cd .. |
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