Skip to content

Commit

Permalink
Add missing build scripts to new vite frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
janole committed Jan 28, 2024
1 parent 17bc9a4 commit 6ea89be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ RUN true \
#
&& true

COPY ./build /usr/local/apache2/htdocs/
COPY ./dist /usr/local/apache2/htdocs/
7 changes: 5 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"preview": "vite preview",
"predocker:build": "env REACT_APP_VERSION=${IMAGE_VERSION:-$(npm run --silent version)} npm run build",
"docker:build": "docker build -t ${IMAGE_BASE:-$npm_package_imageBase}frontend:${IMAGE_VERSION:-$(npm run --silent version)} .",
"version": "echo $(echo $npm_package_version | sed 's/\\.[0-9]*$//').$(git rev-list HEAD --count)"
},
"dependencies": {
"@emotion/react": "^11.11.3",
Expand Down Expand Up @@ -38,4 +41,4 @@
"typescript": "^5.2.2",
"vite": "^5.0.8"
}
}
}

0 comments on commit 6ea89be

Please sign in to comment.