hedgedoc/turbo.json
Erik Michelson 420c711155
Some checks failed
Run tests & build / Test and build with NodeJS 20 (push) Has been cancelled
Docker / build-and-push (backend) (push) Has been cancelled
Docker / build-and-push (frontend) (push) Has been cancelled
E2E Tests / backend-sqlite (push) Has been cancelled
E2E Tests / backend-mariadb (push) Has been cancelled
E2E Tests / backend-postgres (push) Has been cancelled
E2E Tests / Build test build of frontend (push) Has been cancelled
Lint and check format / Lint files and check formatting (push) Has been cancelled
REUSE Compliance Check / reuse (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Static Analysis / Njsscan code scanning (push) Has been cancelled
Static Analysis / CodeQL analysis (push) Has been cancelled
E2E Tests / frontend-cypress (1) (push) Has been cancelled
E2E Tests / frontend-cypress (2) (push) Has been cancelled
E2E Tests / frontend-cypress (3) (push) Has been cancelled
fix(turborepo): passthrough HD_* env vars by config option
It seems there's a bug in turborepo which results in turbo
not passing through arbitrary environment variables despite
--env-mode=loose being set. This config option resolves the
problem by passing through all HedgeDoc environment
variables prefixed by `HD_`. This somewhat also enhances
stability and reproducability of builds since other env
vars wouldn't interfere anymore.
The additional variable CADDY_HOST is required to make
overriding the listening port in our Caddyfile work.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-02-14 20:59:05 +01:00

128 lines
2.1 KiB
JSON

{
"$schema": "https://turbo.build/schema.json",
"globalPassThroughEnv": [
"HD_*",
"CADDY_HOST"
],
"tasks": {
"build": {},
"@hedgedoc/html-to-react#build": {
"dependsOn": [
"^build"
],
"outputs": [
"dist/**"
]
},
"@hedgedoc/commons#build": {
"dependsOn": [
"^build"
],
"outputs": [
"dist/**"
]
},
"@hedgedoc/markdown-it-plugins#build": {
"dependsOn": [
"^build"
],
"outputs": [
"dist/**"
]
},
"@hedgedoc/frontend#build": {
"dependsOn": [
"^build"
],
"outputs": [
"dist/**",
"!.next/**"
],
"env": [
"NODEJS_VERSION"
]
},
"@hedgedoc/backend#build": {
"dependsOn": [
"^build"
],
"outputs": [
"dist/**"
],
"env": [
"NODEJS_VERSION"
]
},
"build:test": {},
"@hedgedoc/frontend#build:test": {
"dependsOn": [
"^build"
],
"outputs": [
"dist/**",
"!.next/**"
],
"env": [
"NODEJS_VERSION"
]
},
"lint": {
"dependsOn": [
"^build"
]
},
"lint:fix": {
"dependsOn": [
"^build"
]
},
"format": {},
"test": {
"dependsOn": [
"^build"
]
},
"test:ci": {
"dependsOn": [
"^build"
],
"env": [
"NODEJS_VERSION"
],
"outputs": [
"coverage/**"
]
},
"test:e2e:ci": {},
"@hedgedoc/frontend#test:e2e:ci": {
"dependsOn": [
"^build"
],
"env": [
"CYPRESS_CONTAINER_ID"
]
},
"@hedgedoc/backend#test:e2e:ci": {
"dependsOn": [
"^build"
],
"env": [
"HEDGEDOC_TEST_DB_TYPE"
],
"outputs": [
"coverage-e2e/**"
]
},
"start:dev": {
"dependsOn": [
"^build"
],
"cache": false,
"persistent": true
},
"start": {
"cache": false,
"persistent": true
}
}
}