forked from LN-Zap/zap-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
343 lines (343 loc) · 11.5 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
{
"name": "zap-desktop",
"productName": "ZapDesktop",
"version": "0.3.3-beta",
"description": "desktop application for the lightning network",
"scripts": {
"build": "concurrently --raw \"npm:build-main\" \"npm:build-renderer\"",
"build-dll": "webpack -r @babel/register --config internals/webpack/webpack.config.renderer.dev.dll.js",
"build-main": "webpack -r @babel/register --config internals/webpack/webpack.config.main.prod.js",
"build-renderer": "webpack -r @babel/register --config internals/webpack/webpack.config.renderer.prod.js",
"clean": "rimraf node_modules app/node_modules dll app/dist coverage .eslintcache",
"coverage": "open coverage/index.html",
"coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"dev": "cross-env START_HOT=1 npm run start-renderer-dev",
"extract-messages": "extract-messages -l=af-ZA,ca-ES,de-DE,es-ES,ga-IE,hr-HR,ja-JP,no-NO,pt-PT,sr-SP,uk-UA,zh-TW,ar-SA,cs-CZ,el-GR,fi-FI,he-IL,hu-HU,ko-KR,pl-PL,ro-RO,sv-SE,vi-VN,bg-BG,da-DK,en,fr-FR,hi-IN,it-IT,nl-NL,pt-BR,ru-RU,tr-TR,zh-CN -o app/translations -d en --flat true 'app/**/messages.js'",
"fetch-lnd": "node ./internals/scripts/fetch-lnd-for-packaging.js",
"flow": "flow",
"flow-typed": "rimraf flow-typed/npm && flow-typed install --overwrite || true",
"generate-icons": "npx @svgr/cli --icon -d app/components/Icon app/icons",
"lint-base": "eslint --cache --format=node_modules/eslint-formatter-pretty",
"lint": "npm run lint-base -- .",
"lint-fix-base": "npm run lint-base -- --fix",
"lint-fix": "npm run lint-fix-base -- \"./**/*.{js,json,md}\"",
"lint-styles-base": "stylelint --custom-formatter=node_modules/stylelint-formatter-pretty",
"lint-styles": "npm run lint-styles-base -- $npm_package_config_style_paths",
"lint-styles-fix-base": "npm run lint-styles-base -- --fix",
"lint-styles-fix": "npm run lint-styles-fix-base -- $npm_package_config_style_paths",
"lint-check": "eslint --print-config .eslintrc.js | eslint-config-prettier-check",
"lint-ci": "npm run lint && npm run lint-styles",
"package": "npm run build && npm run fetch-lnd && build",
"release": "npm run package -- --publish onTagOrDraft",
"postinstall": "concurrently --raw \"npm:flow-typed\" \"npm:build-dll\" \"build install-app-deps\"",
"prestart": "npm run build",
"start": "cross-env NODE_ENV=production electron ./app",
"start-main-dev": "cross-env HOT=1 NODE_ENV=development electron -r @babel/register ./app/main.js",
"start-renderer-dev": "webpack-dev-server -r @babel/register --config internals/webpack/webpack.config.renderer.dev.js --progress",
"storybook": "start-storybook -p 6006",
"storybook:build": "build-storybook",
"storybook:deploy": "npm run storybook:build && gh-pages -t -d storybook-static -o origin -b gh-pages",
"test": "npm run lint && npm run lint-styles && npm run flow && npm run build && npm run test-unit && npm run test-e2e",
"test-base": "cross-env NODE_ENV=test BABEL_DISABLE_CACHE=true DISABLE_INIT=true ELECTRON_DISABLE_SECURITY_WARNINGS=true node --trace-warnings ./node_modules/jest/bin/jest --maxWorkers=2 --forceExit",
"test-unit": "npm run test-base -- --coverage ./test/unit",
"test-e2e": "npm run test-base -- ./test/e2e",
"test-ci": "npm run test-e2e && npm run test-unit"
},
"config": {
"style_paths": "app/components/**/*.js",
"lnd-binary": {
"binaryVersion": "0.5.1-beta",
"binarySite": "https://github.com/LN-Zap/lnd/releases/download"
}
},
"sideEffects": false,
"browserslist": [
"electron 3.0"
],
"engines": {
"node": ">=8.11.2",
"npm": ">=5.3.0"
},
"devEngines": {
"node": ">=8.2.1",
"npm": ">=5.3.0",
"yarn": ">=0.21.3"
},
"build": {
"productName": "ZapDesktop",
"appId": "org.develar.ZapDesktop",
"generateUpdatesFilesForAllChannels": true,
"files": [
"dist/",
"node_modules/",
"package.json"
],
"directories": {
"buildResources": "resources",
"output": "release"
},
"extraResources": [
"resources/lnd.conf",
"resources/rpc.proto",
{
"from": "resources/bin/${os}/${arch}",
"to": "bin",
"filter": [
"lnd*"
]
}
],
"artifactName": "${productName}-${platform}-${arch}-v${version}.${ext}",
"mac": {
"category": "public.app-category.finance",
"icon": "resources/icons/icon.icns",
"target": [
"dmg",
"zip"
]
},
"dmg": {
"contents": [
{
"x": 130,
"y": 220
},
{
"x": 410,
"y": 220,
"type": "link",
"path": "/Applications"
}
]
},
"win": {
"icon": "resources/icons/icon.ico",
"target": [
{
"target": "nsis",
"arch": [
"x64",
"ia32"
]
}
]
},
"linux": {
"category": "Finance",
"icon": "resources/icons/icon.png",
"target": [
{
"target": "deb",
"arch": [
"x64",
"ia32"
]
},
{
"target": "AppImage",
"arch": [
"x64",
"ia32"
]
}
]
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/LN-Zap/zap-desktop"
},
"author": "Jack Mallers <[email protected]> (https://github.com/jackmallers)",
"license": "MIT",
"bugs": {
"url": "https://github.com/LN-Zap/zap-desktop/issues"
},
"homepage": "https://github.com/LN-Zap/zap-desktop#readme",
"jest": {
"collectCoverageFrom": [
"app/**/*.js",
"!app/dist/**",
"!app/dll/**",
"!app/coverage/**",
"!**/node_modules/**"
],
"coverageReporters": [
"json",
"lcov",
"html"
],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/internals/mocks/fileMock.js",
"\\.(css|less|sass|scss)$": "identity-obj-proxy"
},
"moduleFileExtensions": [
"js",
"json"
],
"moduleDirectories": [
"app",
"app/node_modules",
"node_modules"
],
"setupTestFrameworkScriptFile": "./test/unit/__helpers__/setup-tests.js",
"transform": {
"^.+\\.js$": "babel-jest"
}
},
"devDependencies": {
"@babel/core": "7.2.2",
"@babel/plugin-proposal-class-properties": "7.2.3",
"@babel/plugin-proposal-export-default-from": "7.2.0",
"@babel/plugin-transform-react-constant-elements": "7.2.0",
"@babel/plugin-transform-react-inline-elements": "7.2.0",
"@babel/preset-env": "7.2.3",
"@babel/preset-flow": "7.0.0",
"@babel/preset-react": "7.0.0",
"@babel/register": "7.0.0",
"@commitlint/cli": "7.2.1",
"@commitlint/config-conventional": "7.1.2",
"@sambego/storybook-state": "1.3.2",
"@storybook/addon-actions": "4.1.4",
"@storybook/addon-console": "1.1.0",
"@storybook/addon-info": "4.1.4",
"@storybook/addon-knobs": "4.1.4",
"@storybook/addon-links": "4.1.4",
"@storybook/addon-options": "4.1.4",
"@storybook/addon-storysource": "4.1.4",
"@storybook/addons": "4.1.4",
"@storybook/components": "4.1.4",
"@storybook/react": "4.1.4",
"add-asset-html-webpack-plugin": "3.1.2",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "10.0.1",
"babel-jest": "23.6.0",
"babel-loader": "8.0.5",
"babel-plugin-react-intl": "3.0.1",
"babel-plugin-react-intl-auto": "1.4.0",
"babel-plugin-styled-components": "1.8.0",
"babel-plugin-transform-react-pure-class-to-function": "1.0.1",
"babel-plugin-transform-react-remove-prop-types": "0.4.21",
"browserslist": "4.3.7",
"clean-webpack-plugin": "1.0.0",
"concurrently": "4.1.0",
"copy-webpack-plugin": "4.6.0",
"coveralls": "3.0.2",
"cross-env": "5.2.0",
"cross-spawn": "6.0.5",
"csp-html-webpack-plugin": "2.5.0",
"electron-builder": "20.38.2",
"electron-devtools-installer": "2.2.4",
"electron-updater": "4.0.6",
"enzyme": "3.8.0",
"enzyme-adapter-react-16": "1.7.1",
"enzyme-to-json": "3.3.5",
"eslint": "5.11.1",
"eslint-config-airbnb": "17.1.0",
"eslint-config-prettier": "3.3.0",
"eslint-formatter-pretty": "2.0.0",
"eslint-import-resolver-webpack": "0.10.1",
"eslint-plugin-compat": "2.6.3",
"eslint-plugin-flowtype": "3.2.0",
"eslint-plugin-import": "2.14.0",
"eslint-plugin-jest": "22.1.2",
"eslint-plugin-json": "1.3.2",
"eslint-plugin-jsx-a11y": "6.1.2",
"eslint-plugin-markdown": "1.0.0",
"eslint-plugin-prettier": "3.0.1",
"eslint-plugin-promise": "4.0.1",
"eslint-plugin-react": "7.11.1",
"extract-react-intl-messages": "0.11.1",
"fake-indexeddb": "2.0.4",
"flow-bin": "0.89.0",
"flow-typed": "2.5.1",
"gh-pages": "2.0.1",
"html-webpack-plugin": "3.2.0",
"husky": "1.3.1",
"identity-obj-proxy": "3.0.0",
"jest": "23.6.0",
"jest-styled-components": "6.3.1",
"jsdom": "13.1.0",
"lint-staged": "8.1.0",
"lnd-binary": "0.3.9",
"minimist": "1.2.0",
"mock-spawn": "0.2.6",
"prettier": "1.15.3",
"react-hot-loader": "4.6.3",
"react-storybook-addon-chapters": "3.0.3",
"react-test-renderer": "16.7.0",
"redux-logger": "3.0.6",
"rimraf": "2.6.3",
"spectron": "5.0.0",
"storybook-addon-intl": "2.3.2",
"storybook-react-router": "1.0.2",
"storybook-styled-components": "1.1.3",
"stylelint": "9.9.0",
"stylelint-config-recommended": "2.1.0",
"stylelint-config-styled-components": "0.1.1",
"stylelint-formatter-pretty": "1.0.3",
"stylelint-processor-styled-components": "1.5.1",
"url-loader": "1.1.2",
"webpack": "4.28.3",
"webpack-bundle-analyzer": "3.0.3",
"webpack-cli": "3.1.2",
"webpack-dev-server": "3.1.14",
"webpack-merge": "4.2.1"
},
"dependencies": {
"@grpc/grpc-js": "0.3.2",
"@grpc/proto-loader": "0.3.0",
"@rebass/components": "4.0.0-1",
"axios": "0.18.0",
"bip39-en": "1.1.1",
"bitcoinjs-lib": "4.0.2",
"bolt11": "1.2.2",
"coininfo": "git+https://github.com/cryptocoinjs/coininfo.git#c7e003b2fc0db165b89e6f98f6d6360ad22616b2",
"connected-react-router": "5.0.1",
"copy-to-clipboard": "3.0.8",
"country-data-lookup": "0.0.3",
"debug": "4.1.1",
"debug-logger": "0.4.1",
"dexie": "2.0.4",
"downshift": "3.1.12",
"electron": "4.0.1",
"electron-is-dev": "1.0.1",
"get-port": "4.1.0",
"history": "4.7.2",
"informed": "1.10.12",
"is-electron-renderer": "2.0.1",
"javascript-state-machine": "3.1.0",
"jstimezonedetect": "1.0.6",
"lodash.get": "4.4.2",
"lodash.partition": "4.6.0",
"lodash.pick": "4.4.0",
"lodash.throttle": "4.1.1",
"prop-types": "15.6.2",
"qrcode.react": "0.9.2",
"react": "16.7.0",
"react-dom": "16.7.0",
"react-intl": "2.7.2",
"react-intl-redux": "2.1.0",
"react-redux": "5.1.1",
"react-router-dom": "4.3.1",
"react-spring": "7.2.8",
"react-textfit": "1.1.0",
"rebass": "3.0.0-9",
"redux": "4.0.1",
"redux-electron-ipc": "LN-Zap/redux-electron-ipc#b513220d085ad3e96e459d7efcdfc37bf75417b6",
"redux-thunk": "2.3.0",
"reselect": "4.0.0",
"satoshi-bitcoin": "1.0.4",
"source-map-support": "0.5.9",
"split2": "3.1.0",
"styled-components": "4.1.3",
"styled-reset": "1.6.4",
"tildify": "1.2.0",
"untildify": "3.0.3",
"validator": "10.10.0",
"yup": "0.26.6"
},
"main": "internals/webpack/webpack.config.base.js",
"directories": {
"test": "test"
}
}