From d60899e3622fcc38a3524ba31e51e4c9652077be Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 2 Sep 2025 17:43:32 +0300 Subject: [PATCH] chore(dx): remove unnecessary nx configs --- apps/desktop-e2e/package.json | 21 +---- apps/website/package.json | 9 -- nx.json | 94 ------------------- packages/ckeditor5-admonition/package.json | 8 -- packages/ckeditor5-footnotes/package.json | 8 -- .../ckeditor5-keyboard-marker/package.json | 8 -- packages/ckeditor5-math/package.json | 8 -- packages/ckeditor5-mermaid/package.json | 8 -- packages/ckeditor5/package.json | 10 -- packages/codemirror/package.json | 3 - packages/commons/package.json | 32 ------- packages/express-partial-content/package.json | 31 ------ packages/highlightjs/package.json | 3 - packages/share-theme/package.json | 3 - packages/turndown-plugin-gfm/package.json | 24 ----- 15 files changed, 1 insertion(+), 269 deletions(-) delete mode 100644 nx.json diff --git a/apps/desktop-e2e/package.json b/apps/desktop-e2e/package.json index 2e70fc803..7a1b278c7 100644 --- a/apps/desktop-e2e/package.json +++ b/apps/desktop-e2e/package.json @@ -1,24 +1,5 @@ { "name": "@triliumnext/desktop-e2e", "version": "0.0.1", - "private": true, - "nx": { - "name": "desktop-e2e", - "implicitDependencies": [ - "client", - "desktop" - ], - "targets": { - "e2e": { - "dependsOn": [ - "desktop:build", - "desktop:rebuild-deps" - ] - } - } - }, - "devDependencies": { - "dotenv": "17.2.1", - "electron": "37.4.0" - } + "private": true } diff --git a/apps/website/package.json b/apps/website/package.json index 4e6a141c8..aa8f73e17 100644 --- a/apps/website/package.json +++ b/apps/website/package.json @@ -33,14 +33,5 @@ }, "dependencies": { "@inlang/paraglide-js": "^2.0.0" - }, - "nx": { - "targets": { - "typecheck": { - "dependsOn": [ - "build" - ] - } - } } } diff --git a/nx.json b/nx.json deleted file mode 100644 index 927089448..000000000 --- a/nx.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "$schema": "./node_modules/nx/schemas/nx-schema.json", - "defaultBase": "main", - "namedInputs": { - "default": [ - "{projectRoot}/**/*", - "sharedGlobals" - ], - "production": [ - "default", - "!{projectRoot}/.eslintrc.json", - "!{projectRoot}/eslint.config.mjs", - "!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)", - "!{projectRoot}/tsconfig.spec.json", - "!{projectRoot}/src/test-setup.[jt]s" - ], - "sharedGlobals": [ - "{workspaceRoot}/.github/workflows/release.yml", - "{workspaceRoot}/.github/workflows/playwright.yml" - ] - }, - "plugins": [ - { - "plugin": "@nx/js/typescript", - "options": { - "typecheck": { - "targetName": "typecheck" - }, - "build": { - "targetName": "build", - "configName": "tsconfig.lib.json", - "buildDepsName": "build-deps", - "watchDepsName": "watch-deps" - } - } - }, - { - "plugin": "@nx/eslint/plugin", - "options": { - "targetName": "lint" - } - }, - { - "plugin": "@nx/vite/plugin", - "options": { - "buildTargetName": "build", - "testTargetName": "test", - "serveTargetName": "serve", - "devTargetName": "dev", - "previewTargetName": "preview", - "serveStaticTargetName": "serve-static", - "typecheckTargetName": "typecheck", - "buildDepsTargetName": "build-deps", - "watchDepsTargetName": "watch-deps" - } - }, - { - "plugin": "@nx/playwright/plugin", - "options": { - "targetName": "e2e" - } - } - ], - "targetDefaults": { - "test": { - "dependsOn": [ - "^build" - ] - }, - "@nx/esbuild:esbuild": { - "cache": true, - "dependsOn": [ - "^build" - ], - "inputs": [ - "production", - "^production" - ] - }, - "e2e-ci--**/*": { - "dependsOn": [ - "^build" - ] - } - }, - "generators": { - "@nx/web:application": { - "style": "css", - "linter": "eslint", - "unitTestRunner": "vitest", - "e2eTestRunner": "playwright" - } - } -} diff --git a/packages/ckeditor5-admonition/package.json b/packages/ckeditor5-admonition/package.json index 377abce2c..33a775b76 100644 --- a/packages/ckeditor5-admonition/package.json +++ b/packages/ckeditor5-admonition/package.json @@ -67,13 +67,5 @@ "**/*.css": [ "stylelint --quiet --allow-empty-input" ] - }, - "nx": { - "name": "ckeditor5-admonition", - "targets": { - "build": { - "cache": "true" - } - } } } diff --git a/packages/ckeditor5-footnotes/package.json b/packages/ckeditor5-footnotes/package.json index b2eb2e16b..c49c08aee 100644 --- a/packages/ckeditor5-footnotes/package.json +++ b/packages/ckeditor5-footnotes/package.json @@ -66,13 +66,5 @@ "**/*.css": [ "stylelint --quiet --allow-empty-input" ] - }, - "nx": { - "name": "ckeditor5-footnotes", - "targets": { - "build": { - "cache": "true" - } - } } } diff --git a/packages/ckeditor5-keyboard-marker/package.json b/packages/ckeditor5-keyboard-marker/package.json index e4f34f135..4c00d5173 100644 --- a/packages/ckeditor5-keyboard-marker/package.json +++ b/packages/ckeditor5-keyboard-marker/package.json @@ -68,13 +68,5 @@ "**/*.css": [ "stylelint --quiet --allow-empty-input" ] - }, - "nx": { - "name": "ckeditor5-keyboard-marker", - "targets": { - "build": { - "cache": "true" - } - } } } diff --git a/packages/ckeditor5-math/package.json b/packages/ckeditor5-math/package.json index a6f30aba3..486b26559 100644 --- a/packages/ckeditor5-math/package.json +++ b/packages/ckeditor5-math/package.json @@ -70,14 +70,6 @@ "stylelint --quiet --allow-empty-input" ] }, - "nx": { - "name": "ckeditor5-math", - "targets": { - "build": { - "cache": "true" - } - } - }, "dependencies": { "@ckeditor/ckeditor5-icons": "46.0.2" } diff --git a/packages/ckeditor5-mermaid/package.json b/packages/ckeditor5-mermaid/package.json index 41d4c1594..006f3e13b 100644 --- a/packages/ckeditor5-mermaid/package.json +++ b/packages/ckeditor5-mermaid/package.json @@ -72,13 +72,5 @@ "dependencies": { "@types/lodash-es": "4.17.12", "lodash-es": "^4.17.21" - }, - "nx": { - "name": "ckeditor5-mermaid", - "targets": { - "build": { - "cache": "true" - } - } } } diff --git a/packages/ckeditor5/package.json b/packages/ckeditor5/package.json index 81d63ffd1..2159a3517 100644 --- a/packages/ckeditor5/package.json +++ b/packages/ckeditor5/package.json @@ -5,16 +5,6 @@ "private": true, "type": "module", "main": "./src/index.ts", - "nx": { - "name": "ckeditor5", - "targets": { - "typecheck": { - "dependsOn": [ - "^build" - ] - } - } - }, "dependencies": { "@triliumnext/ckeditor5-admonition": "workspace:*", "@triliumnext/ckeditor5-footnotes": "workspace:*", diff --git a/packages/codemirror/package.json b/packages/codemirror/package.json index f6d93d94a..2e1cba9a0 100644 --- a/packages/codemirror/package.json +++ b/packages/codemirror/package.json @@ -4,9 +4,6 @@ "private": true, "type": "module", "main": "./src/index.ts", - "nx": { - "name": "codemirror" - }, "dependencies": { "@codemirror/commands": "6.8.1", "@codemirror/lang-css": "6.3.1", diff --git a/packages/commons/package.json b/packages/commons/package.json index 8b9be2e0a..ebc1884d0 100644 --- a/packages/commons/package.json +++ b/packages/commons/package.json @@ -10,37 +10,5 @@ "name": "Trilium Notes Team", "email": "contact@eliandoran.me", "url": "https://github.com/TriliumNext/Notes" - }, - "nx": { - "name": "commons", - "sourceRoot": "packages/commons/src", - "targets": { - "build": { - "executor": "@nx/esbuild:esbuild", - "outputs": [ - "{options.outputPath}" - ], - "defaultConfiguration": "production", - "options": { - "main": "packages/commons/src/index.ts", - "outputPath": "packages/commons/dist", - "outputFileName": "main.js", - "tsConfig": "packages/commons/tsconfig.lib.json", - "platform": "node", - "format": [ - "esm" - ], - "declarationRootDir": "packages/commons/src" - }, - "configurations": { - "development": { - "minify": false - }, - "production": { - "minify": true - } - } - } - } } } \ No newline at end of file diff --git a/packages/express-partial-content/package.json b/packages/express-partial-content/package.json index 437e4d40f..11a2848f5 100644 --- a/packages/express-partial-content/package.json +++ b/packages/express-partial-content/package.json @@ -12,37 +12,6 @@ "stream", "typescript" ], - "nx": { - "name": "express-partial-content", - "targets": { - "build": { - "executor": "@nx/esbuild:esbuild", - "outputs": [ - "{options.outputPath}" - ], - "defaultConfiguration": "production", - "options": { - "main": "packages/express-partial-content/src/index.ts", - "outputPath": "packages/express-partial-content/dist", - "outputFileName": "main.js", - "tsConfig": "packages/express-partial-content/tsconfig.lib.json", - "platform": "node", - "format": [ - "esm" - ], - "declarationRootDir": "packages/express-partial-content/src" - }, - "configurations": { - "development": { - "minify": false - }, - "production": { - "minify": true - } - } - } - } - }, "dependencies": { "tslib": "^2.3.0" } diff --git a/packages/highlightjs/package.json b/packages/highlightjs/package.json index e2214e515..249e2373f 100644 --- a/packages/highlightjs/package.json +++ b/packages/highlightjs/package.json @@ -4,9 +4,6 @@ "private": true, "type": "module", "main": "./src/index.ts", - "nx": { - "name": "highlightjs" - }, "dependencies": { "@exercism/highlightjs-gdscript": "0.0.1", "@triliumnext/commons": "workspace:*", diff --git a/packages/share-theme/package.json b/packages/share-theme/package.json index 7c2740589..0868d34a3 100644 --- a/packages/share-theme/package.json +++ b/packages/share-theme/package.json @@ -31,8 +31,5 @@ "eslint": "^9.0.0", "highlight.js": "^11.8.0", "typescript": "^5.2.2" - }, - "nx": { - "name": "share-theme" } } diff --git a/packages/turndown-plugin-gfm/package.json b/packages/turndown-plugin-gfm/package.json index 1c9d2ab05..7d69ecd39 100644 --- a/packages/turndown-plugin-gfm/package.json +++ b/packages/turndown-plugin-gfm/package.json @@ -21,30 +21,6 @@ "github-flavored-markdown", "gfm" ], - "nx": { - "name": "turndown-plugin-gfm", - "sourceRoot": "packages/turndown-plugin-gfm/src", - "targets": { - "build": { - "executor": "@nx/esbuild:esbuild", - "outputs": [ - "{options.outputPath}" - ], - "options": { - "outputPath": "packages/turndown-plugin-gfm/dist", - "main": "packages/turndown-plugin-gfm/src/index.js", - "tsConfig": "packages/turndown-plugin-gfm/tsconfig.lib.json", - "format": [ - "esm" - ], - "declarationRootDir": "packages/turndown-plugin-gfm/src" - } - }, - "test": { - "command": "node packages/turndown-plugin-gfm/test/turndown-plugin-gfm-test.js" - } - } - }, "devDependencies": { "turndown": "7.2.1", "turndown-attendant": "0.0.3"