chore: more optimizations

This commit is contained in:
Ruslan Konviser
2026-02-01 13:20:28 +01:00
parent f9ea611673
commit 18161a943b
12 changed files with 33 additions and 28 deletions
+5 -5
View File
@@ -20,7 +20,7 @@
"scripts": {
"config": "yarn ts-node ./.scripts/configure.ts",
"config:dev": "yarn run config -- --environment=dev",
"build:package:all": "yarn run build:package:contracts && yarn run build:package:common && yarn run build:package:config && yarn run build:package:plugin && yarn run build:package:plugins && yarn run build:package:auth && yarn run build:package:core && yarn run build:package:plugin:knowledge-base && yarn run build:package:plugin:changelog && yarn build:package:desktop-lib && yarn build:package:plugin:integration-wakatime && yarn ng build desktop-ui-lib",
"build:package:all": "yarn nx run-many -t build -p contracts,common,config,plugin,auth,core,plugin-integration-ai,plugin-integration-hubstaff,plugin-integration-upwork,plugin-integration-github,plugin-integration-jira,plugin-product-reviews,plugin-knowledge-base,plugin-changelog,desktop-lib,plugin-integration-wakatime,desktop-ui-lib",
"start:api": "yarn ng serve api",
"build:package:contracts": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=14000 yarn --cwd ./packages/contracts build",
"build:package:config": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=14000 yarn --cwd ./packages/config build",
@@ -28,16 +28,16 @@
"build:package:utils": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=14000 yarn --cwd ./packages/utils build",
"build:package:plugin": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=14000 yarn --cwd ./packages/plugin build",
"build:package:plugin:integration-wakatime": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=14000 yarn --cwd ./packages/plugins/integration-wakatime build",
"build:package:desktop-lib": "yarn run build:package:desktop-window && cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=14000 yarn nx build desktop-lib --configuration=development",
"build:package:desktop-lib:prod": "yarn run build:package:desktop-window:prod && cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=14000 yarn nx build desktop-lib --configuration=production",
"build:package:desktop-lib": "yarn nx build desktop-lib --configuration=development",
"build:package:desktop-lib:prod": "yarn nx build desktop-lib --configuration=production",
"build:package:desktop-window": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=14000 yarn nx build desktop-window --configuration=development",
"build:package:desktop-window:prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=14000 yarn nx build desktop-window --configuration=production",
"build:package:plugin:changelog": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=14000 yarn --cwd ./packages/plugins/changelog build",
"build:package:plugin:knowledge-base": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=14000 yarn --cwd ./packages/plugins/knowledge-base build",
"build:package:core": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=14000 yarn --cwd ./packages/core build",
"build:package:auth": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=14000 yarn --cwd ./packages/auth build",
"build:package:plugins": "yarn run build:package:plugin:integration-ai && yarn run build:package:plugin:integration-hubstaff && yarn run build:package:plugin:integration-upwork && yarn run build:package:plugin:integration-github && yarn run build:package:plugin:integration-jira && yarn run build:package:plugin:product-reviews",
"build": "yarn build:package:all && concurrently --raw \"yarn build:api\" \"yarn build:gauzy\"",
"build:package:plugins": "yarn nx run-many -t build -p plugin-integration-ai,plugin-integration-hubstaff,plugin-integration-upwork,plugin-integration-github,plugin-integration-jira,plugin-product-reviews",
"build": "yarn build:package:all && yarn nx run-many -t build -p api,gauzy",
"build:api": "yarn ng build api",
"build:gauzy": "yarn run postinstall.web && yarn run config:dev && yarn ng build gauzy",
"build:package:plugin:integration-ai": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=14000 yarn --cwd ./packages/plugins/integration-ai build",
+1
View File
@@ -188,6 +188,7 @@
}
},
"useInferencePlugins": false,
"useDaemon": true,
"defaultBase": "develop",
"release": {
"version": {
+17 -16
View File
@@ -56,14 +56,15 @@
"seed:jobs": "yarn seed:base ./apps/api/src/seed-jobs.ts",
"seed:module": "yarn seed:base ./apps/api/src/seed-module.ts --name",
"seed:prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=12288 yarn run build:package:api:prod && yarn run config:prod && yarn ts-node -r tsconfig-paths/register --project apps/api/tsconfig.app.json ./apps/api/src/seed.ts",
"prebuild": "rimraf dist coverage",
"clean": "rimraf dist coverage",
"bootstrap": "yarn install --ignore-scripts && yarn postinstall.manual",
"clean:cache": "yarn rimraf .cache .angular",
"clean:nx": "yarn rimraf dist tmp && yarn nx reset",
"clean:all": "yarn clean:cache && yarn clean:nx",
"build": "yarn build:package:all && concurrently --raw \"yarn build:api\" \"yarn build:gauzy\"",
"build": "yarn build:package:all && yarn nx run-many -t build -p api,gauzy",
"build:clean": "yarn clean && yarn build",
"build:lerna": "yarn lerna run --parallel build",
"build:prod": "yarn build:package:all && concurrently --raw \"yarn build:api:prod\" \"yarn build:gauzy:prod\"",
"build:prod": "yarn build:package:all && yarn nx run-many -t build -c production -p api,gauzy",
"build:gauzy": "yarn run postinstall.web && yarn run config:dev && yarn ng build gauzy",
"build:gauzy:prod": "yarn run config:prod && yarn ng:prod build gauzy -c=production --prod --verbose",
"build:gauzy:prod:quiet": "yarn run config:prod && yarn ng:prod build gauzy -c=production --prod",
@@ -81,7 +82,7 @@
"commit:lint": "commitlint -E HUSKY_GIT_PARAMS",
"semantic-release": "semantic-release",
"test": "yarn run postinstall.web && yarn run config:dev && yarn ng test",
"lint": "yarn run config:dev && yarn ng lint && yarn ng lint",
"lint": "yarn run config:dev && yarn ng lint",
"e2e": "yarn run postinstall.web && yarn run config:dev && yarn ng e2e --browser chrome",
"e2e:ci": "yarn run postinstall.web && yarn run config:prod && yarn --frozen-lockfile --cache-folder ~/.cache/yarn ng:ci e2e -c=production --prod --headless",
"affected:apps": "yarn nx affected:apps",
@@ -106,7 +107,7 @@
"postinstall.manual": "yarn node ./.scripts/postinstall.js",
"postinstall.electron": "yarn electron-builder install-app-deps && yarn node tools/electron/postinstall",
"postinstall.web": "yarn node ./decorate-angular-cli.js && yarn node tools/web/postinstall",
"build:desktop": "cross-env NODE_ENV=production yarn run copy-files-i18n-desktop && yarn run postinstall.electron && yarn run config:prod && yarn run config:desktop:prod && yarn run build:package:all:prod && yarn run pack:desktop && yarn run generate:icons:desktop --environment=prod && yarn ng:prod run gauzy:desktop-ui --base-href ./ && yarn run prepare:desktop && yarn ng:prod run api:desktop-api && yarn ng:prod build desktop-api --output-path=dist/apps/desktop/desktop-api && yarn ng:prod build desktop --base-href ./ && yarn run copy-files-desktop && yarn run copy-assets-gauzy",
"build:desktop": "cross-env NODE_ENV=production yarn run copy-files-i18n-desktop && yarn run postinstall.electron && yarn run config:prod && yarn run config:desktop:prod && yarn run build:package:all:prod && yarn run pack:desktop && yarn run generate:icons:desktop --environment=prod && yarn run prepare:desktop && concurrently \"yarn ng:prod run gauzy:desktop-ui --base-href ./\" \"yarn ng:prod run api:desktop-api\" \"yarn ng:prod build desktop-api --output-path=dist/apps/desktop/desktop-api\" && yarn ng:prod build desktop --base-href ./ && yarn run copy-files-desktop && yarn run copy-assets-gauzy",
"build:desktop:local": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=12288 yarn run build:desktop && electron dist/apps/desktop",
"build:desktop:linux": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=12288 yarn run build:desktop && npm config set cache .cache && yarn electron-builder -c.electronVersion=38.2.2 build --linux --project dist/apps/desktop",
"build:desktop:linux:release": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=12288 yarn run build:desktop && npm config set cache .cache && yarn electron-builder -c.electronVersion=38.2.2 build --linux --publish=always --project dist/apps/desktop",
@@ -168,12 +169,12 @@
"build:package:desktop-core": "yarn ng build desktop-core",
"build:package:desktop-core:prod": "yarn ng:prod build desktop-core",
"build:package:desktop-core:docker": "yarn ng:docker build desktop-core",
"build:package:desktop-window": "yarn run build:package:desktop-core && yarn ng build desktop-window",
"build:package:desktop-window:prod": "yarn run build:package:desktop-core:prod && yarn ng:prod build desktop-window",
"build:package:desktop-window:docker": "yarn run build:package:desktop-core:docker && yarn ng:docker build desktop-window",
"build:package:desktop-lib": "yarn run build:package:desktop-window && yarn ng build desktop-lib",
"build:package:desktop-lib:prod": "yarn run build:package:desktop-window:prod && yarn ng:prod build desktop-lib",
"build:package:desktop-lib:docker": "yarn run build:package:desktop-window:docker && yarn ng:docker build desktop-lib",
"build:package:desktop-window": "yarn ng build desktop-window",
"build:package:desktop-window:prod": "yarn ng:prod build desktop-window",
"build:package:desktop-window:docker": "yarn ng:docker build desktop-window",
"build:package:desktop-lib": "yarn ng build desktop-lib",
"build:package:desktop-lib:prod": "yarn ng:prod build desktop-lib",
"build:package:desktop-lib:docker": "yarn ng:docker build desktop-lib",
"build:package:desktop-ui-lib": "yarn ng build desktop-ui-lib --configuration=development",
"build:package:desktop-ui-lib:prod": "yarn ng:prod build desktop-ui-lib --configuration=production",
"build:package:desktop-ui-lib:docker": "yarn ng:docker build desktop-ui-lib --configuration=production",
@@ -338,7 +339,7 @@
"build:package:desktop-activity:docker": "yarn ng:docker build desktop-activity",
"copy-files-desktop": "copyfiles -f packages/core/src/**/*.gql dist/apps/desktop/data/",
"prepare:desktop-timer": "yarn run postinstall.electron && tsc -p apps/desktop-timer/tsconfig.electron.json",
"build:desktop-timer": "cross-env NODE_ENV=production yarn copy-files-i18n-desktop-timer && yarn run postinstall.electron && yarn run config:prod && yarn run config:desktop-timer:prod && yarn build:package:all:prod && yarn run pack:desktop-timer && yarn run generate:icons:desktop-timer --environment=prod && yarn ng:prod build desktop-timer --base-href=./ && yarn run prepare:desktop-timer && yarn ng:prod build desktop-api --configuration=production --output-path=dist/apps/desktop-timer/desktop-api && yarn run copy-assets-gauzy-timer",
"build:desktop-timer": "cross-env NODE_ENV=production yarn copy-files-i18n-desktop-timer && yarn run postinstall.electron && yarn run config:prod && yarn run config:desktop-timer:prod && yarn build:package:all:prod && yarn run pack:desktop-timer && yarn run generate:icons:desktop-timer --environment=prod && yarn run prepare:desktop-timer && concurrently \"yarn ng:prod build desktop-timer --base-href=./\" \"yarn ng:prod build desktop-api --configuration=production --output-path=dist/apps/desktop-timer/desktop-api\" && yarn run copy-assets-gauzy-timer",
"build:desktop-timer:linux": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=12288 yarn run build:desktop-timer && npm config set cache .cache && yarn electron-builder -c.electronVersion=38.2.2 build --linux --project dist/apps/desktop-timer",
"build:desktop-timer:linux:release": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=12288 yarn run build:desktop-timer && npm config set cache .cache && yarn electron-builder -c.electronVersion=38.2.2 build --linux --publish=always --project dist/apps/desktop-timer",
"build:desktop-timer:linux:release:gh": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=30000 yarn run build:desktop-timer && npm config set cache .cache && yarn electron-builder -c.electronVersion=38.2.2 build --linux --publish=always --project dist/apps/desktop-timer",
@@ -356,7 +357,7 @@
"copy-assets-gauzy-timer": "copyfiles -f apps/desktop/src/assets/snapshot-sound.wav dist/apps/desktop-timer/data/sound/",
"prepare:gauzy-server": "yarn run postinstall.electron && tsc -p apps/server/tsconfig.electron.json",
"prepare:gauzy-server:dev": "yarn run postinstall.electron && tsc -p apps/server/tsconfig.dev.json",
"build:gauzy-server": "cross-env NODE_ENV=production yarn run copy-files-i18n-server && yarn run postinstall.electron && yarn run config:prod && yarn run config:server:prod && yarn run build:package:all:prod && yarn run pack:server && yarn run generate:icons:server --environment=prod && yarn ng:prod build gauzy-server --base-href ./ && yarn run prepare:gauzy-server && yarn ng run gauzy:server-ui && yarn ng run api:gauzy-server-api && yarn run copy-files-gauzy-server",
"build:gauzy-server": "cross-env NODE_ENV=production yarn run copy-files-i18n-server && yarn run postinstall.electron && yarn run config:prod && yarn run config:server:prod && yarn run build:package:all:prod && yarn run pack:server && yarn run generate:icons:server --environment=prod && yarn run prepare:gauzy-server && yarn ng:prod build gauzy-server --base-href ./ && concurrently \"yarn ng run gauzy:server-ui\" \"yarn ng run api:gauzy-server-api\" && yarn run copy-files-gauzy-server",
"build:gauzy-server:windows": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=12288 yarn run build:gauzy-server && npm config set cache .cache && yarn electron-builder -c.electronVersion=38.2.2 -c.extraMetadata.author.name=Ever build --windows --project dist/apps/gauzy-server",
"build:gauzy-server:windows:release": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=12288 yarn run build:gauzy-server && npm config set cache .cache && yarn electron-builder -c.electronVersion=38.2.2 -c.extraMetadata.author.name=Ever build --windows --publish=always --project dist/apps/gauzy-server",
"build:gauzy-server:windows:release:gh": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=30000 yarn run build:gauzy-server && npm config set cache .cache && yarn electron-builder -c.electronVersion=38.2.2 -c.extraMetadata.author.name=Ever build --windows --publish=always --project dist/apps/gauzy-server",
@@ -464,9 +465,9 @@
"copy-files-gauzy-mcp-server": "copyfiles -f packages/core/src/**/*.gql dist/apps/server-mcp/data/",
"quick:build:gauzy-mcp-server": "yarn electron-builder -c.electronVersion=38.2.2 -c.extraMetadata.author.name=Ever build --mac --project dist/apps/server-mcp",
"generate:icons:server-mcp": "yarn run generate:icons --desktop=server-mcp",
"build:mcp:all": "yarn build:mcp-server && yarn build:mcp && yarn build:server-mcp",
"build:mcp:all:prod": "yarn build:mcp-server:prod && yarn build:mcp:prod && yarn build:server-mcp:prod",
"test:mcp:all": "yarn test:mcp-server && yarn test:mcp && yarn test:server-mcp"
"build:mcp:all": "yarn nx run-many -t build -p mcp-server,mcp,server-mcp",
"build:mcp:all:prod": "yarn nx run-many -t build -c production -p mcp-server,mcp,server-mcp",
"test:mcp:all": "yarn nx run-many -t test -p mcp-server,mcp,server-mcp"
},
"config": {
"commitizen": {
+1
View File
@@ -16,6 +16,7 @@
"build": {
"executor": "@nx/js:tsc",
"outputs": ["{options.outputPath}"],
"dependsOn": ["^build"],
"options": {
"outputPath": "dist/packages/desktop-lib",
"main": "packages/desktop-lib/src/index.ts",
+1 -1
View File
@@ -5,7 +5,7 @@
"prefix": "lib",
"projectType": "library",
"tags": [],
"implicitDependencies": ["ui-core"],
"implicitDependencies": ["ui-core", "ui-config"],
"generators": {
"@nx/angular:component": {
"style": "scss",
+2 -1
View File
@@ -10,7 +10,8 @@
"noImplicitReturns": false,
"noFallthroughCasesInSwitch": false,
"paths": {
"@gauzy/ui-core/*": ["./../../dist/packages/ui-core/*/index.d.ts"]
"@gauzy/ui-core/*": ["./../../dist/packages/ui-core/*/index.d.ts"],
"@gauzy/ui-config": ["./../../dist/packages/ui-config"]
}
},
"files": [],
+1
View File
@@ -16,6 +16,7 @@
"build": {
"executor": "@nx/js:tsc",
"outputs": ["{options.outputPath}"],
"dependsOn": ["^build"],
"options": {
"outputPath": "dist/packages/desktop-window",
"main": "packages/desktop-window/src/index.ts",
@@ -5,7 +5,7 @@
"prefix": "lib",
"projectType": "library",
"tags": [],
"implicitDependencies": ["ui-core"],
"implicitDependencies": ["ui-core", "ui-config"],
"targets": {
"build": {
"executor": "@nx/angular:package",
+1 -1
View File
@@ -5,7 +5,7 @@
"prefix": "lib",
"projectType": "library",
"tags": [],
"implicitDependencies": ["ui-core"],
"implicitDependencies": ["ui-core", "ui-config"],
"targets": {
"build": {
"executor": "@nx/angular:package",
+1 -1
View File
@@ -5,7 +5,7 @@
"prefix": "lib",
"projectType": "library",
"tags": [],
"implicitDependencies": ["ui-core"],
"implicitDependencies": ["ui-core", "ui-config"],
"targets": {
"build": {
"executor": "@nx/angular:package",
+1 -1
View File
@@ -5,7 +5,7 @@
"prefix": "lib",
"projectType": "library",
"tags": [],
"implicitDependencies": ["ui-core"],
"implicitDependencies": ["ui-core", "ui-config"],
"targets": {
"build": {
"executor": "@nx/angular:package",
+1 -1
View File
@@ -5,7 +5,7 @@
"prefix": "lib",
"projectType": "library",
"tags": [],
"implicitDependencies": [],
"implicitDependencies": ["ui-config"],
"targets": {
"build": {
"executor": "@nx/angular:package",