* Initial plan * Add note sharing feature: share/unshare endpoints, public note view, share token Co-authored-by: RMCampos <2219519+RMCampos@users.noreply.github.com> * Remove redundant nullable=true annotation from NoteEntity shareToken column Co-authored-by: RMCampos <2219519+RMCampos@users.noreply.github.com> * Fix checkstyle line-length violations in test files Co-authored-by: RMCampos <2219519+RMCampos@users.noreply.github.com> * Fix frontend build and test failures: add shared/shareToken fields to NoteAdd payloads and test Co-authored-by: RMCampos <2219519+RMCampos@users.noreply.github.com> * chore: reorganize scripts and migration name * docs: update readme with new feature --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: RMCampos <2219519+RMCampos@users.noreply.github.com> Co-authored-by: Ricardo Campos <ricardompcampos@gmail.com>
40 lines
704 B
Bash
Executable File
40 lines
704 B
Bash
Executable File
#!/bin/bash
|
|
# Client - Front-end
|
|
|
|
CURRENT_DIR=$(pwd)
|
|
|
|
if [ ! -f "$CURRENT_DIR/package.json" ]; then
|
|
cd "$CURRENT_DIR/client"
|
|
fi
|
|
|
|
npm ci
|
|
if [ $? -eq 1 ]; then
|
|
echo "Issues when installing dependencies. Please review.."
|
|
exit 1
|
|
fi
|
|
|
|
echo "Running checks..."
|
|
echo "1/3 - Lint started..."
|
|
npm run lint:fix
|
|
if [ $? -eq 1 ]; then
|
|
echo "Issues when running lint. Please review.."
|
|
exit 1
|
|
fi
|
|
|
|
echo "2/3 - Build started..."
|
|
npm run build
|
|
if [ $? -eq 1 ]; then
|
|
echo "Issues when running build. Please review.."
|
|
exit 1
|
|
fi
|
|
|
|
echo "3/3 - Tests started..."
|
|
npm run test:no-watch
|
|
if [ $? -eq 1 ]; then
|
|
echo "Issues when running test. Please review.."
|
|
exit 1
|
|
fi
|
|
|
|
echo "You're good to go! Good job!"
|
|
exit 0
|