forked from ever-co/ever-gauzy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
440 lines (440 loc) · 36.1 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
{
"name": "ever-gauzy",
"version": "0.1.0",
"description": "Ever Gauzy - Business Management Platform (ERP/CRM/HRM)",
"license": "AGPL-3.0",
"homepage": "https://gauzy.co",
"repository": {
"type": "git",
"url": "https://github.com/ever-co/ever-gauzy.git"
},
"bugs": {
"url": "https://github.com/ever-co/ever-gauzy/issues"
},
"private": true,
"author": {
"name": "Ever Co. LTD",
"email": "ever@ever.co",
"url": "https://ever.co"
},
"keywords": [],
"scripts": {
"prepare:husky": "npx husky install .husky",
"ng": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=12288 yarn nx",
"ng:prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn nx",
"ng:docker": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=30000 yarn nx",
"ng:ci": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn nx",
"config": "yarn ts-node ./.scripts/configure.ts",
"config:dev": "yarn run config -- --environment=dev",
"config:prod": "yarn run config -- --environment=prod",
"start": "yarn build:package:all && yarn concurrently --raw --kill-others \"yarn start:api\" \"yarn start:gauzy\"",
"start:prod": "yarn build:package:all && yarn concurrently --raw --kill-others \"yarn start:api:prod\" \"yarn start:gauzy:prod\"",
"start:gauzy": "yarn run postinstall.web && yarn run config:dev && yarn ng serve gauzy --open",
"start:gauzy:forever": "yarn run config:dev && forever start node_modules/@angular/cli/bin/ng serve gauzy --disable-host-check --host 0.0.0.0",
"start:gauzy:pm2": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=4096 yarn build:package:all && yarn build:gauzy && yarn ts-node ./apps/gauzy/src/pm2bootstrap.ts",
"start:gauzy:prod": "yarn run config:prod && yarn ng serve gauzy --configuration production --disable-host-check --host 0.0.0.0 --prod",
"start:api": "yarn ng serve api",
"start:api:prod": "yarn ng:prod serve api --host 0.0.0.0 -c=production --prod",
"start:api:ci": "yarn --frozen-lockfile --cache-folder ~/.cache/yarn ng:ci serve api -c=production --prod",
"start:api:forever": "forever start node_modules/@angular/cli/bin/ng serve api --host 0.0.0.0",
"start:api:pm2": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=4096 yarn run build:api && yarn ts-node -r tsconfig-paths/register --project apps/api/tsconfig.app.json ./apps/api/src/pm2bootstrap.ts",
"start:api:core": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=4096 yarn --cwd ./packages/core start:api",
"migration:run": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn build:package:all && yarn run config:dev && yarn ts-node -r tsconfig-paths/register --project apps/api/tsconfig.app.json ./apps/api/src/migration.ts migration:run",
"migration:revert": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn build:package:all && yarn run config:dev && yarn ts-node -r tsconfig-paths/register --project apps/api/tsconfig.app.json ./apps/api/src/migration.ts migration:revert",
"migration:generate": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn build:package:all && yarn run config:dev && yarn ts-node -r tsconfig-paths/register --project apps/api/tsconfig.app.json ./apps/api/src/migration.ts migration:generate",
"migration:create": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn build:package:all && yarn run config:dev && yarn ts-node -r tsconfig-paths/register --project apps/api/tsconfig.app.json ./apps/api/src/migration.ts migration:create",
"migration:command": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/core",
"seed": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn build:package:all && yarn run config:dev && yarn ts-node -r tsconfig-paths/register --project apps/api/tsconfig.app.json ./apps/api/src/seed.ts",
"seed:ever": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn build:package:all && yarn run config:dev && yarn ts-node -r tsconfig-paths/register --project apps/api/tsconfig.app.json ./apps/api/src/seed-ever.ts",
"seed:all": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn build:package:all && yarn run config:dev && yarn ts-node -r tsconfig-paths/register --project apps/api/tsconfig.app.json ./apps/api/src/seed-all.ts",
"seed:jobs": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn build:package:all && yarn run config:dev && yarn ts-node -r tsconfig-paths/register --project apps/api/tsconfig.app.json ./apps/api/src/seed-jobs.ts",
"seed:module": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn build:package:all && yarn run config:dev && yarn ts-node -r tsconfig-paths/register --project apps/api/tsconfig.app.json ./apps/api/src/seed-module.ts --name",
"seed:prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn build:package:all && yarn run config:prod && yarn ts-node -r tsconfig-paths/register --project apps/api/tsconfig.app.json ./apps/api/src/seed.ts",
"bootstrap": "yarn install && yarn lerna bootstrap",
"prebuild": "rimraf dist coverage",
"build": "yarn build:package:all && concurrently --raw \"yarn build:api\" \"yarn build:gauzy\"",
"build:lerna": "yarn lerna run --parallel build",
"build:prod": "yarn build:package:all && concurrently --raw \"yarn build:api:prod\" \"yarn build:gauzy:prod\"",
"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:docker": "yarn run config:prod && yarn ng:docker build gauzy -c=production --prod --verbose",
"build:gauzy:prod:ci": "yarn run config:prod && yarn --frozen-lockfile --cache-folder ~/.cache/yarn ng:ci build gauzy -c=production --prod --verbose",
"build:api": "yarn ng build api",
"build:api:prod": "yarn ng:prod build api -c=production --prod",
"build:api:prod:docker": "yarn ng:docker build api -c=production --prod",
"build:api:prod:ci": "yarn --frozen-lockfile --cache-folder ~/.cache/yarn ng:ci build api -c=production --prod",
"bundle-report": "yarn run config:prod && yarn ng:prod build -c=production --stats-json && webpack-bundle-analyzer dist/apps/gauzy/stats.json",
"commit": "git-cz",
"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",
"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",
"affected:libs": "yarn nx affected:libs",
"affected:build": "yarn nx affected:build",
"affected:e2e": "yarn nx affected:e2e",
"affected:test": "yarn nx affected:test",
"affected:lint": "yarn nx affected:lint",
"affected:dep-graph": "yarn nx affected:dep-graph",
"affected": "yarn nx affected",
"format": "yarn nx format:write",
"format:write": "yarn nx format:write",
"format:check": "yarn nx format:check",
"update": "yarn ng update @nrwl/workspace",
"update:check": "yarn ng update",
"workspace-schematic": "yarn nx workspace-schematic",
"dep-graph": "yarn nx dep-graph",
"help": "yarn nx help",
"doc:build": "compodoc -p tsconfig.json -d dist/docs",
"doc:serve": "compodoc -s -d dist/docs",
"doc:build-serve": "compodoc -p tsconfig.json -d docs -s",
"postinstall.electron": "yarn electron-builder install-app-deps && yarn node tools/electron/postinstall",
"postinstall.web": "yarn node ./decorate-angular-cli.js && yarn npx ngcc --properties es2016 browser module main --first-only --create-ivy-entry-points && yarn node tools/web/postinstall",
"build:desktop": "cross-env NODE_ENV=production yarn run copy-files-i18n-desktop && yarn run postinstall.electron && yarn build:package:all && yarn run config:prod && yarn run config:desktop:prod && yarn run pack:desktop && yarn run generate:icons:desktop --environment=prod && yarn ng:prod build desktop --prod --base-href ./ && yarn run prepare:desktop && yarn ng:prod build desktop-api --prod && yarn ng:prod build api-desktop --prod --output-path=dist/apps/desktop/desktop-api && yarn ng:prod build desktop-ui --prod --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=7000 yarn run config:prod && yarn run build:desktop && electron dist/apps/desktop",
"build:desktop:linux": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn run config:prod && yarn run build:desktop && npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 build --linux --project dist/apps/desktop",
"build:desktop:windows": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn run config:prod && yarn run build:desktop && npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 -c.extraMetadata.author.name=Ever build --windows --project dist/apps/desktop",
"build:desktop:mac": "yarn run build:desktop && npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 build --mac --project dist/apps/desktop",
"build:desktop:linux:release": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn run config:prod && yarn run build:desktop && npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 build --linux --publish=always --project dist/apps/desktop",
"build:desktop:linux:release:gh": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=30000 yarn run config:prod && yarn run build:desktop && npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 build --linux --publish=always --project dist/apps/desktop",
"build:desktop:windows:release": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn run config:prod && yarn run build:desktop && npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 -c.extraMetadata.author.name=Ever build --windows --publish=always --project dist/apps/desktop",
"build:desktop:windows:release:gh": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=30000 yarn run config:prod && yarn run build:desktop && npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 -c.extraMetadata.author.name=Ever build --windows --publish=always --project dist/apps/desktop",
"build:desktop:mac:release": "yarn run build:desktop && npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 build --mac --publish=always --project dist/apps/desktop",
"prepare:desktop": "yarn run postinstall.electron && tsc -p apps/desktop/tsconfig.json",
"serve:desktop.target": "yarn ng serve desktop",
"serve:desktop": "wait-on http-get://localhost:4200/ && electron apps/desktop/src --serve",
"start:desktop": "yarn run prepare:desktop && npm-run-all -p serve.electron.gauzy-desktop.target serve.electron.gauzy-desktop",
"build:desktop:mac:quick": "npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 build --mac --project dist/apps/desktop",
"build:desktop:local:quick": "yarn electron dist/apps/desktop --prod",
"build:desktop:windows:quick": "npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 build --windows --project dist/apps/desktop",
"build:sqlite:mac": "cd node_modules/sqlite3 && HOME=~/.electron-gyp node-pre-gyp rebuild --target=8.3.0 --arch=x64 --dist-url=https://electronjs.org/headers",
"build:sqlite:windows": "cd node_modules/sqlite3 && cross-env HOME=~/.electron-gyp node-pre-gyp rebuild --target=8.3.0 --arch=x64 --target_platform=win32 --dist-url=https://electronjs.org/headers",
"debug:desktop:app:mac": "lldb ./dist/apps/desktop-packages/mac/GauzyDesktop.app && run",
"start:desktop:ui": "yarn run postinstall.web && yarn ng serve desktop-ui",
"build:desktop:ui": "yarn run postinstall.web && yarn ng:prod build desktop-ui --prod --base-href ./",
"prepare:desktop:dev": "yarn run postinstall.electron && tsc -p apps/desktop/tsconfig.dev.json",
"start:api:desktop": "yarn ng serve api-desktop",
"deploy:desktop:mac": "npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 build --mac --publish always --project dist/apps/desktop",
"build:package:auth": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/auth build",
"build:package:auth:prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/auth build",
"build:package:core": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/core build",
"build:package:core:prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/core build",
"build:package:common": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/common build",
"build:package:common:prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/common build",
"build:package:common-angular": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/common-angular build",
"build:package:common-angular:prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/common-angular build",
"build:package:contracts": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/contracts build",
"build:package:contracts:prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/contracts build",
"build:package:config": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/config build",
"build:package:config:prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/config build:prod",
"build:package:plugin": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/plugin build",
"build:package:plugin:prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/plugin 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:product-reviews && yarn run build:package:plugin:integration-github && yarn run build:package:plugin:integration-jira",
"build:package:plugins:prod": "yarn run build:package:plugin:integration-ai:prod && yarn run build:package:plugin:integration-hubstaff:prod && yarn run build:package:plugin:integration-upwork:prod && yarn run build:package:plugin:product-reviews:prod && yarn run build:package:plugin:integration-github:prod && yarn run build:package:plugin:integration-jira:prod",
"build:package:plugin:integration-ai": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/plugins/integration-ai build",
"build:package:plugin:integration-ai:prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/plugins/integration-ai build",
"build:package:plugin:integration-hubstaff": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/plugins/integration-hubstaff build",
"build:package:plugin:integration-hubstaff:prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/plugins/integration-hubstaff build",
"build:package:plugin:integration-upwork": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/plugins/integration-upwork build",
"build:package:plugin:integration-upwork:prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/plugins/integration-upwork build",
"build:package:plugin:integration-github": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/plugins/integration-github build",
"build:package:plugin:integration-github:prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/plugins/integration-github build",
"build:package:plugin:integration-jira": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/plugins/integration-jira build",
"build:package:plugin:integration-jira:prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/plugins/integration-jira build",
"build:package:plugin:product-reviews": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/plugins/product-reviews build",
"build:package:plugin:product-reviews:prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/plugins/product-reviews build",
"build:package:plugin:knowledge-base": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/plugins/knowledge-base build",
"build:package:plugin:knowledge-base:prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/plugins/knowledge-base build",
"build:package:plugin:changelog": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/plugins/changelog build",
"build:package:plugin:changelog:prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/plugins/changelog build",
"build:package:plugin:integration-wakatime": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/plugins/integration-wakatime build",
"build:package:plugin:integration-wakatime:prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/plugins/integration-wakatime build",
"build:package:all": "yarn run build:package:contracts && yarn run build:package:common && yarn run build:package:common-angular && 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-libs && yarn build:package:plugin:integration-wakatime && yarn build:package:desktop-ui-lib",
"build:package:desktop-window": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/desktop-window build",
"build:package:desktop-libs": "yarn run build:package:desktop-window && cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/desktop-libs build",
"build:package:api": "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",
"build:package:api:prod": "yarn run build:package:contracts:prod && yarn run build:package:common:prod && yarn run build:package:config:prod && yarn run build:package:plugin:prod && yarn run build:package:plugins:prod && yarn run build:package:auth:prod && yarn run build:package:core:prod && yarn run build:package:plugin:knowledge-base:prod && yarn run build:package:plugin:changelog:prod",
"build:package:gauzy": "yarn run build:package:contracts && yarn run build:package:common && yarn run build:package:common-angular && 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",
"build:package:desktop-ui-lib": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=7000 yarn --cwd ./packages/desktop-ui-lib build",
"copy-files-desktop": "copyfiles -f packages/core/src/**/*.gql dist/apps/desktop/data/",
"build:desktop-timer": "cross-env NODE_ENV=production yarn copy-files-i18n-desktop-timer && yarn run postinstall.electron && yarn build:package:all && yarn run config:prod && yarn run config:desktop-timer:prod && yarn run pack:desktop-timer && yarn run generate:icons:desktop-timer --environment=prod && yarn ng:prod build desktop-timer --prod --base-href ./ && yarn run prepare:desktop-timer && yarn ng:prod build api-desktop --prod --output-path=dist/apps/desktop-timer/desktop-api && yarn run copy-assets-gauzy-timer",
"prepare:desktop-timer": "yarn run postinstall.electron && tsc -p apps/desktop-timer/tsconfig.json",
"build:desktop-timer:linux": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn run config:prod && yarn run build:desktop-timer && npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 build --linux --project dist/apps/desktop-timer",
"build:desktop-timer:windows": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn run config:prod && yarn run build:desktop-timer && npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 -c.extraMetadata.author.name=Ever build --windows --project dist/apps/desktop-timer",
"build:desktop-timer:mac": "yarn run build:desktop-timer && npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 build --mac --project dist/apps/desktop-timer",
"build:desktop-timer:linux:release": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn run config:prod && yarn run build:desktop-timer && npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 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 config:prod && yarn run build:desktop-timer && npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 build --linux --publish=always --project dist/apps/desktop-timer",
"build:desktop-timer:windows:release": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn run config:prod && yarn run build:desktop-timer && npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 -c.extraMetadata.author.name=Ever build --windows --publish=always --project dist/apps/desktop-timer",
"build:desktop-timer:windows:release:gh": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=30000 yarn run config:prod && yarn run build:desktop-timer && npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 -c.extraMetadata.author.name=Ever build --windows --publish=always --project dist/apps/desktop-timer",
"build:desktop-timer:mac:release": "yarn run build:desktop-timer && npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 build --mac --publish=always --project dist/apps/desktop-timer",
"copy-assets-gauzy": "copyfiles -f apps/desktop/src/assets/snapshot-sound.wav dist/apps/desktop/data/sound/",
"copy-assets-gauzy-timer": "copyfiles -f apps/desktop/src/assets/snapshot-sound.wav dist/apps/desktop-timer/data/sound/",
"config:electron": "yarn ts-node ./.scripts/electron.env.ts",
"config:server:prod": "yarn run config:electron -- --environment=prod --desktop=server",
"config:desktop:prod": "yarn run config:electron -- --environment=prod --desktop=desktop",
"config:desktop-timer:prod": "yarn run config:electron -- --environment=prod --desktop=desktop-timer",
"prepare:gauzy-server": "yarn run postinstall.electron && tsc -p apps/server/tsconfig.json",
"build:gauzy-server": "cross-env NODE_ENV=production yarn run copy-files-i18n-server && yarn run postinstall.electron && yarn build:package:all && yarn run config:prod && yarn run config:server:prod && yarn run pack:server && yarn run generate:icons:server --environment=prod && yarn ng:prod build gauzy-server --prod --base-href ./ && yarn run prepare:gauzy-server && yarn ng:prod build gauzy-server-ui --prod --base-href ./ && yarn ng:prod build gauzy-server-api --prod && yarn run copy-files-gauzy-server",
"copy-files-gauzy-server": "copyfiles -f packages/core/src/**/*.gql dist/apps/gauzy-server/data/",
"build:gauzy-server:windows": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn run config:prod && yarn run build:gauzy-server && npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 -c.extraMetadata.author.name=Ever build --windows --project dist/apps/gauzy-server",
"build:gauzy-server:linux": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn run config:prod && yarn run build:gauzy-server && npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 build --linux --project dist/apps/gauzy-server",
"build:gauzy-server:mac": "yarn run build:gauzy-server && npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 build --mac --project dist/apps/gauzy-server",
"build:gauzy-server:windows:release": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn run config:prod && yarn run build:gauzy-server && npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 -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 config:prod && yarn run build:gauzy-server && npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 -c.extraMetadata.author.name=Ever build --windows --publish=always --project dist/apps/gauzy-server",
"build:gauzy-server:linux:release": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=7000 yarn run config:prod && yarn run build:gauzy-server && npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 build --linux --publish=always --project dist/apps/gauzy-server",
"build:gauzy-server:linux:release:gh": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=30000 yarn run config:prod && yarn run build:gauzy-server && npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 build --linux --publish=always --project dist/apps/gauzy-server",
"build:gauzy-server:mac:release": "yarn run build:gauzy-server && npm config set cache .cache && yarn electron-builder -c.electronVersion=28.1.0 build --mac --publish=always --project dist/apps/gauzy-server",
"quick:build:gauzy-server": "yarn electron-builder -c.electronVersion=28.1.0 -c.extraMetadata.author.name=Ever build --mac --project dist/apps/gauzy-server",
"copy-files-i18n-desktop-timer": "yarn run download:translations --desktop=desktop-timer",
"copy-files-i18n-desktop": "yarn run download:translations --desktop=desktop",
"copy-files-i18n-server": "yarn run download:translations --desktop=server",
"generate:icons": "yarn ts-node .scripts/icon-utils/icon-factory.ts",
"generate:icons:desktop-timer": "yarn run generate:icons --desktop=desktop-timer",
"generate:icons:desktop": "yarn run generate:icons --desktop=desktop",
"generate:icons:server": "yarn run generate:icons --desktop=server",
"pack": "yarn ts-node .scripts/electron-package-utils/package-util.ts",
"pack:desktop-timer": "yarn run pack --desktop=desktop-timer",
"pack:desktop": "yarn run pack --desktop=desktop",
"pack:server": "yarn run pack --desktop=server",
"download:translations": "yarn ts-node .scripts/translation/translation-util.ts"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "pretty-quick --no-verify --staged"
}
},
"lint-staged": {},
"release": {
"verifyConditions": [
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git",
"@semantic-release/github"
],
"prepare": [
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git"
],
"publish": [
"@semantic-release/github"
],
"generateNotes": {
"preset": "angular"
},
"npmPublish": false
},
"workspaces": {
"packages": [
"libs/*",
"apps/*",
"tools",
"packages/*",
"packages/plugins/*"
],
"nohoist": [
"**/@types/jasmine",
"**/@types/jasminewd2",
"**/@angular*/**",
"**/@ngtools/**"
]
},
"resolutions": {
"@angular-devkit/architect": "^0.1602.11",
"@angular-devkit/build-angular": "^16.2.11",
"@angular-devkit/core": "^16.2.11",
"rxjs": "^7.4.0",
"autoprefixer": "10.4.14"
},
"dependencies": {
"@angular/animations": "^16.2.12",
"@angular/cdk": "^16.2.12",
"@angular/common": "^16.2.12",
"@angular/compiler": "^16.2.12",
"@angular/core": "^16.2.12",
"@angular/forms": "^16.2.12",
"@angular/language-service": "^16.2.12",
"@angular/material": "^16.2.12",
"@angular/platform-browser": "^16.2.12",
"@angular/platform-browser-dynamic": "^16.2.12",
"@angular/router": "^16.2.12",
"@angular/service-worker": "^16.2.12",
"@nebular/auth": "^12.0.0",
"@nebular/bootstrap": "^9.1.0-rc.6",
"@nebular/eva-icons": "^12.0.0",
"@nebular/security": "^12.0.0",
"@nebular/theme": "^12.0.0",
"@ng-select/ng-select": "^11.2.0",
"angular2-smart-table": "^3.2.0",
"autoprefixer": "10.4.14",
"bcrypt": "^5.1.0",
"dotenv": "^16.0.3",
"ffi-napi": "^4.0.3",
"iconv": "^3.0.1",
"jsdom": "^23.0.1",
"lodash-es": "^4.17.21",
"parse5": "^7.1.2",
"rxjs": "^7.4.0",
"unleash": "^2.0.2",
"yargs": "^17.5.0"
},
"devDependencies": {
"@angular-devkit/architect": "^0.1602.11",
"@angular-devkit/build-angular": "^16.2.11",
"@angular-devkit/core": "^16.2.11",
"@angular-devkit/schematics": "16.2.11",
"@angular-eslint/eslint-plugin": "^16.2.0",
"@angular-eslint/eslint-plugin-template": "^16.2.0",
"@angular/cli": "^16.2.11",
"@angular/compiler-cli": "^16.2.12",
"@commitlint/cli": "^17.6.6",
"@commitlint/config-conventional": "^17.6.6",
"@commitlint/config-lerna-scopes": "^17.6.6",
"@commitlint/travis-cli": "^17.6.6",
"@compodoc/compodoc": "^1.1.19",
"@cypress/browserify-preprocessor": "^3.0.2",
"@electron/remote": "^2.0.8",
"@nrwl/angular": "15.9.4",
"@nrwl/cli": "15.9.4",
"@nrwl/cypress": "15.9.4",
"@nrwl/eslint-plugin-nx": "15.9.4",
"@nrwl/jest": "15.9.4",
"@nrwl/linter": "15.9.4",
"@nrwl/nest": "15.9.4",
"@nrwl/node": "15.9.4",
"@nrwl/nx-cloud": "16.5.2",
"@nrwl/tao": "15.9.4",
"@nrwl/workspace": "15.9.4",
"@nstudio/angular": "^15.0.3",
"@nstudio/electron": "^15.0.3",
"@nstudio/electron-angular": "^15.0.3",
"@nstudio/web": "^15.0.3",
"@nstudio/web-angular": "^15.0.3",
"@nstudio/xplat": "^15.0.3",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.0",
"@semantic-release/github": "^7.2.1",
"@semantic-release/npm": "^7.1.1",
"@types/jest": "^29.4.4",
"@types/jsdom": "^21.1.6",
"@types/webpack": "^5.28.5",
"@types/yargs": "^15.0.9",
"ajv-formats": "^2.1.1",
"cloc": "^2.7.0",
"codecov": "^3.8.3",
"codelyzer": "^6.0.1",
"commitizen": "^4.2.1",
"concurrently": "^5.3.0",
"conventional-changelog": "^3.1.23",
"conventional-changelog-cli": "^2.1.0",
"copy-webpack-plugin": "^9.0.1",
"cross-env": "^7.0.3",
"cspell": "^6.18.1",
"cypress": "^9.4.1",
"cypress-cucumber-preprocessor": "^4.3.1",
"cypress-file-upload": "^5.0.8",
"cz-conventional-changelog": "^3.3.0",
"electron": "28.1.0",
"electron-builder": "^24.6.4",
"envalid": "^6.0.2",
"esbuild": "^0.15.13",
"eslint-plugin-cypress": "2.13.4",
"fork-ts-checker-webpack-plugin": "^5.2.0",
"gulp-tag-version": "^1.3.1",
"husky": "^6.0.0",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"jest-jasmine2": "29.4.3",
"jest-preset-angular": "13.1.4",
"lerna": "^4.0.0",
"lerna-changelog": "^1.0.1",
"lighthouse": "^6.3.0",
"lint-staged": "^10.4.0",
"ng-packagr": "16.2.3",
"node-gyp": "^9.3.1",
"npm-run-all": "^4.1.5",
"nx": "15.9.4",
"nx-cloud": "^16.5.2",
"pkg": "^5.3.0",
"png-to-ico": "^2.1.8",
"prettier": "^2.8.4",
"prettier-tslint": "^0.4.2",
"pretty-quick": "^3.1.0",
"protractor": "^7.0.0",
"rimraf": "^3.0.2",
"semantic-release": "^17.4.2",
"simple-git": "^3.20.0",
"stylelint": "^15.10.1",
"ts-jest": "29.1.1",
"ts-loader": "^8.0.4",
"ts-node": "^10.9.1",
"tsconfig-paths": "^3.9.0",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0",
"tslint-language-service": "^0.9.9",
"typedoc": "^0.23.24",
"typescript": "5.1.6",
"webpack": "^5.58.1",
"webpack-bundle-analyzer": "^4.4.2",
"webpack-cli": "^4.9.0",
"webpack-merge": "^5.8.0",
"webpack-node-externals": "^3.0.0"
},
"overrides": {
"prebuild": {
"node-gyp": "$node-gyp"
},
"iconv": {
"node-gyp": "9.3.1"
}
},
"engines": {
"node": ">=16.20.1",
"yarn": ">=1.22.19"
},
"prettier": {
"printWidth": 120,
"singleQuote": true,
"semi": true,
"useTabs": true,
"tabWidth": 4,
"arrowParens": "always",
"trailingComma": "none",
"quoteProps": "as-needed",
"trimTrailingWhitespace": true,
"overrides": [
{
"files": "*.scss",
"options": {
"useTabs": false,
"tabWidth": 2
}
},
{
"files": "*.yml",
"options": {
"useTabs": false,
"tabWidth": 2
}
}
]
},
"snyk": true,
"xplat": {
"prefix": "gauzy",
"framework": "angular"
}
}