 ### What changes were proposed in this pull request? - Added Husky to enforce code quality with automated tasks during Git events. - Added lint-staged for optimized linting on staged files before each commit. ### Why are the changes needed? Enhances code quality. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Local test. Closes #2250 from tiny-dust/CELEBORN-1240. Lead-authored-by: tiny-dust <idioticzhou@foxmail.com> Co-authored-by: 周顺顺 <idioticzhou@foxmail.com> Signed-off-by: SteNicholas <programgeek@163.com> |
||
|---|---|---|
| .. | ||
| .husky | ||
| .vscode | ||
| public | ||
| src | ||
| .eslintrc.cjs | ||
| .gitignore | ||
| .prettierrc.json | ||
| env.d.ts | ||
| index.html | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pom.xml | ||
| README.md | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||
Celeborn Web UI
Celeborn Web is a dashboard to display and manage the Master and Worker of Celeborn. This document introduces how to install and build the UI of Celeborn Web.
⚠️ Important
Before running commands, you must ensure that you are in the front-end directory
incubator-celeborn/web. If not, runcd webfirst.
Getting started
Preparation | Framework & Dependencies
Tip
You should use the Pnpm package manager.
Installation
Development environment
- Run the below command in the console to install the required dependencies.
pnpm install
Compile and Hot-Reload for Development
pnpm dev
Type-Check, Compile and Minify for Production
pnpm build
Lint with ESLint
# Whole project
pnpm lint
# Staged files for commit
pnpm lint:lint-staged