-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathpackage.json
169 lines (169 loc) · 6.15 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
{
"name": "electron-angular-app",
"productName": "Electron Angular App",
"version": "5.0.0",
"description": "An Electron and Angular Quick-starter",
"repository": "https://github.com/sourcygen/electron-angular-quick-start.git",
"author": "Sourcygen",
"license": "MIT",
"main": ".webpack/main",
"keywords": [
"angular",
"angular 17",
"electron",
"electron 27",
"typescript",
"typescript 4",
"typescript 5",
"wdio",
"webdriverio",
"chromedriver",
"scss",
"live reload"
],
"workspaces": [
"workspaces/angular-app",
"workspaces/shared-lib"
],
"scripts": {
"start": "npm-run-all -p start:shared-lib start:angular-app start:electron-app",
"start:shared-lib": "tsc -b workspaces/shared-lib -w",
"start:angular-app": "wait-on workspaces/shared-lib/.dist/index.d.ts && cd workspaces/angular-app && npm run start",
"start:electron-app": "node scripts/electron-forge-start-watch.js",
"start:electron-app:once": "wait-on http://localhost:4200 && electron-forge start",
"package": "npm run package:angular-app && npm run package:electron-app",
"package:shared-lib": "tsc -b workspaces/shared-lib",
"package:angular-app": "npm run package:shared-lib && cd workspaces/angular-app && npm run package",
"package:electron-app": "npm run package:shared-lib && electron-forge package",
"make": "npm run package:angular-app && electron-forge make",
"publish": "electron-forge publish",
"lint": "npm run package:shared-lib && eslint --ext .ts .",
"test:angular": "cd workspaces/angular-app && npx ng test --watch=false --browsers ChromeHeadless",
"test:e2e": "npm run test:angular-e2e && npm run test:electron-e2e",
"test:angular-e2e": "npm-run-all -p -r start:shared-lib start:angular-app start:angular-e2e",
"start:angular-e2e": "wait-on http://localhost:4200 && cd workspaces/angular-app && npm run cypress:run",
"test:electron-e2e": "npm run package && npm run test:electron-e2e:wdio-only",
"test:electron-e2e:wdio-only": "cross-env X_NODE_ENV=e2e-test wdio run workspaces/electron-e2e/webdriverio.config.ts",
"clean": "shx rm -rf .webpack out allure-results package-lock.json node_modules workspaces/shared-lib/.dist workspaces/angular-app/node_modules workspaces/angular-app/.angular workspaces/angular-app/.dist",
"prepare": "husky install",
"postinstall": "husky install && shx rm -rf .git/hooks && shx ln -s ../.husky .git/hooks",
"outdated-deps": "npm run outdated-deps:electron-app && npm run outdated-deps:angular-app && npm run outdated-deps:shared-lib",
"outdated-deps:electron-app": "npx ncu",
"outdated-deps:angular-app": "cd workspaces/angular-app && npx ncu",
"outdated-deps:shared-lib": "cd workspaces/shared-lib && npx ncu",
"update-deps": "npm run update-deps:electron-app && npm run update-deps:angular-app && npm run update-deps:shared-lib",
"update-deps:electron-app": "npx ncu -u && npm run clean && npm i --force",
"update-deps:angular-app": "cd workspaces/angular-app && npx ng update @angular/cli @angular/core --force && npx ncu -u && cd ../.. && npm run clean && npm i --force",
"update-deps:shared-lib": "cd workspaces/shared-lib && npx ncu -u",
"release:minor": "standard-version --release-as minor",
"release:patch": "standard-version --release-as patch",
"release:major": "standard-version --release-as major"
},
"config": {
"forge": {
"packagerConfig": {
"name": "Electron Angular App",
"executableName": "electron-angular-app",
"icon": "./workspaces/electron-app/main/assets/icons/icon"
},
"makers": [
{
"name": "@electron-forge/maker-dmg",
"config": {}
},
{
"name": "@electron-forge/maker-deb",
"config": {}
},
{
"name": "@electron-forge/maker-squirrel",
"config": {}
}
],
"plugins": [
{
"name": "@electron-forge/plugin-webpack",
"config": {
"mainConfig": "./webpack.main.config.js",
"renderer": {
"config": "./webpack.renderer.config.js",
"entryPoints": [
{
"html": "./workspaces/electron-app/renderer/index.html",
"js": "./workspaces/electron-app/renderer/index.ts",
"name": "main_window",
"preload": {
"js": "./workspaces/electron-app/renderer/preload.ts"
}
}
]
}
}
}
]
}
},
"devDependencies": {
"@commitlint/cli": "^18.4.2",
"@commitlint/config-conventional": "^18.4.2",
"@electron-forge/cli": "^7.1.0",
"@electron-forge/maker-deb": "^7.1.0",
"@electron-forge/maker-dmg": "^7.1.0",
"@electron-forge/maker-rpm": "^7.1.0",
"@electron-forge/maker-squirrel": "^7.1.0",
"@electron-forge/maker-zip": "^7.1.0",
"@electron-forge/plugin-webpack": "^7.1.0",
"@types/jasmine": "^5.1.2",
"@types/lodash": "^4.14.201",
"@types/node": "^20.9.2",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"@vercel/webpack-asset-relocator-loader": "^1.7.3",
"@wdio/allure-reporter": "^8.23.1",
"@wdio/cli": "^8.23.1",
"@wdio/jasmine-framework": "^8.23.1",
"@wdio/local-runner": "^8.23.1",
"@wdio/spec-reporter": "^8.23.1",
"allure-commandline": "^2.24.1",
"chokidar-cli": "^3.0.0",
"copy-webpack-plugin": "^11.0.0",
"cross-env": "^7.0.3",
"css-loader": "^6.8.1",
"electron": "^27.1.0",
"electron-chromedriver": "^27.1.0",
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-sonarjs": "^0.23.0",
"eslint-plugin-unicorn": "^49.0.0",
"fork-ts-checker-webpack-plugin": "^9.0.2",
"husky": "^8.0.3",
"lint-staged": "^15.1.0",
"node-loader": "^2.0.0",
"npm-check-updates": "^16.14.6",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.8",
"shx": "^0.3.4",
"standard-version": "^9.5.0",
"style-loader": "^3.3.3",
"tree-kill": "^1.2.2",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.1",
"typescript": "^5.2.2",
"wait-on": "^7.2.0",
"wdio-electron-service": "^5.4.0",
"wdio-wait-for": "^3.0.8"
},
"dependencies": {
"@electron/remote": "^2.1.0",
"electron-squirrel-startup": "^1.0.0",
"fs-extra": "^11.1.1",
"pretty-quick": "^2.0.2",
"winston": "^3.11.0"
},
"lint-staged": {
"*.ts": "npm run lint"
}
}