Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/dashboard/BUILD.yaml
2492 views
1
packages:
2
- name: app
3
type: yarn
4
srcs:
5
- "public/**"
6
- "src/**/*.ts*"
7
- "src/**/*.css"
8
- "src/**/*.svg"
9
- "src/**/*.png"
10
- "src/**/*.webp"
11
- "src/**/*.json"
12
- "typings/**"
13
- package.json
14
- tailwind.config.js
15
- tsconfig.*
16
- craco.config.js
17
- postcss.config.js
18
- .eslintrc.js
19
- scripts/run-integration-tests.sh
20
deps:
21
- components/gitpod-protocol:lib
22
- components/public-api/typescript:lib
23
- components/public-api/typescript-common:lib
24
config:
25
commands:
26
build:
27
- sh
28
- -c
29
- yq w -i src/service/config.json commit commit-${__git_commit} -j && yarn build
30
test: ["yarn", "test:unit"]
31
yarnLock: ${coreYarnLockBase}/yarn.lock
32
dontTest: false
33
packaging: archive
34
- name: static
35
type: generic
36
srcs:
37
- "conf/**"
38
- "public/**"
39
- "ee/public/**"
40
config:
41
commands:
42
- ["echo"]
43
- name: docker
44
type: docker
45
deps:
46
- :app
47
- :static
48
- components/gitpod-protocol:gitpod-schema
49
argdeps:
50
- imageRepoBase
51
config:
52
buildArgs:
53
VERSION: ${version}
54
dockerfile: leeway.Dockerfile
55
metadata:
56
helm-component: dashboard
57
image:
58
- ${imageRepoBase}/dashboard:${version}
59
- ${imageRepoBase}/dashboard:commit-${__git_commit}
60
scripts:
61
- name: lint
62
script: |-
63
yarn run eslint --max-warnings=0 $(git diff --cached --relative --name-only --diff-filter=ACMRTUXB | grep -E "\.(js|ts|tsx)$")
64
- name: telepresence
65
script: |-
66
trap "kill 0" EXIT
67
export NODE_OPTIONS='--max-old-space-size=3192'
68
PORT=3001 yarn start &
69
70
telepresence --swap-deployment dashboard \
71
--method inject-tcp \
72
--expose 13001:80 \
73
--run socat TCP-LISTEN:13001,reuseaddr,fork TCP:localhost:3001
74
75