Skip to content

Commit 3b68892

Browse files
committed
Add script to automatically build frontend assets
1 parent e7c6321 commit 3b68892

File tree

3 files changed

+101
-88
lines changed

3 files changed

+101
-88
lines changed

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
files/files.go:
2+
bin/update-files
3+
4+
.PHONY: files/files.go

bin/update-files

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
pushd vendor/github.com/kubernetes/dashboard
4+
echo > aio/scripts/version.js
5+
echo 'export const version: any = {semverString: "kubectl-dashboard"}' > src/app/frontend/environments/version.ts
6+
npm ci
7+
npm run build:frontend
8+
popd
9+
staticfiles -o files/files.go vendor/github.com/kubernetes/dashboard/dist/frontend/en/

0 commit comments

Comments
 (0)