|
22 | 22 | "plugins/headlamp-plugin"
|
23 | 23 | ],
|
24 | 24 | "scripts": {
|
25 |
| - "install:all": "npm install --legacy-peer-deps && npm run frontend:install && npm run backend:build && npm run app:install", |
| 25 | + "install:all": "npm install --legacy-peer-deps && npm run create --workspace=eslint-config && npm run frontend:install && npm run backend:build && npm run app:install", |
26 | 26 | "install:frontend": "npm run frontend:install",
|
27 | 27 | "install:backend": "npm run backend:build",
|
28 | 28 | "install:app": "npm install --workspace=app",
|
|
34 | 34 | "lint:fix": "npm run backend:lint:fix && npm run frontend:lint:fix",
|
35 | 35 | "clean": "rm -rf frontend/build frontend/node_modules app/node_modules app/dist backend/headlamp-server backend/headlamp-server.exe node_modules",
|
36 | 36 | "backend:build": "cd backend && go build -o ./headlamp-server ./cmd",
|
37 |
| - "backend:lint": "cd backend && ./tools/golangci-lint run", |
38 |
| - "backend:lint:fix": "cd backend && ./tools/golangci-lint run --fix", |
| 37 | + "backend:lint": "npm run backend:install:linter && cd backend && ./tools/golangci-lint run", |
| 38 | + "backend:lint:fix": "npm run backend:install:linter && cd backend && ./tools/golangci-lint run --fix", |
39 | 39 | "backend:test": "cd backend && go test -v -p 1 ./...",
|
40 | 40 | "backend:coverage": "cd backend && go test -v -p 1 -coverprofile=coverage.out ./... && go tool cover -func=coverage.out",
|
41 | 41 | "backend:coverage:html": "cd backend && go test -v -p 1 -coverprofile=coverage.out ./... && go tool cover -html=coverage.out",
|
|
44 | 44 | "backend:dev": "echo 'Starting Headlamp backend in dev mode with Air...' && cd backend && air",
|
45 | 45 | "backend:start:metrics": "echo 'Running backend with Prometheus metrics enabled' && HEADLAMP_BACKEND_TOKEN=headlamp HEADLAMP_CONFIG_METRICS_ENABLED=true HEADLAMP_CONFIG_ENABLE_HELM=true HEADLAMP_CONFIG_ENABLE_DYNAMIC_CLUSTERS=true ./backend/headlamp-server -dev -proxy-urls https://artifacthub.io/* -listen-addr=localhost",
|
46 | 46 | "backend:start:traces": "echo 'Running backend with distributed tracing enabled' && HEADLAMP_BACKEND_TOKEN=headlamp HEADLAMP_CONFIG_TRACING_ENABLED=true HEADLAMP_CONFIG_ENABLE_HELM=true HEADLAMP_CONFIG_ENABLE_DYNAMIC_CLUSTERS=true ./backend/headlamp-server -dev -proxy-urls https://artifacthub.io/* -listen-addr=localhost",
|
47 |
| - "frontend:install": "npm install --workspace=frontend", |
48 |
| - "frontend:install:ci": "npm ci --workspace=frontend", |
49 |
| - "frontend:build": "npm run build --workspace=frontend", |
50 |
| - "frontend:build:storybook": "npm run build-storybook --workspace=frontend", |
51 |
| - "frontend:lint": "npm run lint --workspace=frontend -- --max-warnings 0 && npm run format-check --workspace=frontend", |
52 |
| - "frontend:lint:fix": "npm run lint --workspace=frontend -- --fix && npm run format --workspace=frontend", |
53 |
| - "frontend:tsc": "npm run tsc --workspace=frontend", |
54 |
| - "frontend:test": "npm run test --workspace=frontend -- --coverage", |
55 |
| - "frontend:start": "npm start --workspace=frontend", |
56 |
| - "frontend:storybook": "npm run storybook --workspace=frontend", |
| 47 | + "frontend:install": "npm install && npm run create --workspace=eslint-config", |
| 48 | + "frontend:install:ci": "npm ci && npm run create --workspace=eslint-config", |
| 49 | + "frontend:build": "npm run frontend:install && npm run build --workspace=frontend", |
| 50 | + "frontend:build:storybook": "npm run frontend:install && npm run build-storybook --workspace=frontend", |
| 51 | + "frontend:lint": "npm run frontend:install && npm run lint --workspace=frontend -- --max-warnings 0 && npm run format-check --workspace=frontend", |
| 52 | + "frontend:lint:fix": "npm run frontend:install && npm run lint --workspace=frontend -- --fix && npm run format --workspace=frontend", |
| 53 | + "frontend:tsc": "npm run frontend:install && npm run tsc --workspace=frontend", |
| 54 | + "frontend:test": "npm run frontend:install && npm run test --workspace=frontend -- --coverage", |
| 55 | + "frontend:start": "npm run frontend:install && npm start --workspace=frontend", |
| 56 | + "frontend:storybook": "npm run frontend:install && npm run storybook --workspace=frontend", |
57 | 57 | "docs": "npm run frontend:install && npm run build-typedoc --workspace=frontend",
|
58 | 58 | "plugins:test": "npm install --workspace=plugins/headlamp-plugin && cd plugins/headlamp-plugin && ./test-headlamp-plugin.js && ./test-plugins-examples.sh && cd ../pluginctl/src && npm install && node ./plugin-management.e2e.js && cd .. && npx jest src/multi-plugin-management.test.js && npx jest src/plugin-management.test.js && npm run test",
|
59 |
| - "i18n": "npm run i18n --workspace=frontend", |
60 |
| - "i18n:check": "npm run i18n --workspace=frontend -- --fail-on-update", |
| 59 | + "i18n": "npm run frontend:install && npm run i18n --workspace=frontend", |
| 60 | + "i18n:check": "npm run frontend:install && npm run i18n --workspace=frontend -- --fail-on-update", |
61 | 61 | "app:install": "npm install --workspace=app",
|
62 |
| - "app:build": "npm run frontend:build && npm install --workspace=app && cd app && node ./scripts/setup-plugins.js && npm run build", |
63 |
| - "app:build:dir": "npm run frontend:build && npm install --workspace=app && cd app && node ./scripts/setup-plugins.js && npm run build -- --dir", |
64 |
| - "app:package": "npm run app:build && npm run package --workspace=app -- --win --linux --mac", |
65 |
| - "app:package:win": "npm run app:build && npm run package --workspace=app -- --win", |
66 |
| - "app:package:win:msi": "npm run app:build && npm run package-msi --workspace=app", |
67 |
| - "app:package:linux": "npm run app:build && npm run package --workspace=app -- --linux", |
68 |
| - "app:package:mac": "npm run app:build && npm run package --workspace=app -- --mac", |
69 |
| - "app:test": "npm run test --workspace=app", |
70 |
| - "app:tsc": "npm run tsc --workspace=app", |
71 |
| - "app:start": "cd app && node ./scripts/setup-plugins.js && npm run start", |
72 |
| - "app:start:client": "npm run dev-only-app --workspace=app", |
| 62 | + "app:build": "npm run app:install && npm run frontend:build && npm install --workspace=app && cd app && node ./scripts/setup-plugins.js && npm run build", |
| 63 | + "app:build:dir": "npm run app:install && npm run frontend:build && npm install --workspace=app && cd app && node ./scripts/setup-plugins.js && npm run build -- --dir", |
| 64 | + "app:package": "npm run app:build && cd app && npm run package -- --win --linux --mac", |
| 65 | + "app:package:win": "npm run app:build && cd app && npm run package -- --win", |
| 66 | + "app:package:win:msi": "npm run app:build && cd app && npm run package-msi", |
| 67 | + "app:package:linux": "npm run app:build && cd app && npm run package -- --linux", |
| 68 | + "app:package:mac": "npm run app:build && cd app && npm run package -- --mac", |
| 69 | + "app:test": "npm run app:test:unit && npm run app:test:e2e", |
| 70 | + "app:test:unit": "npm run app:install && cd app && npm run test", |
| 71 | + "app:test:e2e": "npm run app:install && npm run test --workspace=app/e2e-tests", |
| 72 | + "app:tsc": "npm run app:install && cd app && npm run tsc", |
| 73 | + "app:start": "npm run app:install && cd app && node ./scripts/setup-plugins.js && npm run start", |
| 74 | + "app:start:client": "npm run app:install && npm run dev-only-app --workspace=app", |
73 | 75 | "dev": "npm run start",
|
74 |
| - "start": "concurrently \"npm run backend:start\" \"npm run frontend:start\" --names \"backend,frontend\" --prefix-colors \"blue,green\"", |
75 |
| - "start:with-app": "concurrently \"npm run backend:start\" \"npm run frontend:start\" \"npm run app:start:client\" --names \"backend,frontend,app\" --prefix-colors \"blue,green,yellow\"", |
| 76 | + "start": "npm run install:all && concurrently \"npm run backend:start\" \"npm run frontend:start\" --names \"backend,frontend\" --prefix-colors \"blue,green\"", |
| 77 | + "start:with-app": "npm run install:all && concurrently \"npm run backend:start\" \"npm run frontend:start\" \"npm run app:start:client\" --names \"backend,frontend,app\" --prefix-colors \"blue,green,yellow\"", |
76 | 78 | "start:app": "npm run app:start",
|
77 |
| - "start:backend": "npm run backend:start", |
| 79 | + "start:backend": "npm run backend:build && npm run backend:start", |
78 | 80 | "start:frontend": "npm run frontend:start"
|
79 | 81 | },
|
80 | 82 | "devDependencies": {
|
|
0 commit comments