CI: Build frontend ui

This commit is contained in:
nemunaire 2021-08-31 21:00:37 +02:00
parent dcb0cb315b
commit 451b678e73
3 changed files with 18 additions and 2 deletions

View File

@ -58,6 +58,14 @@ steps:
environment: environment:
CGO_ENABLED: 0 CGO_ENABLED: 0
- name: build frontend ui
image: node:lts-alpine
commands:
- apk --no-cache add python2 build-base
- cd frontend/ui
- npm install --network-timeout=100000
- npm run build
- name: build dashboard - name: build dashboard
image: golang:alpine image: golang:alpine
commands: commands:
@ -259,6 +267,14 @@ steps:
environment: environment:
CGO_ENABLED: 0 CGO_ENABLED: 0
- name: build frontend ui
image: node:lts-alpine
commands:
- apk --no-cache add python2 build-base
- cd frontend/ui
- npm install --network-timeout=100000
- npm run build
- name: build dashboard - name: build dashboard
image: golang:alpine image: golang:alpine
commands: commands:

View File

@ -6,7 +6,7 @@ RUN apk --no-cache add python2 build-base
COPY frontend/ui/ . COPY frontend/ui/ .
RUN npm install --network-timeout100000 RUN npm install --network-timeout 100000
RUN npm run build RUN npm run build

View File

@ -9,7 +9,6 @@
"format": "prettier --ignore-path .gitignore --write --plugin-search-dir=. ." "format": "prettier --ignore-path .gitignore --write --plugin-search-dir=. ."
}, },
"devDependencies": { "devDependencies": {
"@popperjs/core": "^2.9.3",
"@sveltejs/kit": "next", "@sveltejs/kit": "next",
"eslint": "^7.22.0", "eslint": "^7.22.0",
"eslint-config-prettier": "^8.1.0", "eslint-config-prettier": "^8.1.0",
@ -21,6 +20,7 @@
}, },
"type": "module", "type": "module",
"dependencies": { "dependencies": {
"@popperjs/core": "^2.9.3",
"@sveltejs/adapter-static": "^1.0.0-next.17", "@sveltejs/adapter-static": "^1.0.0-next.17",
"bootstrap": "^5.1.0", "bootstrap": "^5.1.0",
"bootstrap-icons": "^1.5.0" "bootstrap-icons": "^1.5.0"