-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.project.yaml
68 lines (68 loc) · 1.71 KB
/
.project.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# yaml-language-server: $schema=https://raw.githubusercontent.com/dhhyi/devcontainer-creator/dist/language_schema.json
extends: dcc://javascript-pnpm
devcontainer:
publish:
image: ghcr.io/dhhyi/recipe-db-devcontainer-frontend
labels:
org.opencontainers.image.source: https://github.com/dhhyi/recipe-db
initialize: |
pnpm install
npm run codegen
ports:
- 3000
environment:
TESTING: "true"
GRAPHQL_ENDPOINT: http://traefik/graphql
vscode:
settings:
editor.defaultFormatter: esbenp.prettier-vscode
peacock.remoteColor: "#f2b20f"
filewatcher.commands:
- match: "\\.graphql"
cmd: cd ${workspaceRoot} && npm run codegen
event: onFolderChange
extensions:
- johnpapa.vscode-peacock
- GraphQL.vscode-graphql
- esbenp.prettier-vscode
- appulate.filewatcher
- astro-build.astro-vscode
- bradlc.vscode-tailwindcss
- svelte.svelte-vscode
- vue.volar
extras:
- named-volumes
- traefik
namedVolumes:
node_modules: recipe-db-frontend-node-modules
/home/pnpm: recipe-db-pnpm-store
traefik:
network: intranet
labels:
http:
services:
recipe-db-frontend:
loadBalancer:
healthCheck:
interval: 10s
timeout: 1s
path: /health
routers:
frontend:
rule: PathPrefix(`/`)
entrypoints: web
middlewares: frontend-compress
middlewares:
frontend-compress:
compress: true
---
# yaml-language-server: $schema=../.scripts/project-schema.json
category: frontend
precommit: |
npm run codegen
npm run lint -- --fix
npm run build
prettier:
plugins:
- prettier-plugin-astro
- prettier-plugin-svelte