1
0
mirror of https://github.com/element-hq/element-web.git synced 2026-10-24 23:19:26 +03:00
Files
element-web/apps/desktop/project.json
Will Hunt 2cfe88578b Remove "hak" and switch to "@matrix-org/seshat" (#35047)
* Remove hak

* Remove dockerbuild

* Refactor to support new @matrix-org/seshat

* Cleanup workflows

* Update windows requirements

* Restore dockerbuild

* Reduce size of doc

* lint

* clear up unused stuff

* bump tests

* another package update
2026-09-17 10:23:01 +00:00

93 lines
3.3 KiB
JSON

{
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"implicitDependencies": ["element-web"],
"root": "apps/desktop",
"targets": {
"docker:build": {
"executor": "@nx-tools/nx-container:build",
"options": {
"load": true,
"engine": "docker",
"platforms": ["linux/amd64", "linux/arm64"],
"provenance": "true",
"sbom": true,
"context": "{projectRoot}",
"file": "{projectRoot}/dockerbuild/Dockerfile",
"metadata": {
"images": ["ghcr.io/element-hq/element-web/desktop-build-env"],
"tags": ["type=ref,event=branch"]
}
}
},
"build:ts": {
"cache": true,
"command": "tsc",
"inputs": ["src", "{projectRoot}/tsconfig.json"],
"outputs": ["{projectRoot}/lib/*.js", "{projectRoot}/lib/*.d.ts"],
"options": {
"cwd": "apps/desktop"
}
},
"build:res": {
"cache": true,
"command": "node scripts/copy-res.ts",
"inputs": ["{projectRoot}/i18n"],
"outputs": ["{projectRoot}/lib/i18n"],
"options": {
"cwd": "apps/desktop"
}
},
"build": {
"cache": true,
"command": "pnpm exec electron-builder",
"inputs": ["src", "{projectRoot}/electron-builder.json", "{projectRoot}/webapp.asar"],
"outputs": ["{projectRoot}/dist"],
"options": {
"cwd": "apps/desktop"
},
"dependsOn": ["build:*"]
},
"start": {
"command": "electron .",
"options": {
"cwd": "apps/desktop"
},
"dependsOn": ["build:*"]
},
"test:playwright": {
"command": "playwright test",
"options": {
"cwd": "apps/desktop"
}
},
"test:playwright:screenshots:build-app": {
"executor": "nx:run-commands",
"options": {
"commands": [
"pnpm run build -l --x64 --dir --publish=never",
"pnpm exec electron-fuses write --app ./dist/linux-unpacked/element-desktop EnableNodeCliInspectArguments=on"
],
"parallel": false,
"cwd": "apps/desktop"
},
"dependsOn": ["build:*"]
},
"test:playwright:screenshots:build-docker": {
"cache": true,
"command": "docker build -f playwright/Dockerfile -t element-desktop-playwright --platform linux/amd64 ../..",
"inputs": ["{projectRoot}/playwright/Dockerfile", "{projectRoot}/playwright/docker-entrypoint.sh"],
"options": {
"cwd": "apps/desktop"
}
},
"test:playwright:screenshots": {
"command": "docker run --rm --network host -v $(pwd)/../../:/work/ --platform linux/amd64 -it element-desktop-playwright",
"options": {
"cwd": "apps/desktop"
},
"dependsOn": ["test:playwright:screenshots:*"]
}
}
}