-
Notifications
You must be signed in to change notification settings - Fork 72
/
package.json
135 lines (135 loc) · 5.12 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
{
"name": "nrfconnect",
"version": "5.1.0",
"description": "nRF Connect for Desktop",
"repository": {
"type": "git",
"url": "https://github.com/NordicSemiconductor/pc-nrfconnect-launcher.git"
},
"main": "dist/main.js",
"scripts": {
"prepare": "husky install",
"app": "cross-env NODE_OPTIONS=--enable-source-maps electron .",
"app:debug": "cross-env NODE_OPTIONS=--enable-source-maps electron --remote-debugging-port=9223 .",
"watch:build": "run-p --silent --continue-on-error --print-label watch:build:*",
"watch:build:main": "ts-node scripts/esbuild --watch",
"watch:build:renderer": "ts-node scripts/esbuild-renderer --watch",
"watch:types": "tsc --noEmit --pretty --watch --preserveWatchOutput",
"watch:test": "jest src --watch --color --watchPathIgnorePatterns '<rootDir>/dist'",
"build:dev": "run-p --silent --continue-on-error --print-label build:dev:*",
"build:dev:renderer": "ts-node scripts/esbuild-renderer",
"build:dev:main": "ts-node scripts/esbuild",
"build:prod": "run-p --silent --continue-on-error --print-label build:prod:*",
"build:prod:renderer": "ts-node scripts/esbuild-renderer --prod",
"build:prod:main": "ts-node scripts/esbuild --prod",
"check": "run-p --silent --continue-on-error --print-label check:*",
"check:lint": "eslint --color .",
"check:types": "check-for-typescript tsc --noEmit --pretty",
"check:license": "nrfconnect-license check",
"test": "jest src",
"test-e2e": "xvfb-maybe npx playwright test test-e2e/",
"pack": "npm run build:prod && electron-builder -p never",
"release": "electron-builder -p always",
"install-devtools": "electron . --install-devtools",
"remove-devtools": "electron . --remove-devtools",
"postinstall": "node scripts/getNrfutil.js"
},
"author": "Nordic Semiconductor ASA",
"license": "Proprietary",
"build": {
"appId": "com.nordicsemi.nrfconnect",
"productName": "nRF Connect for Desktop",
"npmRebuild": false,
"files": [
"dist/",
"node_modules/",
"resources/*.html",
"resources/react/*.js",
"resources/*.png",
"resources/*.ico",
"resources/*.svg",
"resources/mac/",
"resources/nrfutil*",
"resources/nrfutil-sandboxes/",
"resources/prefetched/"
],
"directories": {
"output": "release"
},
"linux": {
"target": [
"AppImage"
],
"artifactName": "${name}-${version}-${arch}.${ext}",
"category": "Development",
"icon": "resources/icon.icns"
},
"beforePack": "build/getBundledResources.js",
"afterSign": "build/notarize.js",
"mac": {
"category": "public.app-category.developer-tools",
"artifactName": "${name}-${version}-${os}-${arch}.${ext}",
"hardenedRuntime": true,
"gatekeeperAssess": false,
"entitlements": "build/entitlements.mac.plist",
"entitlementsInherit": "build/entitlements.mac.plist",
"icon": "resources/icon.icns"
},
"dmg": {
"artifactName": "${name}-${version}-${arch}.${ext}",
"sign": false
},
"win": {
"target": "nsis",
"publisherName": "Nordic Semiconductor ASA",
"icon": "resources/icon.ico",
"sign": "./build/winSign.js",
"signingHashAlgorithms": [
"sha256"
]
},
"nsis": {
"menuCategory": "Nordic Semiconductor",
"include": "build/installer.nsh",
"artifactName": "${name}-setup-${version}-${arch}.${ext}"
}
},
"devDependencies": {
"@electron/notarize": "^2.2.0",
"@nordicsemiconductor/pc-nrfconnect-shared": "^191.0.0",
"@playwright/test": "^1.16.3",
"@testing-library/user-event": "^14.4.3",
"@types/chmodr": "1.0.0",
"@types/lodash": "^4.14.194",
"@types/minimist": "^1.2.2",
"@types/mustache": "4.2.1",
"@types/node": "^18.18.4",
"@types/targz": "1.0.1",
"asar": "3.0.3",
"cli-truncate": "2.1.0",
"cross-env": "7.0.3",
"electron-builder": "^24.9.1",
"electron-devtools-installer": "3.2.0",
"playwright": "^1.16.3",
"xvfb-maybe": "0.2.1"
},
"dependencies": {
"@electron/remote": "^2.1.2",
"axios": "0.22.0",
"chmodr": "1.2.0",
"electron-store": "8.1.0",
"electron-updater": "4.3.7",
"fs-extra": "9.0.0",
"lodash": "^4.17.21",
"minimist": "^1.2.8",
"mustache": "4.0.1",
"node-watch": "^0.7.3",
"serialport": "10.5.0",
"shasum": "1.0.2",
"short-uuid": "4.2.0",
"sudo-prompt": "^9.2.1",
"targz": "1.0.1",
"winston": "3.8.1"
},
"prettier": "@nordicsemiconductor/pc-nrfconnect-shared/config/prettier.config.js"
}