Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

echo "Running tests and build before commit..."
npm test && npm run build
12 changes: 12 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

echo "Running tests and build before push..."
npm test && npm run build

if [ $? -ne 0 ]; then
echo "Tests or build failed! Push aborted."
exit 1
fi

echo "Tests and build successful! Proceeding with push..."
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ PriceWolves Customer Facing Frontend Web App | Price Tracker & History App |
## Running Locally

- Install dependencies: `npm install`
- Render UI locally: `npm run dev`
- Run build locally to ensure app works: `npm run build`
- Run test cases: `npm run test`
- Render UI locally: `npm run dev`
- When updating AWS amplify code, run `npx ampx sandbox` to reflect in the AWS cloud environment.
- Successful Confirmation message will be:

Expand Down
Loading