-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(DEV-22): add setup script to set up project
- override test coverage using npm script
- Loading branch information
Showing
4 changed files
with
23 additions
and
4 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 |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
|
||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm run lint && npm run format | ||
npm run format && npm run lint |
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,19 @@ | ||
#!/bin/bash | ||
|
||
echo "Making sure all dependencies are met" | ||
|
||
if ! command -v yarn &> /dev/null; then | ||
echo "Yarn is not installed" | ||
echo "See yarn install docs: https://yarnpkg.com/getting-started/install" | ||
exit 1 | ||
fi | ||
|
||
echo "Installing dependencies ..." | ||
yarn | ||
|
||
echo "Setting up git hooks ..." | ||
yarn husky install | ||
|
||
|
||
echo "Done, run \"yarn start\" and start developing" | ||
exit 0 |