chore(monorepo/client): set up commons package

This commit is contained in:
Elian Doran 2025-04-18 02:45:31 +03:00
parent 25160a23a6
commit 42744acbb3
No known key found for this signature in database
8 changed files with 6927 additions and 10 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
node_modules

View File

@ -1,17 +1,8 @@
{ {
"name": "trilium",
"productName": "TriliumNext Notes",
"description": "Build your personal knowledge base with TriliumNext Notes",
"version": "0.93.0",
"license": "AGPL-3.0-only",
"main": "./electron-main.js", "main": "./electron-main.js",
"bin": { "bin": {
"trilium": "src/main.js" "trilium": "src/main.js"
}, },
"repository": {
"type": "git",
"url": "https://github.com/TriliumNext/Notes.git"
},
"type": "module", "type": "module",
"scripts": { "scripts": {
"server:start": "cross-env TRILIUM_DATA_DIR=./data TRILIUM_ENV=dev nodemon src/main.ts", "server:start": "cross-env TRILIUM_DATA_DIR=./data TRILIUM_ENV=dev nodemon src/main.ts",

View File

@ -1,5 +1,5 @@
{ {
"name": "triliumnext.notes.client", "name": "@triliumnext/client",
"version": "0.0.1", "version": "0.0.1",
"description": "JQuery-based client for TriliumNext, used for both web and desktop (via Electron)", "description": "JQuery-based client for TriliumNext, used for both web and desktop (via Electron)",
"homepage": "https://github.com/TriliumNext/Notes#readme", "homepage": "https://github.com/TriliumNext/Notes#readme",

6886
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

15
package.json Normal file
View File

@ -0,0 +1,15 @@
{
"name": "trilium",
"productName": "TriliumNext Notes",
"description": "Build your personal knowledge base with TriliumNext Notes",
"version": "0.93.0",
"license": "AGPL-3.0-only",
"repository": {
"type": "git",
"url": "https://github.com/TriliumNext/Notes.git"
},
"workspaces": [
"apps/*",
"packages/*"
]
}

View File

@ -0,0 +1,24 @@
{
"name": "@triliumnext/commons",
"version": "0.0.1",
"description": "Shared library between the clients (e.g. browser, Electron) and the server, mostly for type definitions and utility methods.",
"homepage": "https://github.com/TriliumNext/Notes#readme",
"bugs": {
"url": "https://github.com/TriliumNext/Notes/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/TriliumNext/Notes.git"
},
"license": "AGPL-3.0-only",
"author": {
"name": "TriliumNext Notes Team",
"email": "contact@eliandoran.me",
"url": "https://github.com/TriliumNext/Notes"
},
"type": "module",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
}
}