packages:
- name: app
type: yarn
srcs:
- "public/**"
- "src/**/*.ts*"
- "src/**/*.css"
- "src/**/*.svg"
- "src/**/*.png"
- "src/**/*.webp"
- "src/**/*.json"
- "typings/**"
- package.json
- tailwind.config.js
- tsconfig.*
- craco.config.js
- postcss.config.js
- .eslintrc.js
- scripts/run-integration-tests.sh
deps:
- components/gitpod-protocol:lib
- components/public-api/typescript:lib
- components/public-api/typescript-common:lib
config:
commands:
build:
- sh
- -c
- yq w -i src/service/config.json commit commit-${__git_commit} -j && yarn build
test: ["yarn", "test:unit"]
yarnLock: ${coreYarnLockBase}/yarn.lock
dontTest: false
packaging: archive
- name: static
type: generic
srcs:
- "conf/**"
- "public/**"
- "ee/public/**"
config:
commands:
- ["echo"]
- name: docker
type: docker
deps:
- :app
- :static
- components/gitpod-protocol:gitpod-schema
argdeps:
- imageRepoBase
config:
buildArgs:
VERSION: ${version}
dockerfile: leeway.Dockerfile
metadata:
helm-component: dashboard
image:
- ${imageRepoBase}/dashboard:${version}
- ${imageRepoBase}/dashboard:commit-${__git_commit}
scripts:
- name: lint
script: |-
yarn run eslint --max-warnings=0 $(git diff --cached --relative --name-only --diff-filter=ACMRTUXB | grep -E "\.(js|ts|tsx)$")
- name: telepresence
script: |-
trap "kill 0" EXIT
export NODE_OPTIONS='--max-old-space-size=3192'
PORT=3001 yarn start &
telepresence --swap-deployment dashboard \
--method inject-tcp \
--expose 13001:80 \
--run socat TCP-LISTEN:13001,reuseaddr,fork TCP:localhost:3001