Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(dx/ci): get rid of nx-specific workflows
Elian Doran7c8019ac5be2
diff --git a/.github/workflows/main-docker.yml b/.github/workflows/main-docker.ymlindex c4c6ed551e..7b2ee4ecd8 100644--- a/.github/workflows/main-docker.yml+++ b/.github/workflows/main-docker.yml@@ -82,7 +82,7 @@ jobs:require-healthy: true- name: Run Playwright tests- run: TRILIUM_DOCKER=1 TRILIUM_PORT=8082 pnpm exec nx run server-e2e:e2e+ run: TRILIUM_DOCKER=1 TRILIUM_PORT=8082 pnpm --filter=server-e2e e2e- name: Upload Playwright traceif: failure()diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.ymlindex 25086af642..b4f047aeae 100644--- a/.github/workflows/playwright.yml+++ b/.github/workflows/playwright.yml@@ -19,12 +19,6 @@ jobs:filter: tree:0fetch-depth: 0- # This enables task distribution via Nx Cloud- # Run this command as early as possible, before dependencies are installed- # Learn more at https://nx.dev/ci/reference/nx-cloud-cli#npx-nxcloud-startcirun- # Connect your workspace by running "nx connect" and uncomment this line to enable task distribution- # - run: npx nx-cloud start-ci-run --distribute-on="3 linux-medium-js" --stop-agents-after="e2e-ci"-- uses: pnpm/action-setup@v4- uses: actions/setup-node@v4with:@@ -34,10 +28,5 @@ jobs:- name: Install dependenciesrun: pnpm install --frozen-lockfile- run: pnpm exec playwright install --with-deps- - uses: nrwl/nx-set-shas@v4- # Prepend any command with "nx-cloud record --" to record its logs to Nx Cloud- # - run: npx nx-cloud record -- echo Hello World- # Nx Affected runs only tasks affected by the changes in this PR/commit. Learn more: https://nx.dev/ci/features/affected- # When you enable task distribution, run the e2e-ci task instead of e2e- - run: pnpm exec nx affected -t e2e --exclude desktop-e2e+ - run: pnpm -r e2ediff --git a/apps/client/package.json b/apps/client/package.jsonindex 381b091bc9..9a979ccdbb 100644--- a/apps/client/package.json+++ b/apps/client/package.json@@ -9,6 +9,11 @@"email": "[email protected]","url": "https://github.com/TriliumNext/Notes"},+ "scripts": {+ "build": "vite build",+ "test": "vitest",+ "circular-deps": "dpdm -T src/**/*.ts --tree=false --warning=false --skip-dynamic-imports=circular"+ },"dependencies": {"@eslint/js": "9.34.0","@excalidraw/excalidraw": "0.18.0",@@ -71,21 +76,5 @@"happy-dom": "18.0.1","script-loader": "0.7.2","vite-plugin-static-copy": "3.1.2"- },- "scripts": {- "build": "vite build"- },- "nx": {- "name": "client",- "targets": {- "serve": {- "dependsOn": [- "^build"- ]- },- "circular-deps": {- "command": "pnpx dpdm -T {projectRoot}/src/**/*.ts --tree=false --warning=false --skip-dynamic-imports=circular"- }- }}}\ No newline at end of filediff --git a/apps/server-e2e/package.json b/apps/server-e2e/package.jsonindex a9970fd0a0..0844eb3477 100644--- a/apps/server-e2e/package.json+++ b/apps/server-e2e/package.json@@ -2,19 +2,8 @@"name": "@triliumnext/server-e2e","version": "0.0.1","private": true,- "nx": {- "name": "server-e2e",- "implicitDependencies": [- "client",- "server"- ],- "targets": {- "e2e": {- "dependsOn": [- "server:build"- ]- }- }+ "scripts": {+ "e2e": "playwright test"},"devDependencies": {"dotenv": "17.2.1"diff --git a/apps/server/package.json b/apps/server/package.jsonindex 6ade52f89b..6ad5f1a604 100644--- a/apps/server/package.json+++ b/apps/server/package.json@@ -3,6 +3,15 @@"version": "0.98.1","description": "The server-side component of TriliumNext, which exposes the client via the web, allows for sync and provides a REST API for both internal and external use.","private": true,+ "main": "./src/main.ts",+ "scripts": {+ "dev": "cross-env NODE_ENV=development TRILIUM_ENV=dev TRILIUM_DATA_DIR=data TRILIUM_RESOURCE_DIR=src tsx watch --ignore '../client/node_modules/.vite-temp' ./src/main.ts",+ "build": "tsx scripts/build.ts",+ "package": "pnpm build && bash scripts/build-server.sh",+ "test": "vitest",+ "test-build": "vitest --config vitest.build.config.mts",+ "circular-deps": "dpdm -T src/**/*.ts --tree=false --warning=false --skip-dynamic-imports=circular"+ },"dependencies": {"better-sqlite3": "12.2.0"},@@ -300,22 +309,7 @@}]}- },- "test-build": {- "dependsOn": [- "build"- ],- "command": "vitest --config {projectRoot}/vitest.build.config.mts"- },- "circular-deps": {- "command": "pnpx dpdm -T {projectRoot}/src/**/*.ts --tree=false --warning=false --skip-dynamic-imports=circular"}}- },- "scripts": {- "dev": "cross-env NODE_ENV=development TRILIUM_ENV=dev TRILIUM_DATA_DIR=data TRILIUM_RESOURCE_DIR=src tsx watch --ignore '../client/node_modules/.vite-temp' ./src/main.ts",- "build": "tsx scripts/build.ts",- "package": "pnpm build && bash scripts/build-server.sh"- },- "main": "./src/main.ts"+ }}\ No newline at end of file