Skip to content

Build your personal knowledge base with Trilium Notes

chore(dx): remove unnecessary nx configs

Elian Dorand60899e3622f
diff --git a/apps/desktop-e2e/package.json b/apps/desktop-e2e/package.json
index 2e70fc803b..7a1b278c71 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 4e6a141c81..aa8f73e17c 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 927089448e..0000000000
--- 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 377abce2cb..33a775b76d 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 b2eb2e16bf..c49c08aee7 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 e4f34f135b..4c00d51738 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 a6f30aba3e..486b265598 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 41d4c15941..006f3e13bb 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 81d63ffd15..2159a35173 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 f6d93d94a2..2e1cba9a0c 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 8b9be2e0ab..ebc1884d02 100644
--- a/packages/commons/package.json
+++ b/packages/commons/package.json
@@ -10,37 +10,5 @@
"name": "Trilium Notes Team",
"email": "[email protected]",
"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 437e4d40ff..11a2848f52 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 e2214e515f..249e2373ff 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 7c27405892..0868d34a3a 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 1c9d2ab054..7d69ecd397 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"