mirror of
https://github.com/zadam/trilium.git
synced 2025-10-19 22:58:52 +02:00
chore(dx/desktop): configure dev & start-prod
This commit is contained in:
parent
24859e33c1
commit
edf53c8a0f
@ -3,7 +3,7 @@
|
|||||||
"version": "0.98.1",
|
"version": "0.98.1",
|
||||||
"description": "Build your personal knowledge base with Trilium Notes",
|
"description": "Build your personal knowledge base with Trilium Notes",
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": "main.cjs",
|
"main": "src/main.ts",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@electron/remote": "2.1.3",
|
"@electron/remote": "2.1.3",
|
||||||
"better-sqlite3": "^12.0.0",
|
"better-sqlite3": "^12.0.0",
|
||||||
@ -32,9 +32,9 @@
|
|||||||
"forge": "./electron-forge/forge.config.ts"
|
"forge": "./electron-forge/forge.config.ts"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "cross-env NODE_OPTIONS=\"--import tsx\" NODE_ENV=development TRILIUM_ENV=dev TRILIUM_DATA_DIR=data TRILIUM_RESOURCE_DIR=../server/src electron src/electron-main.ts",
|
"dev": "cross-env NODE_OPTIONS=\"--import tsx\" NODE_ENV=development TRILIUM_ENV=dev TRILIUM_DATA_DIR=data TRILIUM_RESOURCE_DIR=../server/src electron .",
|
||||||
"build": "tsx scripts/build.ts",
|
"build": "tsx scripts/build.ts",
|
||||||
"start-prod": "nx build desktop && cross-env TRILIUM_DATA_DIR=data TRILIUM_RESOURCE_DIR=dist TRILIUM_PORT=37841 electron dist/main.js"
|
"start-prod": "pnpm build && cross-env TRILIUM_DATA_DIR=data TRILIUM_PORT=37841 electron dist"
|
||||||
},
|
},
|
||||||
"license": "AGPL-3.0-only",
|
"license": "AGPL-3.0-only",
|
||||||
"author": {
|
"author": {
|
||||||
|
@ -7,8 +7,8 @@ import { join } from "path";
|
|||||||
export default class BuildHelper {
|
export default class BuildHelper {
|
||||||
|
|
||||||
private rootDir: string;
|
private rootDir: string;
|
||||||
private projectDir: string;
|
projectDir: string;
|
||||||
private outDir: string;
|
outDir: string;
|
||||||
|
|
||||||
constructor(projectPath: string) {
|
constructor(projectPath: string) {
|
||||||
this.rootDir = join(__dirname, "..");
|
this.rootDir = join(__dirname, "..");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user