-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
housekeeping: Update dependency node to v18 and yarn to v4 (#2916)
- Loading branch information
1 parent
e01fbee
commit 26a636f
Showing
123 changed files
with
36,283 additions
and
33,513 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,49 @@ | ||
#!/bin/sh | ||
|
||
ROOT_DIR=$(pwd) | ||
FRONTEND_DIR="${ROOT_DIR}/frontend" | ||
BASE_GIT_DIFF_CMD="git diff --name-only --staged --relative=frontend" | ||
|
||
if [[ $(${BASE_GIT_DIFF_CMD} -- frontend) ]]; then | ||
echo "Running frontend checks in ${FRONTEND_DIR}..." | ||
cd "${FRONTEND_DIR}" | ||
|
||
if [[ $(${BASE_GIT_DIFF_CMD} -- **/**/package.json) ]]; then | ||
echo "\nLinting frontend packages...\n" | ||
{ | ||
yarn lint:packages | ||
} || { | ||
echo "\n${FRONTEND_DIR} package lint checks failed, please run \"yarn lint:packages:fix\" and commit the changes." | ||
exit 1 | ||
} | ||
|
||
echo "\nTesting frontend package constraints...\n" | ||
{ | ||
yarn constraints | ||
} || { | ||
echo "\n${FRONTEND_DIR} constraints check failed, please run \"yarn constraints --fix\" and commit the changes." | ||
exit 1 | ||
} | ||
fi | ||
|
||
STAGED_FILES=$(${BASE_GIT_DIFF_CMD} -- **/**/src) | ||
if [[ ${STAGED_FILES} ]]; then | ||
echo "\nLinting frontend code..." | ||
{ | ||
yarn lint:files ${STAGED_FILES} | ||
} || { | ||
echo "\n${FRONTEND_DIR} lint checks failed, please try running \"yarn lint:fix\" and committing the changes." | ||
exit 1 | ||
} | ||
|
||
echo "\nRunning frontend tests..." | ||
{ | ||
yarn test:coverage | ||
} || { | ||
echo "\n${FRONTEND_DIR} tests failed, please fix the issues and commit the changes." | ||
exit 1 | ||
} | ||
fi | ||
fi | ||
|
||
exit 0 |
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 |
---|---|---|
@@ -1 +1 @@ | ||
v16 | ||
v18 |
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 @@ | ||
/Users/jslaughter/go/src/github.com/lyft/clutch |
Oops, something went wrong.