-
Notifications
You must be signed in to change notification settings - Fork 2
/
genezio.yaml
46 lines (46 loc) · 1.87 KB
/
genezio.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
# Learn more about Genezio YAML at https://genezio.com/docs/project-structure/genezio-configuration-file/
# The name of the project.
name: wearedevelopers
# The region where the project is deployed.
region: eu-central-1
# The version of the Genezio YAML configuration to parse.
yamlVersion: 2
backend:
# The root directory of the backend.
path: server
# Information about the backend's programming language.
language:
# The name of the programming language.
name: ts
# The package manager used by the backend.
packageManager: npm
# Scripts are running in the specified `path` directory.
scripts:
# List of scripts to run before deploying the backend.
deploy: npm install
# List of scripts to run before starting `genezio local`.
local: npm install
# Information about the frontend, including the path, language, and publish directory.
# It is optional. It can also be an array if there are multiple frontends you want to deploy.
frontend:
# The folder where the frontend scripts will run.
path: client
# Specifies information about the SDK generation. If not specified, the SDK will not be generated for this frontend.
sdk:
# The language the SDK will be written in. Usually the same as the frontend language.
language: ts
# The directory that will be published to the CDN. It is relative to the `path` directory.
publish: dist
# Scripts are running in the specified `path` directory.
scripts:
# List of scripts to run before deploying the frontend.
deploy:
- npm install @genezio-sdk/${{projectName}}@1.0.0-${{stage}}
- npm install
# List of scripts that build your frontend before deployment. It should populate the specified `publish` directory.
build: npm run build
# List of scripts to run when starting the local development server.
start:
- npm install
- npm run dev
subdomain: wearedevelopers