-
Notifications
You must be signed in to change notification settings - Fork 224
/
package.json
281 lines (281 loc) · 9.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
{
"name": "advanced-rest-client",
"description": "The Advanced REST Client desktop application.",
"version": "17.0.9",
"homepage": "https://advancedrestclient.com",
"license": "Apache-2.0",
"author": {
"name": "Pawel Uchida-Psztyc",
"email": "pawel.psztyc@gmail.com"
},
"repository": {
"url": "https://github.com/advanced-rest-client/arc-electron"
},
"bugs": {
"url": "https://github.com/advanced-rest-client/arc-electron/issues",
"email": "arc@mulesoft.com"
},
"scripts": {
"start": "electron . --dev --debug-level=\"silly\" --skip-app-update --skip-themes-update --with-devtools --workspace-path=\"~/arc-dev/workspace\" --settings-file=\"~/arc-dev/dev-settings.json\" --state-file=\"~/arc-dev/dev-state.json\" --themes-path=\"~/arc-dev/themes-esm\"",
"start:proxy": "electron . --dev --debug-level=\"silly\" --skip-app-update --skip-themes-update --with-devtools --workspace-path=\"~/arc-dev/workspace\" --settings-file=\"~/arc-dev/dev-settings.json\" --state-file=\"~/arc-dev/dev-state.json\" --themes-path=\"~/arc-dev/themes-esm\" --proxy=192.168.86.249:8118 --proxy-all",
"start:proxy:system": "electron . --dev --debug-level=\"silly\" --skip-app-update --skip-themes-update --with-devtools --workspace-path=\"~/arc-dev/workspace\" --settings-file=\"~/arc-dev/dev-settings.json\" --state-file=\"~/arc-dev/dev-state.json\" --themes-path=\"~/arc-dev/themes-esm\" --proxy-system-settings --proxy-all",
"start:api": "node dev-api/api.js",
"start:updater": "electron . --debug-level=\"silly\" --skip-themes-update --with-devtools --workspace-path=\"~/arc-dev/workspace\" --settings-file=\"~/arc-dev/dev-settings.json\" --state-file=\"~/arc-dev/dev-state.json\" --themes-path=\"~/arc-dev/themes-esm\"",
"postinstall": "node tasks/jsv-fix.js && electron-builder install-app-deps",
"prepare": "husky install && node tasks/prepare-app.js && npm run bundle:ui",
"test": "npm run test:main",
"test:main": "NODE_ENV=test ELECTRON_PATH=node_modules/.bin/electron electron-mocha --config test/main.mocharc.js test/**/*.main.spec.js",
"test:renderer": "NODE_ENV=test ELECTRON_PATH='node_modules/.bin/electron' electron-mocha --renderer --require-main 'test/renderer-setup-environment.js' --preload 'test/test-preload.js' test/**/*.renderer.spec.js",
"test:renderer:watch": "NODE_ENV=test ELECTRON_PATH='node_modules/.bin/electron' electron-mocha --watch --renderer --require-main 'test/renderer-setup-paths.js' scripts/packages/**/*.renderer.spec.js",
"test:app": "NODE_ENV=test ELECTRON_PATH=node_modules/.bin/electron mocha test/**/*.app.spec.js --timeout 10000",
"test:win:all": "npm run test-win-main && npm run test:win:app",
"test:win:main": "node node_modules/.bin/electron-mocha test/**/*.main.spec.js",
"test:win:app": "node node_modules/.bin/mocha test/**.app.spec.js",
"build-l": "npx electron-builder -l",
"build-w": "npx electron-builder -w",
"build-m": "npx electron-builder -m",
"pack": "electron-builder --dir",
"dist": "electron-builder",
"start-drive": "electron . --inspect --debug --debug-level=\"silly\" --with-devtools --workspace-path=\"~/arc-dev/workspace\" --settings-file=\"~/arc-dev/dev-settings.json\" --themes-path=\"~/arc-dev/themes\" arc-file://drive/open/1_PAI-CGHqi_pZCV8ZZ_9_N-LGMjkAYzn",
"resetmodules": "rm -rf node_modules/ && rm -rf web_modules/ && rm package-lock.json && npm i",
"bundle:ui": "node tasks/ui-build.js"
},
"main": "src/io/main.js",
"devDependencies": {
"@advanced-rest-client/app": "^1.0.4",
"@advanced-rest-client/icons": "^4.0.0",
"@advanced-rest-client/idb-store": "^1.0.0",
"@advanced-rest-client/monaco-support": "^1.0.1",
"@advanced-rest-client/pouchdb-quick-search": "^2.0.3",
"@commitlint/cli": "^16.1.0",
"@commitlint/config-conventional": "^16.0.0",
"@open-wc/eslint-config": "^7.0.0",
"@types/chai": "^4.2.18",
"@types/esm": "^3.2.0",
"@types/fs-extra": "^9.0.11",
"@types/jexl": "^2.3.0",
"@types/mime-types": "^2.1.0",
"@types/mocha": "^9.0.0",
"@types/pouchdb": "^6.4.0",
"@types/uuid": "^8.3.1",
"chai": "^4.3.4",
"chance": "^1.1.8",
"dotenv": "^16.0.0",
"electron": "^17.0.0",
"electron-builder": "^22.13.1",
"electron-builder-notarize": "^1.2.0",
"electron-mocha": "^11.0.2",
"electron-notarize": "^1.1.1",
"electron-reloader": "^1.2.1",
"esbuild": "^0.14.1",
"eslint": "^8.2.0",
"eslint-config-prettier": "^8.3.0",
"husky": "^7.0.4",
"lint-staged": "^12.1.2",
"mocha": "^9.1.3",
"pouchdb": "^7.2.2",
"rimraf": "^3.0.2",
"sinon": "^13.0.0",
"spectron": "^19.0.0",
"typescript": "^4.4.4",
"typescript-lit-html-plugin": "^0.9.0"
},
"dependencies": {
"@advanced-rest-client/electron": "^0.2.0",
"@advanced-rest-client/events": "^0.2.31",
"@api-components/amf-web-api": "^0.1.1",
"camelcase": "^6.2.0",
"electron-log": "^4.4.6",
"electron-prompt": "^1.7.0",
"electron-updater": "^4.3.9",
"esm": "^3.2.25",
"fs-extra": "^10.0.0",
"get-port": "^6.0.0",
"jexl": "^2.3.0",
"live-plugin-manager": "^0.17.1",
"mime-types": "^2.1.31",
"semver": "^7.3.5",
"uuid": "^8.3.2",
"winston": "^3.3.3"
},
"eslintConfig": {
"extends": [
"@open-wc/eslint-config",
"eslint-config-prettier"
],
"ignorePatterns": [
"**/*.d.ts"
],
"overrides": [
{
"files": [
"**/*.js"
],
"rules": {
"no-plusplus": "off",
"no-continue": "off",
"class-methods-use-this": "off",
"import/no-extraneous-dependencies": "off"
}
},
{
"files": [
"src/app/**/*.js"
],
"globals": {
"ArcEnvironment": true,
"ElectronRequest": true,
"SocketRequest": true
}
}
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"eslint --fix"
]
},
"build": {
"appId": "com.mulesoft.arc",
"productName": "AdvancedRestClient",
"artifactName": "arc-${version}-${arch}.${ext}",
"asar": true,
"copyright": "Copyright © 2018 Mulesoft",
"generateUpdatesFilesForAllChannels": true,
"forceCodeSigning": true,
"detectUpdateChannel": true,
"npmRebuild": true,
"buildDependenciesFromSource": false,
"afterSign": "electron-builder-notarize",
"files": [
"package.json",
"assets/",
"web_modules/",
"node_modules/",
"src/",
"appresources/"
],
"mac": {
"artifactName": "arc-macos.${ext}",
"category": "public.app-category.developer-tools",
"icon": "build/icon.icns",
"hardenedRuntime": true,
"gatekeeperAssess": false,
"entitlements": "build/entitlements.mac.plist",
"entitlementsInherit": "build/entitlements.mac.plist",
"target": [
{
"target": "dmg",
"arch": [
"x64"
]
},
{
"target": "zip",
"arch": [
"x64"
]
}
]
},
"dmg": {
"sign": false,
"contents": [
{
"x": 110,
"y": 150
},
{
"x": 240,
"y": 150,
"type": "link",
"path": "/Applications"
}
]
},
"linux": {
"publish": [
"github"
],
"category": "Development",
"target": [
{
"target": "deb",
"arch": [
"x64"
]
},
{
"target": "rpm",
"arch": [
"x64"
]
},
{
"target": "tar.gz",
"arch": [
"x64"
]
},
{
"target": "AppImage",
"arch": [
"x64"
]
}
],
"vendor": "Mulesoft",
"synopsis": "A developer tool to test HTTP requests",
"artifactName": "arc-linux-${version}-${arch}.${ext}"
},
"win": {
"target": [
{
"target": "nsis",
"arch": [
"x64"
]
}
]
},
"appx": {
"applicationId": "AdvancedRestClient",
"identityName": "48695PawelPsztyc.advanced-rest-client",
"publisher": "CN=D213CA20-88CE-42AC-A9F2-C5D41BF04550",
"publisherDisplayName": "Pawel Psztyc"
},
"nsis": {
"installerIcon": "build/icon.ico",
"uninstallerIcon": "build/icon.ico",
"artifactName": "arc-setup.${ext}",
"shortcutName": "ARC"
},
"publish": [
{
"provider": "github",
"owner": "advanced-rest-client",
"repo": "arc-electron"
}
],
"protocols": {
"name": "ARC file open",
"schemes": [
"arc-file"
]
}
},
"oauth2": {
"client_id": "1076318174169-u4a5d3j2v0tbie1jnjgsluqk1ti7ged3.apps.googleusercontent.com",
"auth_uri": "https://accounts.google.com/o/oauth2/v2/auth",
"redirect_uri": "https://auth.advancedrestclient.com/oauth2",
"scopes": [
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.install"
]
}
}