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