Compare commits

...

15 Commits

Author SHA1 Message Date
c69694031c test 2025-12-02 18:04:27 +01:00
05dbc38507 test 2025-12-02 18:03:22 +01:00
3233ce1998 test 2025-12-02 18:02:06 +01:00
7a12f25d0a test 2025-12-02 17:57:23 +01:00
bc7e0644e3 test 2025-12-02 17:54:15 +01:00
f6929726f4 test 2025-12-02 17:46:21 +01:00
55c4d88608 test 2025-12-02 17:43:41 +01:00
0f07e73d7d test 2025-12-02 17:41:40 +01:00
0c0b4effea test 2025-12-02 17:35:37 +01:00
ff6500e709 test 2025-12-02 17:34:49 +01:00
Gitea Deploy
eca11a82a9 Fix build script to copy static files 2025-12-02 17:30:01 +01:00
root
e3b67752b5 Test auto-deploy 2025-12-02 16:25:22 +01:00
3dd1e4d576 nTest auto-deploy 2025-12-02 16:05:12 +01:00
ce48826dd8 npm 2025-12-02 15:54:22 +01:00
cf7541b5ff npm 2025-12-02 15:52:23 +01:00
22 changed files with 7855 additions and 7862 deletions

1
.app-type Normal file
View File

@@ -0,0 +1 @@
type=static-fe

View File

@@ -1,18 +1,23 @@
# Build stage # -- Build stage --
FROM node:20-alpine AS build FROM node:20-alpine AS build
WORKDIR /app WORKDIR /app
# Copy package files # Alleen package-bestanden eerst (better caching)
COPY package*.json ./ COPY package*.json ./
RUN npm ci RUN npm ci || npm install
# Dan de rest van de code
COPY . . COPY . .
# LET OP: pas dit aan als jouw build-script anders heet
RUN npm run build RUN npm run build
# Runtime stage # -- Serve stage --
FROM nginx:alpine FROM nginx:alpine
WORKDIR /usr/share/nginx/html
COPY --from=build /app/dist/ /usr/share/nginx/html/ # Pas dit aan als jouw outputmap niet 'dist' is (bijv. 'build')
COPY --from=build /app/dist ./
EXPOSE 80 # Optioneel: eigen nginx.conf voor SPA routing
# COPY nginx.conf /etc/nginx/conf.d/default.conf

View File

@@ -1,24 +1,9 @@
{ {
"name": "viewer", "name": "viewer",
"version": "0.0.1", "version": "1.0.0",
"description": "", "description": "",
"private": true, "maintainers": ["michael@appmodel.nl"],
"keywords": [
""
],
"license": "",
"author": "",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "build": "mkdir -p dist && cp -r public/* dist/"
"start": "webpack serve --open --config webpack.config.dev.js",
"build": "webpack --config webpack.config.prod.js"
},
"devDependencies": {
"copy-webpack-plugin": "^11.0.0",
"html-webpack-plugin": "^5.6.0",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.4",
"webpack-merge": "^5.10.0"
} }
} }

View File

@@ -1,3 +1,4 @@
<!-- test321 -->
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
@@ -262,3 +263,4 @@ render();
</script> </script>
</body> </body>
</html> </html>
<!-- Auto-deployed at $(date122`) -->