forked from kubernetes-sigs/headlamp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
99 lines (99 loc) · 6.67 KB
/
package.json
File metadata and controls
99 lines (99 loc) · 6.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"name": "headlamp-root",
"version": "0.1.0",
"private": true,
"description": "Headlamp - An easy-to-use and extensible Kubernetes web UI",
"repository": {
"type": "git",
"url": "https://github.com/kubernetes-sigs/headlamp.git"
},
"license": "Apache-2.0",
"engines": {
"node": ">=20.11.1",
"npm": ">=10.0.0"
},
"scripts": {
"install:all": "npm run frontend:install && npm run backend:build && npm run app:install && npm run tools:install",
"install:frontend": "npm run frontend:install",
"install:backend": "npm run backend:build",
"install:app": "npm run app:install",
"build": "npm run backend:build && npm run frontend:build",
"dev": "npm run start",
"start": "concurrently \"npm run backend:start\" \"npm run frontend:start\" --names \"backend,frontend\" --prefix-colors \"blue,green\"",
"test": "npm run backend:test && npm run frontend:test",
"lint": "npm run backend:lint && npm run frontend:lint && npm run app:lint",
"lint:fix": "npm run backend:lint:fix && npm run frontend:lint:fix && npm run app:lint:fix",
"clean": "rm -rf frontend/build frontend/node_modules app/node_modules app/dist backend/headlamp-server backend/headlamp-server.exe node_modules",
"backend:build": "cd backend && go build -o ./headlamp-server ./cmd",
"backend:lint": "npm run backend:install:linter && cd backend && ./tools/golangci-lint run",
"backend:lint:fix": "npm run backend:install:linter && cd backend && ./tools/golangci-lint run --fix",
"backend:install:linter": "GOBIN=`pwd`/backend/tools go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64",
"backend:test": "cd backend && go test -v -p 1 ./...",
"backend:fuzz": "cd backend && go test -fuzz=. -fuzztime=30s ./pkg/auth/",
"backend:coverage": "cd backend && go test -v -p 1 -coverprofile=coverage.out ./... && go tool cover -func=coverage.out",
"backend:coverage:html": "cd backend && go test -v -p 1 -coverprofile=coverage.out ./... && go tool cover -html=coverage.out",
"backend:format": "cd backend && go fmt ./cmd/ ./pkg/**",
"backend:start": "echo 'Warning: Running with Helm and dynamic-clusters endpoints enabled.' && HEADLAMP_BACKEND_TOKEN=headlamp HEADLAMP_CONFIG_ENABLE_HELM=true HEADLAMP_CONFIG_ENABLE_DYNAMIC_CLUSTERS=true ./backend/headlamp-server -dev -proxy-urls https://artifacthub.io/* -listen-addr=localhost",
"backend:dev": "echo 'Starting Headlamp backend in dev mode with Air...' && cd backend && air",
"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",
"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",
"frontend:install": "cd frontend && npm install",
"frontend:install:ci": "cd frontend && npm ci",
"frontend:build": "cd frontend && npm run build",
"frontend:build:storybook": "cd frontend && npm run build-storybook",
"frontend:format": "cd frontend && npm run format",
"frontend:lint": "cd frontend && npm run lint -- --max-warnings 0 && npm run format-check",
"frontend:lint:fix": "cd frontend && npm run lint -- --fix && npm run format",
"frontend:tsc": "cd frontend && npm run tsc",
"frontend:test": "cd frontend && npm test -- --coverage",
"frontend:start": "cd frontend && npm start",
"frontend:storybook": "cd frontend && npm run storybook",
"docs": "cd frontend && npm run build-typedoc",
"i18n": "cd frontend && npm run i18n && cd ../app && npm run i18n",
"i18n:check": "cd frontend && npm run i18n -- --fail-on-update",
"i18n:status": "cd tools/i18n && npm run status",
"i18n:list": "cd tools/i18n && npm run list",
"i18n:extract": "cd tools/i18n && npm run extract --",
"i18n:copy": "cd tools/i18n && npm run copy --",
"app:install": "cd app && npm install",
"app:build": "npm run frontend:build && cd app && node ./scripts/setup-plugins.js && npm run build",
"app:build:dir": "npm run frontend:build && cd app && node ./scripts/setup-plugins.js && npm run build -- --dir",
"app:package": "npm run app:build && cd app && npm run package -- --win --linux --mac",
"app:package:win": "npm run app:build && cd app && npm run package -- --win",
"app:package:win:msi": "npm run app:build && cd app && npm run package-msi",
"app:package:linux": "npm run app:build && cd app && npm run package -- --linux",
"app:package:mac": "npm run app:build && cd app && npm run package -- --mac",
"app:test": "npm run app:test:unit && npm run app:test:e2e",
"app:test:unit": "cd app && npm run test",
"app:test:e2e": "cd app/e2e-tests && npm run test",
"app:tsc": "cd app && npm run tsc",
"app:format": "cd app && npm run format",
"app:lint": "cd app && npm run lint",
"app:lint:fix": "cd app && npm run lint-fix",
"app:start": "cd app && node ./scripts/setup-plugins.js && npm run start",
"app:start:client": "cd app && npm run dev-only-app",
"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\"",
"start:app": "npm run app:start",
"start:backend": "npm run backend:build && npm run backend:start",
"start:frontend": "npm run frontend:start",
"app:verify-build-linux": "cd app && npm run verify-build-linux",
"app:verify-build-mac": "cd app && npm run verify-build-mac",
"app:verify-build-windows": "cd app && npm run verify-build-windows",
"tools:install": "cd tools && cd i18n && npm install && cd .. && cd releaser && npm install",
"plugins:test": "cd plugins/headlamp-plugin && npm install && ./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",
"image:build": "sh -c 'docker buildx build --pull --platform=local -t ghcr.io/headlamp-k8s/headlamp:$(git describe --tags --always --dirty) -f Dockerfile .'",
"image:verify-image-digests": "node tools/verify-image-digests.js"
},
"devDependencies": {
"concurrently": "^8.2.2"
},
"keywords": [
"kubernetes",
"k8s",
"ui",
"web",
"dashboard",
"cluster",
"management"
]
}