Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontend setup #3

Merged
merged 16 commits into from
Sep 6, 2023
Merged

Frontend setup #3

merged 16 commits into from
Sep 6, 2023

Conversation

kwokieee
Copy link
Contributor

@kwokieee kwokieee commented Sep 5, 2023

Frontend setup using Vite and React


strategy:
matrix:
commands: ['format:ci', 'lint:ci', build]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we include the test command in the CI?

#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

cd frontend; yarn format;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add yarn test to the pre-commit hook?

Comment on lines 9 to 10
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"lint:ci": "eslint \"{src,apps,libs,test}/**/*.ts\"",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar commands here. The backend uses lint:ci since lint had a auto --fix option.

@chownces chownces merged commit 7185ca8 into master Sep 6, 2023
8 checks passed
@chownces chownces deleted the frontend-setup branch November 16, 2023 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants