-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy pathpackage.json
183 lines (183 loc) · 6.57 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
{
"name": "nrfconnect",
"version": "3.4.2",
"description": "nRF Connect for PC",
"repository": {
"type": "git",
"url": "https://github.com/NordicSemiconductor/pc-nrfconnect-launcher.git"
},
"main": "src/main",
"scripts": {
"start": "echo 'please run `npm run dev` in one tab and then `npm run app` in another one'",
"postinstall": "npm run get-jlink",
"app": "electron .",
"dev": "npm run lint-init && nrfconnect-scripts build-watch",
"webpack": "npm run lint-init && nrfconnect-scripts build-dev",
"build": "npm run lint-init && nrfconnect-scripts build-prod",
"lint-init": "nrfconnect-scripts lint-init",
"lint": "nrfconnect-scripts lint src test-e2e *.js",
"test": "jest --testResultsProcessor jest-bamboo-formatter src/",
"test-watch": "jest --watch src/",
"test-e2e": "xvfb-maybe jest --runInBand --moduleNameMapper '{}' --testTimeout=15000 --forceExit test-e2e/",
"clean": "npm install rimraf && npm run clean-build && npm run clean-release && npm run clean-modules",
"clean-build": "rimraf dist && rimraf build/nrfjprog",
"clean-release": "rimraf release",
"clean-modules": "rimraf \"node_modules/!(rimraf|.bin)\"",
"get-jlink": "get-jlink -o build",
"pack": "npm run build && electron-builder -p never",
"release": "electron-builder -p always",
"install-devtools": "electron . --install-devtools",
"remove-devtools": "electron . --remove-devtools"
},
"author": "Nordic Semiconductor ASA",
"license": "Proprietary",
"binary": {
"module_name": "pc-nrfjprog-js",
"module_path": "./build/Release",
"host": "https://github.com/NordicSemiconductor/pc-nrfjprog-js/releases/download/",
"remote_path": "v{version}"
},
"build": {
"appId": "com.nordicsemi.nrfconnect",
"productName": "nRF Connect",
"npmRebuild": false,
"publish": [
"github"
],
"files": [
"dist/",
"src/main/",
"node_modules/",
"!node_modules/pc-nrfjprog-js/nrfjprog",
"resources/*.html",
"resources/*.png",
"resources/*.ico",
"resources/*.svg",
"resources/mac/"
],
"directories": {
"output": "release"
},
"linux": {
"target": [
"AppImage",
"tar.gz"
],
"artifactName": "${name}-${version}-${arch}.${ext}",
"extraFiles": [
{
"from": "node_modules/pc-nrfjprog-js/nrfjprog",
"to": "nrfjprog",
"filter": "*.so"
}
],
"category": "Development"
},
"afterSign": "build/notarize.js",
"mac": {
"category": "public.app-category.developer-tools",
"artifactName": "${name}-${version}-${os}.${ext}",
"hardenedRuntime": true,
"gatekeeperAssess": false,
"entitlements": "build/entitlements.mac.plist",
"entitlementsInherit": "build/entitlements.mac.plist",
"extraFiles": [
{
"from": "node_modules/pc-nrfjprog-js/nrfjprog",
"to": "Frameworks/nrfjprog",
"filter": "*.dylib*"
}
]
},
"dmg": {
"artifactName": "${name}-${version}.${ext}",
"sign": false
},
"win": {
"target": [
"nsis"
],
"extraFiles": [
{
"from": "node_modules/pc-nrfjprog-js/nrfjprog",
"to": "nrfjprog",
"filter": "*.dll"
}
],
"publisherName": "Nordic Semiconductor ASA"
},
"nsis": {
"menuCategory": "Nordic Semiconductor",
"include": "build/installer.nsh",
"artifactName": "${name}-setup-${version}-${env.ARCH}.${ext}"
}
},
"devDependencies": {
"asar": "2.0.1",
"bootstrap": "4.3.1",
"electron": "5.0.6",
"electron-builder": "22.4.1",
"electron-devtools-installer": "2.2.4",
"electron-is-dev": "1.1.0",
"electron-notarize": "0.2.1",
"mini-css-extract-plugin": "0.8.0",
"pc-nrfconnect-shared": "github:NordicSemiconductor/pc-nrfconnect-shared#v4.8.0",
"pc-nrfconnect-build": "git+https://github.com/NordicPlayground/pc-nrfconnect-build.git#semver:0.3.0",
"spectron": "7.0.0",
"tar": "4.4.10",
"util": "0.12.0",
"xvfb-maybe": "0.2.1"
},
"dependencies": {
"@mdi/font": "3.7.95",
"axios": "0.19.0",
"chmodr": "1.2.0",
"create-react-class": "15.6.3",
"electron-log": "3.0.6",
"electron-store": "4.0.0",
"electron-updater": "4.0.14",
"eslint-config-airbnb": "18.1.0",
"eslint-config-airbnb-base": "14.1.0",
"fs-extra": "8.1.0",
"jquery": "3.5.1",
"mousetrap": "1.6.5",
"mustache": "3.0.1",
"nrf-device-setup": "0.6.7",
"pc-ble-driver-js": "2.7.2",
"popper.js": "1.16.1",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-markdown": "4.1.0",
"react-redux": "7.2.0",
"roboto-fontface": "0.10.0",
"shasum": "1.0.2",
"targz": "1.0.1",
"uuid": "3.3.2",
"yargs": "13.2.4"
},
"jest": {
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2)$": "<rootDir>/node_modules/pc-nrfconnect-shared/mocks/fileMock.js",
"\\.(css|scss)$": "<rootDir>/node_modules/pc-nrfconnect-shared/mocks/emptyMock.js",
"electron": "<rootDir>/node_modules/pc-nrfconnect-shared/mocks/electronMock.js",
"pc-nrfjprog-js|nrf-device-lister|nrf-device-setup": "<rootDir>/node_modules/pc-nrfconnect-shared/mocks/emptyMock.js"
},
"transform": {
"^.+\\.jsx?$": [
"babel-jest",
{
"configFile": "./node_modules/pc-nrfconnect-shared/config/babel.config.js"
}
]
},
"transformIgnorePatterns": [
"node_modules/(?!(pc-nrfconnect-shared)/)"
],
"setupFilesAfterEnv": [
"<rootDir>/node_modules/pc-nrfconnect-shared/test/setupTests.js"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
]
}
}