Rename frontend to web
|
@ -1,4 +1,4 @@
|
||||||
[build]
|
[build]
|
||||||
bin = "tmp/cafe-plaetschwiesle"
|
bin = "tmp/cafe-plaetschwiesle"
|
||||||
cmd = "go build -o tmp/cafe-plaetschwiesle cmd/cafe-plaetschwiesle/cafe-plaetschwiesle.go"
|
cmd = "go build -o tmp/cafe-plaetschwiesle cmd/cafe-plaetschwiesle/cafe-plaetschwiesle.go"
|
||||||
exclude_dir = [".gitlab", "docker", "scripts", "frontend", "storage", "tmp", "docs"]
|
exclude_dir = [".gitlab", "docker", "scripts", "web", "storage", "tmp", "docs"]
|
||||||
|
|
|
@ -102,7 +102,7 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
volumes:
|
volumes:
|
||||||
- ./frontend:/app/
|
- ./web:/app/
|
||||||
|
|
||||||
cafe-backend:
|
cafe-backend:
|
||||||
build:
|
build:
|
||||||
|
|
|
@ -19,12 +19,12 @@ RUN go build -ldflags="-s -w" cmd/cafe-plaetschwiesle/cafe-plaetschwiesle.go
|
||||||
FROM node:${NODE_VERSION}-alpine AS nodeBuilder
|
FROM node:${NODE_VERSION}-alpine AS nodeBuilder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY ./frontend/package.json .
|
COPY ./web/package.json .
|
||||||
COPY ./frontend/yarn.lock .
|
COPY ./web/yarn.lock .
|
||||||
RUN yarn install --frozen-lockfile
|
RUN yarn install --frozen-lockfile
|
||||||
|
|
||||||
COPY --from=goBuilder /app/docs/swagger.json ../docs/swagger.json
|
COPY --from=goBuilder /app/docs/swagger.json ../docs/swagger.json
|
||||||
COPY ./frontend/ .
|
COPY ./web/ .
|
||||||
RUN yarn run types:openapi
|
RUN yarn run types:openapi
|
||||||
RUN yarn run build
|
RUN yarn run build
|
||||||
|
|
||||||
|
|
0
frontend/.gitignore → web/.gitignore
vendored
|
@ -1,29 +1,35 @@
|
||||||
# frontend
|
# web
|
||||||
|
|
||||||
## Project setup
|
## Project setup
|
||||||
|
|
||||||
```
|
```
|
||||||
npm install
|
npm install
|
||||||
```
|
```
|
||||||
|
|
||||||
### Compiles and hot-reloads for development
|
### Compiles and hot-reloads for development
|
||||||
|
|
||||||
```
|
```
|
||||||
npm run serve
|
npm run serve
|
||||||
```
|
```
|
||||||
|
|
||||||
### Compiles and minifies for production
|
### Compiles and minifies for production
|
||||||
|
|
||||||
```
|
```
|
||||||
npm run build
|
npm run build
|
||||||
```
|
```
|
||||||
|
|
||||||
### Run your unit tests
|
### Run your unit tests
|
||||||
|
|
||||||
```
|
```
|
||||||
npm run test:unit
|
npm run test:unit
|
||||||
```
|
```
|
||||||
|
|
||||||
### Lints and fixes files
|
### Lints and fixes files
|
||||||
|
|
||||||
```
|
```
|
||||||
npm run lint
|
npm run lint
|
||||||
```
|
```
|
||||||
|
|
||||||
### Customize configuration
|
### Customize configuration
|
||||||
|
|
||||||
See [Configuration Reference](https://cli.vuejs.org/config/).
|
See [Configuration Reference](https://cli.vuejs.org/config/).
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "frontend",
|
"name": "web",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 178 KiB After Width: | Height: | Size: 178 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |