mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-26 01:12:30 +08:00
chore(nx): initialize empty commons project
This commit is contained in:
parent
57ecf72c90
commit
84b6764166
4
.gitignore
vendored
4
.gitignore
vendored
@ -1 +1,3 @@
|
||||
node_modules
|
||||
node_modules
|
||||
vite.config.*.timestamp*
|
||||
vitest.config.*.timestamp*
|
143
.nx/workspace-data/d/daemon.log
Normal file
143
.nx/workspace-data/d/daemon.log
Normal file
@ -0,0 +1,143 @@
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:10.054Z - Started listening on: /tmp/nix-shell-1791937-0/32649d4e7241f504a54b/d.sock
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:10.057Z - [WATCHER]: Subscribed to changes within: /home/elian/Projects/TriliumNext/Notes (native)
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:10.059Z - Established a connection. Number of open connections: 1
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:10.059Z - Established a connection. Number of open connections: 2
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:10.060Z - Closed a connection. Number of open connections: 1
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:10.062Z - [REQUEST]: Responding to the client. Shutdown initiated
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:10.062Z - Done responding to the client Shutdown initiated
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:10.062Z - Handled FORCE_SHUTDOWN. Handling time: 1. Response time: 0.
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:10.062Z - Closed a connection. Number of open connections: 0
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:10.063Z - [WATCHER]: Stopping the watcher for /home/elian/Projects/TriliumNext/Notes (sources)
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:10.063Z - [WATCHER]: Stopping the watcher for /home/elian/Projects/TriliumNext/Notes (outputs)
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:10.063Z - Server stopped because: "Request to shutdown"
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:40.235Z - Started listening on: /tmp/nix-shell-1791937-0/32649d4e7241f504a54b/d.sock
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:40.236Z - [WATCHER]: Subscribed to changes within: /home/elian/Projects/TriliumNext/Notes (native)
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:40.244Z - Established a connection. Number of open connections: 1
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:40.244Z - Established a connection. Number of open connections: 2
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:40.246Z - Closed a connection. Number of open connections: 1
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:40.247Z - [REQUEST]: Client Request for Project Graph Received
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:40.407Z - Time taken for 'Load Nx Plugin: /home/elian/Projects/TriliumNext/Notes/node_modules/nx/src/plugins/project-json/build-nodes/project-json' 158.12251999999998ms
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:40.413Z - Time taken for 'Load Nx Plugin: /home/elian/Projects/TriliumNext/Notes/node_modules/nx/src/plugins/package-json' 164.35397100000003ms
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:40.415Z - Time taken for 'loadDefaultNxPlugins' 166.931329ms
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:40.449Z - [REQUEST]: Updated workspace context based on watched changes, recomputing project graph...
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:40.449Z - [REQUEST]:
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:40.449Z - [REQUEST]:
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:40.457Z - Time taken for 'loadSpecifiedNxPlugins' 198.43803200000002ms
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:40.652Z - Time taken for 'build-project-configs' 173.63142799999997ms
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:40.657Z - Time taken for '@nx/js/typescript:createDependencies' 11.820896000000062ms
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:41.255Z - [REQUEST]: Responding to the client with an error. Error when preparing serialized project graph. Failed to process project graph.
|
||||
ProjectsWithNoNameError: The projects in the following directories have no name provided:
|
||||
- _regroup
|
||||
at validateAndNormalizeProjectRootMap (/home/elian/Projects/TriliumNext/Notes/node_modules/nx/src/project-graph/utils/project-configuration-utils.js:470:15)
|
||||
at mergeCreateNodesResults (/home/elian/Projects/TriliumNext/Notes/node_modules/nx/src/project-graph/utils/project-configuration-utils.js:353:9)
|
||||
at /home/elian/Projects/TriliumNext/Notes/node_modules/nx/src/project-graph/utils/project-configuration-utils.js:297:85
|
||||
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
||||
at async processFilesAndCreateAndSerializeProjectGraph (/home/elian/Projects/TriliumNext/Notes/node_modules/nx/src/daemon/server/project-graph-incremental-recomputation.js:160:43)
|
||||
at async getCachedSerializedProjectGraphPromise (/home/elian/Projects/TriliumNext/Notes/node_modules/nx/src/daemon/server/project-graph-incremental-recomputation.js:52:24)
|
||||
at async handleRequestProjectGraph (/home/elian/Projects/TriliumNext/Notes/node_modules/nx/src/daemon/server/handle-request-project-graph.js:12:24)
|
||||
at async handleResult (/home/elian/Projects/TriliumNext/Notes/node_modules/nx/src/daemon/server/server.js:186:16)
|
||||
at async handleMessage (/home/elian/Projects/TriliumNext/Notes/node_modules/nx/src/daemon/server/server.js:109:9)
|
||||
at async /home/elian/Projects/TriliumNext/Notes/node_modules/nx/src/daemon/server/server.js:74:9
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:41.256Z - Done responding to the client null
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:41.256Z - Handled REQUEST_PROJECT_GRAPH. Handling time: 1008. Response time: 1.
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:41.256Z - Time taken for 'total execution time for createProjectGraph()' 609.373818ms
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:41.260Z - Closed a connection. Number of open connections: 0
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:56.345Z - Established a connection. Number of open connections: 1
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:56.346Z - Closed a connection. Number of open connections: 0
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:56.346Z - Established a connection. Number of open connections: 1
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:56.347Z - [REQUEST]: Client Request for Project Graph Received
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:56.347Z - [REQUEST]: Responding to the client with an error. Error when preparing serialized project graph. Failed to process project graph.
|
||||
ProjectsWithNoNameError: The projects in the following directories have no name provided:
|
||||
- _regroup
|
||||
at validateAndNormalizeProjectRootMap (/home/elian/Projects/TriliumNext/Notes/node_modules/nx/src/project-graph/utils/project-configuration-utils.js:470:15)
|
||||
at mergeCreateNodesResults (/home/elian/Projects/TriliumNext/Notes/node_modules/nx/src/project-graph/utils/project-configuration-utils.js:353:9)
|
||||
at /home/elian/Projects/TriliumNext/Notes/node_modules/nx/src/project-graph/utils/project-configuration-utils.js:297:85
|
||||
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
||||
at async processFilesAndCreateAndSerializeProjectGraph (/home/elian/Projects/TriliumNext/Notes/node_modules/nx/src/daemon/server/project-graph-incremental-recomputation.js:160:43)
|
||||
at async getCachedSerializedProjectGraphPromise (/home/elian/Projects/TriliumNext/Notes/node_modules/nx/src/daemon/server/project-graph-incremental-recomputation.js:52:24)
|
||||
at async handleRequestProjectGraph (/home/elian/Projects/TriliumNext/Notes/node_modules/nx/src/daemon/server/handle-request-project-graph.js:12:24)
|
||||
at async handleResult (/home/elian/Projects/TriliumNext/Notes/node_modules/nx/src/daemon/server/server.js:186:16)
|
||||
at async handleMessage (/home/elian/Projects/TriliumNext/Notes/node_modules/nx/src/daemon/server/server.js:109:9)
|
||||
at async /home/elian/Projects/TriliumNext/Notes/node_modules/nx/src/daemon/server/server.js:74:9
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:56.348Z - Done responding to the client null
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:56.348Z - Handled REQUEST_PROJECT_GRAPH. Handling time: 0. Response time: 1.
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:41:56.351Z - Closed a connection. Number of open connections: 0
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:42:30.321Z - [WATCHER]: .nxignore was created or restored
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:42:30.322Z - [WATCHER]: Processing file changes in outputs
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:42:30.322Z - [WATCHER]: Stopping the watcher for /home/elian/Projects/TriliumNext/Notes (sources)
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:42:30.322Z - [WATCHER]: Stopping the watcher for /home/elian/Projects/TriliumNext/Notes (outputs)
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:42:30.322Z - Server stopped because: "Stopping the daemon the set of ignored files changed (native)"
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:42:39.550Z - Started listening on: /tmp/nix-shell-1791937-0/32649d4e7241f504a54b/d.sock
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:42:39.551Z - [WATCHER]: Subscribed to changes within: /home/elian/Projects/TriliumNext/Notes (native)
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:42:39.555Z - Established a connection. Number of open connections: 1
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:42:39.555Z - Established a connection. Number of open connections: 2
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:42:39.557Z - Closed a connection. Number of open connections: 1
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:42:39.558Z - [REQUEST]: Client Request for Project Graph Received
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:42:39.708Z - Time taken for 'Load Nx Plugin: /home/elian/Projects/TriliumNext/Notes/node_modules/nx/src/plugins/package-json' 148.491489ms
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:42:39.713Z - Time taken for 'Load Nx Plugin: /home/elian/Projects/TriliumNext/Notes/node_modules/nx/src/plugins/project-json/build-nodes/project-json' 152.85566300000002ms
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:42:39.714Z - Time taken for 'loadDefaultNxPlugins' 155.146293ms
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:42:39.748Z - [REQUEST]: Updated workspace context based on watched changes, recomputing project graph...
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:42:39.748Z - [REQUEST]:
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:42:39.748Z - [REQUEST]:
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:42:39.754Z - Time taken for 'loadSpecifiedNxPlugins' 188.43800900000002ms
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:42:39.774Z - Time taken for 'build-project-configs' 7.200493999999992ms
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:42:39.776Z - Time taken for '@nx/js/typescript:createDependencies' 4.744866999999999ms
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:42:39.784Z - [SYNC]: collect registered sync generators
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:42:39.784Z - [REQUEST]: Responding to the client. project-graph
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:42:39.785Z - Done responding to the client project-graph
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:42:39.785Z - Handled REQUEST_PROJECT_GRAPH. Handling time: 226. Response time: 1.
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:42:39.785Z - Time taken for 'total for creating and serializing project graph' 226.21320699999998ms
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:36.544Z - Established a connection. Number of open connections: 2
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:36.544Z - Established a connection. Number of open connections: 3
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:36.545Z - Closed a connection. Number of open connections: 2
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:36.545Z - [REQUEST]: Client Request for Project Graph Received
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:36.545Z - [REQUEST]: Responding to the client. project-graph
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:36.545Z - Done responding to the client project-graph
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:36.545Z - Handled REQUEST_PROJECT_GRAPH. Handling time: 0. Response time: 0.
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:36.546Z - Time taken for 'total for creating and serializing project graph' 0.18013900000369176ms
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:36.549Z - [REQUEST]: Responding to the client. handleMultiGlob
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:36.549Z - Done responding to the client handleMultiGlob
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:36.549Z - Handled MULTI_GLOB. Handling time: 1. Response time: 0.
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:36.554Z - [REQUEST]: Responding to the client. handleGlob
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:36.554Z - Done responding to the client handleGlob
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:36.554Z - Handled GLOB. Handling time: 1. Response time: 0.
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:36.557Z - [REQUEST]: Responding to the client. handleHashMultiGlob
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:36.557Z - Done responding to the client handleHashMultiGlob
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:36.557Z - Handled HASH_GLOB. Handling time: 1. Response time: 0.
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:36.590Z - [REQUEST]: Client Request for Project Graph Received
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:36.591Z - [REQUEST]: Responding to the client. project-graph
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:36.591Z - Done responding to the client project-graph
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:36.591Z - Handled REQUEST_PROJECT_GRAPH. Handling time: 1. Response time: 0.
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:36.591Z - Time taken for 'total for creating and serializing project graph' 0.20473900000797585ms
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.297Z - Established a connection. Number of open connections: 3
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.298Z - Closed a connection. Number of open connections: 2
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.298Z - Established a connection. Number of open connections: 3
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.298Z - [REQUEST]: Client Request for Project Graph Received
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.299Z - [REQUEST]: Responding to the client. project-graph
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.299Z - Done responding to the client project-graph
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.299Z - Handled REQUEST_PROJECT_GRAPH. Handling time: 1. Response time: 0.
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.299Z - Time taken for 'total for creating and serializing project graph' 0.16915899999730755ms
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.333Z - [REQUEST]: Responding to the client. handleMultiGlob
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.334Z - Done responding to the client handleMultiGlob
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.334Z - Handled MULTI_GLOB. Handling time: 1. Response time: 1.
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.338Z - [REQUEST]: Responding to the client. handleHashMultiGlob
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.339Z - Done responding to the client handleHashMultiGlob
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.339Z - Handled HASH_GLOB. Handling time: 0. Response time: 1.
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.344Z - [REQUEST]: Client Request for Project Graph Received
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.344Z - [REQUEST]: Responding to the client. project-graph
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.344Z - Done responding to the client project-graph
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.344Z - Handled REQUEST_PROJECT_GRAPH. Handling time: 0. Response time: 0.
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.344Z - Time taken for 'total for creating and serializing project graph' 0.22610799998801667ms
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.352Z - [REQUEST]: Client Request for Project Graph Received
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.353Z - [REQUEST]: Responding to the client. project-graph
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.353Z - Done responding to the client project-graph
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.353Z - Handled REQUEST_PROJECT_GRAPH. Handling time: 1. Response time: 0.
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.353Z - Time taken for 'total for creating and serializing project graph' 0.24013799999374896ms
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.451Z - [WATCHER]: 13 file(s) created or restored, 4 file(s) modified, 0 file(s) deleted
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.452Z - [WATCHER]: Processing file changes in outputs
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.452Z - Closed a connection. Number of open connections: 2
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.452Z - Closed a connection. Number of open connections: 1
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.452Z - Closed a connection. Number of open connections: 0
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.452Z - [WATCHER]: Stopping the watcher for /home/elian/Projects/TriliumNext/Notes (sources)
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.452Z - [WATCHER]: Stopping the watcher for /home/elian/Projects/TriliumNext/Notes (outputs)
|
||||
[NX v20.8.0 Daemon Server] - 2025-04-22T11:44:40.453Z - Server stopped because: "Stopping the daemon the set of ignored files changed (native)"
|
1
.nx/workspace-data/eslint-2654242865465226088.hash
Normal file
1
.nx/workspace-data/eslint-2654242865465226088.hash
Normal file
@ -0,0 +1 @@
|
||||
{}
|
3742
.nx/workspace-data/file-map.json
Normal file
3742
.nx/workspace-data/file-map.json
Normal file
File diff suppressed because it is too large
Load Diff
1
.nx/workspace-data/lockfile.hash
Normal file
1
.nx/workspace-data/lockfile.hash
Normal file
@ -0,0 +1 @@
|
||||
15041238226877418184
|
BIN
.nx/workspace-data/nx_files.nxt
Normal file
BIN
.nx/workspace-data/nx_files.nxt
Normal file
Binary file not shown.
6379
.nx/workspace-data/parsed-lock-file.json
Normal file
6379
.nx/workspace-data/parsed-lock-file.json
Normal file
File diff suppressed because it is too large
Load Diff
6777
.nx/workspace-data/project-graph.json
Normal file
6777
.nx/workspace-data/project-graph.json
Normal file
File diff suppressed because it is too large
Load Diff
1
.nx/workspace-data/source-maps.json
Normal file
1
.nx/workspace-data/source-maps.json
Normal file
@ -0,0 +1 @@
|
||||
{}
|
1
.nx/workspace-data/tsc-2568428459166798129.hash
Normal file
1
.nx/workspace-data/tsc-2568428459166798129.hash
Normal file
File diff suppressed because one or more lines are too long
1
.nx/workspace-data/tsconfig-files.hash
Normal file
1
.nx/workspace-data/tsconfig-files.hash
Normal file
@ -0,0 +1 @@
|
||||
{"version":1,"data":{"_regroup/tsconfig.json":{"data":{"options":{},"raw":{"nx":{}},"extendedConfigFiles":[]},"extendedFilesHash":"","hash":"4035316250107280252"},"_regroup/tsconfig.webpack.json":{"data":{"options":{"outDir":"_regroup/build"},"raw":{"nx":{}},"extendedConfigFiles":[]},"extendedFilesHash":"","hash":"6907118777807948892"},"_regroup_monorepo/apps/client/tsconfig.json":{"data":{"options":{},"raw":{"nx":{}},"extendedConfigFiles":[]},"extendedFilesHash":"","hash":"14767859997928425739"},"_regroup_monorepo/apps/desktop/tsconfig.json":{"data":{"options":{"outDir":"_regroup_monorepo/apps/desktop/build/src"},"raw":{"nx":{}},"extendedConfigFiles":[]},"extendedFilesHash":"","hash":"13836985792475651782"},"_regroup_monorepo/apps/dump-db/tsconfig.json":{"data":{"options":{},"raw":{"nx":{}},"extendedConfigFiles":[]},"extendedFilesHash":"","hash":"13443438839210231598"},"_regroup_monorepo/apps/edit-docs/tsconfig.json":{"data":{"options":{"outDir":"_regroup_monorepo/apps/edit-docs/build/src"},"raw":{"nx":{}},"extendedConfigFiles":[]},"extendedFilesHash":"","hash":"12225141163520618803"},"_regroup_monorepo/apps/server/tsconfig.json":{"data":{"options":{"outDir":"_regroup_monorepo/apps/server/build"},"raw":{"nx":{}},"extendedConfigFiles":[]},"extendedFilesHash":"","hash":"845305129518775256"},"_regroup_monorepo/packages/commons/tsconfig.json":{"data":{"options":{"outDir":"_regroup_monorepo/packages/commons/build"},"raw":{"nx":{}},"extendedConfigFiles":[]},"extendedFilesHash":"","hash":"6514291953471485556"},"tsconfig.base.json":{"data":{"options":{},"raw":{"nx":{}},"extendedConfigFiles":[]},"extendedFilesHash":"","hash":"8900268571896142108"},"tsconfig.json":{"data":{"options":{},"raw":{"nx":{}},"extendedConfigFiles":[{"filePath":"tsconfig.base.json"}]},"extendedFilesHash":"8900268571896142108|","hash":"1379983966652230747"}}}
|
1
.nx/workspace-data/vite-9347777721732807074.hash
Normal file
1
.nx/workspace-data/vite-9347777721732807074.hash
Normal file
@ -0,0 +1 @@
|
||||
{}
|
55
eslint.config.mjs
Normal file
55
eslint.config.mjs
Normal file
@ -0,0 +1,55 @@
|
||||
import nx from "@nx/eslint-plugin";
|
||||
|
||||
export default [
|
||||
...nx.configs["flat/base"],
|
||||
...nx.configs["flat/typescript"],
|
||||
...nx.configs["flat/javascript"],
|
||||
{
|
||||
"ignores": [
|
||||
"**/dist",
|
||||
"**/vite.config.*.timestamp*",
|
||||
"**/vitest.config.*.timestamp*"
|
||||
]
|
||||
},
|
||||
{
|
||||
files: [
|
||||
"**/*.ts",
|
||||
"**/*.tsx",
|
||||
"**/*.js",
|
||||
"**/*.jsx"
|
||||
],
|
||||
rules: {
|
||||
"@nx/enforce-module-boundaries": [
|
||||
"error",
|
||||
{
|
||||
enforceBuildableLibDependency: true,
|
||||
allow: [
|
||||
"^.*/eslint(\\.base)?\\.config\\.[cm]?js$"
|
||||
],
|
||||
depConstraints: [
|
||||
{
|
||||
sourceTag: "*",
|
||||
onlyDependOnLibsWithTags: [
|
||||
"*"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
files: [
|
||||
"**/*.ts",
|
||||
"**/*.tsx",
|
||||
"**/*.cts",
|
||||
"**/*.mts",
|
||||
"**/*.js",
|
||||
"**/*.jsx",
|
||||
"**/*.cjs",
|
||||
"**/*.mjs"
|
||||
],
|
||||
// Override or add rules here
|
||||
rules: {}
|
||||
}
|
||||
];
|
46
nx.json
46
nx.json
@ -7,7 +7,12 @@
|
||||
"sharedGlobals"
|
||||
],
|
||||
"production": [
|
||||
"default"
|
||||
"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": []
|
||||
},
|
||||
@ -25,6 +30,43 @@
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"targetDefaults": {
|
||||
"@nx/js:swc": {
|
||||
"cache": true,
|
||||
"dependsOn": [
|
||||
"^build"
|
||||
],
|
||||
"inputs": [
|
||||
"production",
|
||||
"^production"
|
||||
]
|
||||
},
|
||||
"test": {
|
||||
"dependsOn": [
|
||||
"^build"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
5202
package-lock.json
generated
5202
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
22
package.json
22
package.json
@ -4,19 +4,35 @@
|
||||
"description": "Build your personal knowledge base with TriliumNext Notes",
|
||||
"directories": {
|
||||
"doc": "docs"
|
||||
},
|
||||
},
|
||||
"scripts": {},
|
||||
"private": true,
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.8.0",
|
||||
"@nx/eslint": "20.8.0",
|
||||
"@nx/eslint-plugin": "20.8.0",
|
||||
"@nx/js": "20.8.0",
|
||||
"@nx/vite": "20.8.0",
|
||||
"@nx/web": "20.8.0",
|
||||
"@swc-node/register": "~1.9.1",
|
||||
"@swc/cli": "~0.6.0",
|
||||
"@swc/core": "~1.5.7",
|
||||
"@swc/helpers": "~0.5.11",
|
||||
"@types/node": "18.16.9",
|
||||
"@vitest/coverage-v8": "^3.0.5",
|
||||
"@vitest/ui": "^3.0.0",
|
||||
"eslint": "^9.8.0",
|
||||
"eslint-config-prettier": "^10.0.0",
|
||||
"jiti": "2.4.2",
|
||||
"jsonc-eslint-parser": "^2.1.0",
|
||||
"nx": "20.8.0",
|
||||
"tslib": "^2.3.0",
|
||||
"typescript": "~5.7.2"
|
||||
},
|
||||
"typescript": "~5.7.2",
|
||||
"typescript-eslint": "^8.19.0",
|
||||
"vite": "^6.0.0",
|
||||
"vitest": "^3.0.0"
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
],
|
||||
|
22
packages/commons/.swcrc
Normal file
22
packages/commons/.swcrc
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"jsc": {
|
||||
"target": "es2017",
|
||||
"parser": {
|
||||
"syntax": "typescript",
|
||||
"decorators": true,
|
||||
"dynamicImport": true
|
||||
},
|
||||
"transform": {
|
||||
"decoratorMetadata": true,
|
||||
"legacyDecorator": true
|
||||
},
|
||||
"keepClassNames": true,
|
||||
"externalHelpers": true,
|
||||
"loose": true
|
||||
},
|
||||
"module": {
|
||||
"type": "es6"
|
||||
},
|
||||
"sourceMaps": true,
|
||||
"exclude": ["jest.config.ts",".*\\.spec.tsx?$",".*\\.test.tsx?$","./src/jest-setup.ts$","./**/jest-setup.ts$",".*.js$"]
|
||||
}
|
11
packages/commons/README.md
Normal file
11
packages/commons/README.md
Normal file
@ -0,0 +1,11 @@
|
||||
# commons
|
||||
|
||||
This library was generated with [Nx](https://nx.dev).
|
||||
|
||||
## Building
|
||||
|
||||
Run `nx build commons` to build the library.
|
||||
|
||||
## Running unit tests
|
||||
|
||||
Run `nx test commons` to execute the unit tests via [Vitest](https://vitest.dev/).
|
24
packages/commons/eslint.config.mjs
Normal file
24
packages/commons/eslint.config.mjs
Normal file
@ -0,0 +1,24 @@
|
||||
import baseConfig from "../../eslint.config.mjs";
|
||||
|
||||
export default [
|
||||
...baseConfig,
|
||||
{
|
||||
"files": [
|
||||
"**/*.json"
|
||||
],
|
||||
"rules": {
|
||||
"@nx/dependency-checks": [
|
||||
"error",
|
||||
{
|
||||
"ignoredFiles": [
|
||||
"{projectRoot}/eslint.config.{js,cjs,mjs}",
|
||||
"{projectRoot}/vite.config.{js,ts,mjs,mts}"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"languageOptions": {
|
||||
"parser": (await import('jsonc-eslint-parser'))
|
||||
}
|
||||
}
|
||||
];
|
39
packages/commons/package.json
Normal file
39
packages/commons/package.json
Normal file
@ -0,0 +1,39 @@
|
||||
{
|
||||
"name": "@triliumnext/commons",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"exports": {
|
||||
"./package.json": "./package.json",
|
||||
".": {
|
||||
"development": "./src/index.ts",
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.js",
|
||||
"default": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"nx": {
|
||||
"sourceRoot": "packages/commons/src",
|
||||
"targets": {
|
||||
"build": {
|
||||
"executor": "@nx/js:swc",
|
||||
"outputs": [
|
||||
"{options.outputPath}"
|
||||
],
|
||||
"options": {
|
||||
"outputPath": "packages/commons/dist",
|
||||
"main": "packages/commons/src/index.ts",
|
||||
"tsConfig": "packages/commons/tsconfig.lib.json",
|
||||
"skipTypeCheck": true,
|
||||
"stripLeadingPaths": true
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"@swc/helpers": "~0.5.11"
|
||||
}
|
||||
}
|
1
packages/commons/src/index.ts
Normal file
1
packages/commons/src/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from './lib/commons.js';
|
7
packages/commons/src/lib/commons.spec.ts
Normal file
7
packages/commons/src/lib/commons.spec.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import { commons } from './commons.js';
|
||||
|
||||
describe('commons', () => {
|
||||
it('should work', () => {
|
||||
expect(commons()).toEqual('commons');
|
||||
})
|
||||
})
|
3
packages/commons/src/lib/commons.ts
Normal file
3
packages/commons/src/lib/commons.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export function commons(): string {
|
||||
return 'commons';
|
||||
}
|
13
packages/commons/tsconfig.json
Normal file
13
packages/commons/tsconfig.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"files": [],
|
||||
"include": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.lib.json"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.spec.json"
|
||||
}
|
||||
]
|
||||
}
|
32
packages/commons/tsconfig.lib.json
Normal file
32
packages/commons/tsconfig.lib.json
Normal file
@ -0,0 +1,32 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"rootDir": "src",
|
||||
"outDir": "dist",
|
||||
"tsBuildInfoFile": "dist/tsconfig.lib.tsbuildinfo",
|
||||
"emitDeclarationOnly": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"types": [
|
||||
"node"
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts"
|
||||
],
|
||||
"references": [],
|
||||
"exclude": [
|
||||
"vite.config.ts",
|
||||
"vite.config.mts",
|
||||
"vitest.config.ts",
|
||||
"vitest.config.mts",
|
||||
"src/**/*.test.ts",
|
||||
"src/**/*.spec.ts",
|
||||
"src/**/*.test.tsx",
|
||||
"src/**/*.spec.tsx",
|
||||
"src/**/*.test.js",
|
||||
"src/**/*.spec.js",
|
||||
"src/**/*.test.jsx",
|
||||
"src/**/*.spec.jsx"
|
||||
]
|
||||
}
|
34
packages/commons/tsconfig.spec.json
Normal file
34
packages/commons/tsconfig.spec.json
Normal file
@ -0,0 +1,34 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./out-tsc/vitest",
|
||||
"types": [
|
||||
"vitest/globals",
|
||||
"vitest/importMeta",
|
||||
"vite/client",
|
||||
"node",
|
||||
"vitest"
|
||||
],
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"include": [
|
||||
"vite.config.ts",
|
||||
"vite.config.mts",
|
||||
"vitest.config.ts",
|
||||
"vitest.config.mts",
|
||||
"src/**/*.test.ts",
|
||||
"src/**/*.spec.ts",
|
||||
"src/**/*.test.tsx",
|
||||
"src/**/*.spec.tsx",
|
||||
"src/**/*.test.js",
|
||||
"src/**/*.spec.js",
|
||||
"src/**/*.test.jsx",
|
||||
"src/**/*.spec.jsx",
|
||||
"src/**/*.d.ts"
|
||||
],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.lib.json"
|
||||
}
|
||||
]
|
||||
}
|
23
packages/commons/vite.config.ts
Normal file
23
packages/commons/vite.config.ts
Normal file
@ -0,0 +1,23 @@
|
||||
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
export default defineConfig(() => ({
|
||||
root: __dirname,
|
||||
cacheDir: '../../node_modules/.vite/packages/commons',
|
||||
plugins: [],
|
||||
// Uncomment this if you are using workers.
|
||||
// worker: {
|
||||
// plugins: [ nxViteTsPaths() ],
|
||||
// },
|
||||
test: {
|
||||
'watch': false,
|
||||
'globals': true,
|
||||
'environment': "node",
|
||||
'include': ["src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
|
||||
'reporters': ["default"],
|
||||
'coverage': {
|
||||
'reportsDirectory': './test-output/vitest/coverage',
|
||||
'provider': 'v8' as const,
|
||||
}
|
||||
},
|
||||
}));
|
@ -2,5 +2,9 @@
|
||||
"extends": "./tsconfig.base.json",
|
||||
"compileOnSave": false,
|
||||
"files": [],
|
||||
"references": []
|
||||
"references": [
|
||||
{
|
||||
"path": "./packages/commons"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
1
vitest.workspace.ts
Normal file
1
vitest.workspace.ts
Normal file
@ -0,0 +1 @@
|
||||
export default ['**/vite.config.{mjs,js,ts,mts}', '**/vitest.config.{mjs,js,ts,mts}'];
|
Loading…
x
Reference in New Issue
Block a user