Web UI for Argo CD.
- Install NodeJS and pnpm. On macOS with Homebrew, running
brew install node pnpmwill accomplish this. - Run
pnpm install --frozen-lockfileto install local prerequisites. - Run
pnpm startto launch the webpack dev UI server. - Run
pnpm buildto bundle static resources into the./distdirectory.
To build a Docker image, run IMAGE_NAMESPACE=yourimagerepo IMAGE_TAG=latest pnpm docker.
To do the same and push to a Docker registry, run IMAGE_NAMESPACE=yourimagerepo IMAGE_TAG=latest DOCKER_PUSH=true pnpm docker.
Make sure your code passes the lint checks:
pnpm lint --fixIf you are using VSCode, add this configuration to .vscode/settings.json in the root of this repository to identify and fix lint issues automatically before you save file.
Install Eslint Extension in VSCode.
.vscode/settings.json
{
"eslint.format.enable": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "always"
},
"eslint.workingDirectories": [
{
"directory": "./ui",
"!cwd": false
}
],
"eslint.useFlatConfig": true
}