@norskvideo/ctl-dev-kit 0.2.97 → 0.2.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/Dockerfile.bundle
CHANGED
|
@@ -47,6 +47,7 @@ COPY backend/dist ./backend/dist
|
|
|
47
47
|
COPY native/ ./backend/dist/
|
|
48
48
|
COPY frontend/dist ./frontend/dist
|
|
49
49
|
COPY dashboards /usr/src/dashboards
|
|
50
|
+
COPY fleet-dashboards /usr/src/fleet-dashboards
|
|
50
51
|
COPY components/lib /usr/src/components/lib
|
|
51
52
|
# Optional product-template assets (funke's slate/black PNGs). Empty otherwise.
|
|
52
53
|
COPY assets /usr/src/assets
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
# having the directory/script — no per-product flag to keep in sync:
|
|
21
21
|
# frontend/dist the frontend workspace's build output
|
|
22
22
|
# dashboards/ the dashboard workspace's build output
|
|
23
|
+
# fleet-dashboards/ fleet dashboard bundles the product brings
|
|
24
|
+
# (its manifest's defaultDashboards)
|
|
23
25
|
# components/lib the components workspace's build output
|
|
24
26
|
# native/ native addon(s) (probe's signer) -> beside bundle
|
|
25
27
|
# assets/ product-template assets (funke's PNGs)
|
|
@@ -52,7 +54,7 @@ trap 'rm -rf "${stage}"' EXIT
|
|
|
52
54
|
|
|
53
55
|
echo "==> staging artifacts"
|
|
54
56
|
mkdir -p "${stage}/backend" "${stage}/frontend/dist" "${stage}/components/lib" \
|
|
55
|
-
"${stage}/dashboards" "${stage}/native" "${stage}/assets" "${stage}/docs"
|
|
57
|
+
"${stage}/dashboards" "${stage}/fleet-dashboards" "${stage}/native" "${stage}/assets" "${stage}/docs"
|
|
56
58
|
# The backend bundle is the one non-negotiable payload — every bundle product has
|
|
57
59
|
# one, so a missing dist is a broken build, not an absent workspace.
|
|
58
60
|
cp -R "${PRODUCT_DIR}/backend/dist" "${stage}/backend/dist"
|
|
@@ -60,7 +62,7 @@ cp -R "${PRODUCT_DIR}/backend/dist" "${stage}/backend/dist"
|
|
|
60
62
|
# Frontend / dashboards / components are produced by the workspaces of the same
|
|
61
63
|
# name, so a product that has no such workspace never produces them (reuters:
|
|
62
64
|
# backend-only). Staged empty in that case, exactly as native/ and assets/ below
|
|
63
|
-
# — Dockerfile.bundle COPYs
|
|
65
|
+
# — Dockerfile.bundle COPYs every one unconditionally, so the path must exist even
|
|
64
66
|
# when there is nothing to put in it.
|
|
65
67
|
if [ -d "${PRODUCT_DIR}/frontend/dist" ]; then
|
|
66
68
|
cp -R "${PRODUCT_DIR}/frontend/dist/." "${stage}/frontend/dist/"
|
|
@@ -68,6 +70,12 @@ fi
|
|
|
68
70
|
if [ -d "${PRODUCT_DIR}/dashboards" ]; then
|
|
69
71
|
cp -R "${PRODUCT_DIR}/dashboards/." "${stage}/dashboards/"
|
|
70
72
|
fi
|
|
73
|
+
# Fleet dashboards (norsk-ctl task 123): served by the control plane as the
|
|
74
|
+
# bundles its manifest's defaultDashboards name. Not under dashboards/, whose
|
|
75
|
+
# every directory is packed into each product template for Studio to serve.
|
|
76
|
+
if [ -d "${PRODUCT_DIR}/fleet-dashboards" ]; then
|
|
77
|
+
cp -R "${PRODUCT_DIR}/fleet-dashboards/." "${stage}/fleet-dashboards/"
|
|
78
|
+
fi
|
|
71
79
|
if [ -d "${PRODUCT_DIR}/components/lib" ]; then
|
|
72
80
|
cp -R "${PRODUCT_DIR}/components/lib/." "${stage}/components/lib/"
|
|
73
81
|
fi
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@norskvideo/ctl-dev-kit",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.99",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./create-product": "./create-product/create-product.ts",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"jsdom": "^29.0.1",
|
|
59
59
|
"react": "^19.0.0",
|
|
60
60
|
"react-dom": "^19.0.0",
|
|
61
|
-
"vite": "^8.
|
|
62
|
-
"vitest": "^4.1.
|
|
61
|
+
"vite": "^8.3.5",
|
|
62
|
+
"vitest": "^4.1.12",
|
|
63
63
|
"yaml": "^2.8.0",
|
|
64
64
|
"zod": "4.4.3"
|
|
65
65
|
},
|