forked from maidsafe/sn_browser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
412 lines (412 loc) · 16.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
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
{
"name": "safe-browser",
"identifier": "net.maidsafe.safe-browser",
"productName": "SAFE Browser",
"version": "0.12.0",
"vendor": "MaidSafe.net Ltd",
"description": "Electron web browser. React/redux powered with an aim of extensiblity.",
"scripts": {
"build": "concurrently \"yarn run build-main\" \"yarn run build-renderer\" \"yarn run build-webPreload\" \"yarn run build-browserPreload\" \"yarn run build-bg\" \"yarn run build-auth-app\"",
"build-dll": "cross-env NODE_ENV=development webpack --config ./configs/webpack.config.renderer.dev.dll.babel.js --colors",
"build-e2e": "cross-env E2E_BUILD=true yarn build",
"build-main": "cross-env NODE_ENV=production webpack --config ./configs/webpack.config.main.prod.babel.js --colors",
"build-auth-app": "cross-env NODE_ENV=production webpack --config app/extensions/safe/auth-web-app/webpack.config.babel.js --progress --profile --colors",
"build-browserPreload": "cross-env NODE_ENV=production webpack --config ./configs/webpack.config.browser-preload.prod.babel.js --colors",
"build-bg": "cross-env NODE_ENV=production webpack --config ./configs/webpack.config.background.prod.babel.js --colors",
"build-webPreload": "cross-env NODE_ENV=production webpack --config ./configs/webpack.config.web-preload.prod.babel.js --colors",
"build-renderer": "cross-env NODE_ENV=production webpack --config ./configs/webpack.config.renderer.prod.babel.js --colors",
"bump": "standard-version -a",
"check-types": "tsc",
"prod-dev": "cross-env START_HOT=1 node -r babel-register-ts ./internals/scripts/CheckPortInUse.ts && cross-env NODE_ENV=production START_HOT=1 yarn start-renderer-dev",
"dev": "yarn mock-dev",
"lint": "cross-env NODE_ENV=development eslint --cache --format=pretty --ext .js,.jsx,.ts,.tsx .",
"lint-fix": "yarn --silent lint --fix; exit 0",
"lint-styles": "stylelint --ignore-path .eslintignore '**/*.*(css|scss)' --syntax scss",
"lint-styles-fix": "yarn --silent lint-styles --fix; exit 0",
"log": "tail -f $TMPDIR/safe-browser.log",
"mock-dev": "cross-env START_HOT=1 node -r babel-register-ts ./internals/scripts/CheckPortInUse.ts && cross-env NODE_ENV=development START_HOT=1 yarn start-renderer-dev",
"prepush": "yarn test",
"prelint-fix": "prettier --ignore-path .eslintignore --single-quote --write '**/*.{*{js,ts,tsx,jsx,json},babelrc,eslintrc,prettierrc,stylelintrc}'",
"prerelease": "standard-version --prerelease rc",
"package": "yarn build && electron-builder build --publish never && yarn post-pack",
"post-pack": "node ./post-pack.js",
"package-all": "yarn build && electron-builder build -mwl",
"package-ci": "yarn postinstall && yarn build && electron-builder --publish always",
"package-linux": "yarn build && electron-builder build --linux",
"package-win": "yarn build && electron-builder build --win --x64",
"put-live-net-files-for-osx": "cp ./resources/crust.config node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron\\ Helper.app/Contents/MacOS/Electron\\ Helper.crust.config && cp resources/log.toml ./node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron\\ Helper.app/Contents/log.toml",
"put-live-net-files-for-linux": "cp ./resources/crust.config node_modules/electron/dist/electron.crust.config && cp resources/log.toml node_modules/electron/dist/log.toml",
"put-live-net-files-for-windows": "powershell.exe cp ./resources/crust.config node_modules/electron/dist/electron.crust.config; if ($?) { cp resources/log.toml node_modules/electron/dist/log.toml}",
"install-prod": "cross-env NODE_ENV=prod node node_modules/deps_downloader/cli.js --package package.json",
"install-mock": "cross-env NODE_ENV=dev node node_modules/deps_downloader/cli.js --package package.json",
"postinstall": "electron-builder install-app-deps package.json && yarn build-dll && yarn build-e2e && opencollective-postinstall && yarn run install-prod && node app/extensions/safe/install-dev-libs.js",
"precommit": "lint-staged",
"prestart": "yarn build",
"rebuild": "npm rebuild --runtime=electron --target=2.0.18 --disturl=https://atom.io/download/atom-shell --build-from-source",
"start": "cross-env NODE_ENV=production electron ./app/main.prod.js",
"start-main-dev": "cross-env HOT=1 IS_UNPACKED=true electron -r babel-register-ts ./app/main.dev.ts",
"start-renderer-dev": "cross-env webpack-dev-server --config configs/webpack.config.renderer.dev.babel.js",
"test": "yarn test-peruse && yarn test-exts",
"test-peruse": "cross-env SAFE_MOCK_IN_MEMORY_STORAGE=true ELECTRON_RUN_AS_NODE=true NODE_ENV=test IS_UNPACKED=true BABEL_DISABLE_CACHE=1 node_modules/.bin/electron node_modules/jest/bin/jest.js __tests__ --notify --detectOpenHandles",
"test-all": "yarn lint && yarn check-types && yarn build && yarn test && yarn build-e2e && yarn test-e2e",
"test-exts": "cross-env SAFE_MOCK_IN_MEMORY_STORAGE=true ELECTRON_RUN_AS_NODE=true NODE_ENV=test IS_UNPACKED=true BABEL_DISABLE_CACHE=1 node_modules/.bin/electron node_modules/jest/bin/jest.js extensions --testPathIgnorePatterns=e2e --notify --detectOpenHandles",
"test-e2e": "cross-env SPECTRON_TEST=true IS_PACKED=true BABEL_DISABLE_CACHE=1 jest --runInBand --bail",
"test-e2e-prod": "cross-env SPECTRON_TEST=true IS_PACKED=true BABEL_DISABLE_CACHE=1 node runE2ETests.js e2e",
"test-exts-e2e-prod": "cross-env SPECTRON_TEST=true IS_PACKED=true BABEL_DISABLE_CACHE=1 node runE2ETests.js exts-e2e",
"test-watch": "yarn test --watch",
"cafe-e2e": "node -r babel-register-ts ./internals/scripts/CheckBuiltsExist.ts && cross-env NODE_ENV=test TEST_CAFE=true IS_UNPACKED=true testcafe electron:. ./__testcafe__/*.spec.ts",
"cafe-exts-e2e": "node -r babel-register-ts ./internals/scripts/CheckBuiltsExist.ts && cross-env NODE_ENV=test TEST_CAFE=true IS_UNPACKED=true testcafe electron:. ./app/extensions/safe/__testcafe__/e2e/*.spec.ts",
"cafe-e2e-live": "node -r babel-register-ts ./internals/scripts/CheckBuiltsExist.ts && cross-env NODE_ENV=test TEST_CAFE=true testcafe-live electron:. ./__testcafe__/atest.spec.ts"
},
"standard-version": {
"scripts": {
"postchangelog": "git add -A ."
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"prettier --ignore-path .eslintignore --arrow-parens always --single-quote --write",
"cross-env NODE_ENV=development eslint --cache --format=pretty --fix",
"git add"
],
"{*.json,.{babelrc,eslintrc,prettierrc,stylelintrc}}": [
"prettier --ignore-path .eslintignore --parser json --write",
"git add"
],
"*.{css,scss}": [
"stylelint --ignore-path .eslintignore --syntax scss --fix",
"prettier --ignore-path .eslintignore --single-quote --write",
"git add"
],
"*.{yml,md}": [
"prettier --ignore-path .eslintignore --single-quote --write",
"git add"
]
},
"main": "./app/main.prod.js",
"build": {
"productName": "SAFE Browser",
"files": [
"app/dist/",
"locales",
"app/locales",
"app/app.html",
"app/bg.html",
"app/background.prod.js",
"app/background.prod.js.map",
"app/webPreload.prod.js",
"app/webPreload.prod.js.map",
"app/main.prod.js",
"app/main.prod.js.map",
"package.json"
],
"extraFiles": [],
"extraResources": [
{
"from": "resources/log.toml",
"to": "log.toml"
},
{
"from": "resources/favicon.ico",
"to": "favicon.ico"
},
{
"from": "resources/PreloadDevVault",
"to": "PreloadDevVault"
},
{
"from": "resources/locales",
"to": "locales"
},
{
"from": "resources/crust.config",
"to": "${productName}.crust.config"
},
{
"from": "app/extensions/safe/dist",
"to": "extensions/safe/dist"
},
{
"from": "app/extensions/safe/iconfont",
"to": "extensions/safe/iconfont"
},
{
"from": "app/extensions/safe/auth-web-app/dist",
"to": "extensions/safe/auth-web-app/dist"
},
{
"from": "node_modules/nessie-ui/dist/styles.css",
"to": "nessie-styles.css"
}
],
"protocols": {
"name": "SAFE Network URL",
"schemes": [
"safe",
"safe-auth"
]
},
"win": {
"target": "dir"
},
"linux": {
"target": "dir"
},
"mac": {
"target": "dir"
},
"directories": {
"buildResources": "resources",
"output": "release"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/maidsafe/safe_browser"
},
"author": {
"name": "Maidsafe.net Ltd",
"email": "[email protected]",
"url": "https://github.com/maidsafe"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/maidsafe/safe_browser/issues"
},
"keywords": [
"electron",
"browser",
"react",
"redux",
"webpack",
"hot",
"reload"
],
"homepage": "https://github.com//maidsafe/safe_browser/#readme",
"jest": {
"testURL": "http://localhost/",
"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",
"jsx",
"json"
],
"transform": {
"^.+\\.jsx?$": "babel-jest"
},
"setupFiles": [
"./internals/scripts/CheckBuiltsExist.js"
]
},
"devDependencies": {
"@babel/core": "^7.4.0",
"@babel/plugin-proposal-class-properties": "7.4.0",
"@babel/plugin-proposal-decorators": "^7.4.0",
"@babel/plugin-proposal-do-expressions": "^7.0.0",
"@babel/plugin-proposal-export-default-from": "^7.0.0",
"@babel/plugin-proposal-export-namespace-from": "^7.0.0",
"@babel/plugin-proposal-function-bind": "^7.0.0",
"@babel/plugin-proposal-function-sent": "^7.1.0",
"@babel/plugin-proposal-json-strings": "^7.0.0",
"@babel/plugin-proposal-logical-assignment-operators": "^7.0.0",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
"@babel/plugin-proposal-numeric-separator": "^7.0.0",
"@babel/plugin-proposal-optional-chaining": "^7.0.0",
"@babel/plugin-proposal-pipeline-operator": "^7.0.0",
"@babel/plugin-proposal-throw-expressions": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-syntax-import-meta": "^7.0.0",
"@babel/plugin-transform-react-constant-elements": "^7.0.0",
"@babel/plugin-transform-react-inline-elements": "^7.0.0",
"@babel/preset-env": "^7.4.1",
"@babel/preset-react": "^7.0.0",
"@babel/register": "^7.4.0",
"@commitlint/cli": "7.5.0",
"@commitlint/config-conventional": "7.5.0",
"@types/jest": "24.0.11",
"@types/node": "11.11.4",
"@types/react": "16.8.8",
"@types/react-router-dom": "4.3.1",
"@types/webpack-env": "1.13.9",
"@types/window-or-global": "1.0.0",
"@typescript-eslint/eslint-plugin": "1.4.2",
"@typescript-eslint/parser": "1.6.0",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "10.0.1",
"babel-jest": "^24.5.0",
"babel-loader": "^8.0.4",
"babel-plugin-add-module-exports": "1.0.0",
"babel-plugin-dev-expression": "^0.2.1",
"babel-plugin-import": "1.11.0",
"babel-plugin-module-resolver": "3.2.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.20",
"babel-register-ts": "7.0.0",
"chai": "^4.1.0",
"circular-dependency-plugin": "5.0.2",
"classnames": "^2.2.6",
"concurrently": "^4.1.0",
"connected-react-router": "^5.0.1",
"copy-webpack-plugin": "4.6.0",
"core-js": "3.0.0",
"cross-env": "^5.2.0",
"cross-spawn": "^6.0.5",
"css-loader": "^2.1.0",
"deps_downloader": "https://s3.eu-west-2.amazonaws.com/deps-downloader/deps_downloader-0.1.0.tgz",
"devtron": "^1.4.0",
"electron": "2.0.18",
"electron-builder": "20.38.5",
"electron-devtools-installer": "^2.2.4",
"electron-window-state": "^4.1.1",
"enzyme": "^3.7.0",
"enzyme-adapter-react-16": "^1.7.0",
"enzyme-to-json": "^3.3.4",
"eslint": "5.15.3",
"eslint-config-airbnb": "^17.1.0",
"eslint-config-airbnb-typescript": "1.1.0",
"eslint-config-prettier": "^4.1.0",
"eslint-formatter-pretty": "^2.0.0",
"eslint-import-resolver-babel-module": "5.0.1",
"eslint-import-resolver-webpack": "^0.11.0",
"eslint-plugin-compat": "^3.1.1",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jest": "^22.4.1",
"eslint-plugin-jsx-a11y": "6.2.1",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-react": "^7.11.1",
"eslint-plugin-testcafe": "^0.2.1",
"eslint-plugin-unicorn": "^8.0.2",
"express": "4.16.3",
"fbjs-scripts": "^1.0.1",
"file-loader": "^3.0.1",
"husky": "^1.1.4",
"identity-obj-proxy": "^3.0.0",
"jest": "^24.1.0",
"json-loader": "^0.5.7",
"less": "3.9.0",
"less-loader": "4.1.0",
"lint-staged": "^8.1.5",
"mini-css-extract-plugin": "^0.5.0",
"node-sass": "^4.10.0",
"opencollective-postinstall": "^2.0.1",
"opensans-npm-webfont": "1.0.0",
"optimize-css-assets-webpack-plugin": "^5.0.1",
"postcss": "^7.0.14",
"postcss-loader": "^3.0.0",
"postcss-scss": "^2.0.0",
"precss": "^4.0.0",
"prettier": "^1.15.2",
"query-string": "6.2.0",
"raf": "3.4.1",
"react-test-renderer": "^16.6.3",
"redux-logger": "^3.0.6",
"redux-mock-store": "1.5.3",
"redux-promise-middleware": "5.1.1",
"resolve-url-loader": "3.0.0",
"rimraf": "^2.6.2",
"sass-loader": "^7.1.0",
"should": "13.1.3",
"sinon": "^7.1.1",
"spectron": "4",
"standard-version": "5.0.2",
"style-loader": "^0.23.1",
"stylelint": "^9.8.0",
"stylelint-config-prettier": "^5.0.0",
"stylelint-config-standard": "^18.2.0",
"terser-webpack-plugin": "^1.1.0",
"testcafe": "1.1.0",
"testcafe-browser-provider-electron": "https://github.com/joshuef/testcafe-browser-provider-electron.git#OSXFixed",
"testcafe-live": "^0.1.4",
"testcafe-react-selectors": "3.1.0",
"typescript": "3.3.4000",
"url-loader": "^1.1.2",
"webpack": "^4.26.0",
"webpack-bundle-analyzer": "^3.0.3",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.10",
"webpack-merge": "^4.1.4",
"yarn": "^1.12.3",
"zxcvbn": "4.4.2"
},
"dependencies": {
"@babel/plugin-proposal-object-rest-spread": "7.4.3",
"@babel/preset-typescript": "7.1.0",
"@fortawesome/fontawesome-free": "^5.5.0",
"@maidsafe/safe-node-app": "0.11.0",
"@types/redux": "3.6.0",
"antd": "3.16.2",
"archiver": "2.1.0",
"chalk": "^2.4.1",
"detect-port": "^1.3.0",
"electron-context-menu": "0.11.0",
"electron-debug": "^2.1.0",
"electron-log": "3.0.1",
"electron-redux": "1.3.1",
"electron-updater": "4.0.6",
"enum": "2.5.0",
"ffi": "2.3.0",
"fs-extra": "7.0.1",
"get-port": "4.1.0",
"history": "^4.7.2",
"i18n": "0.8.3",
"jest-tobetype": "git+https://github.com/joshuef/jest-tobetype.git#master",
"lodash": ">=4.17.11",
"nessie-ui": "6.1.0",
"open": "^6.1.0",
"react": "^16.6.3",
"react-dom": "^16.6.3",
"react-hot-loader": "^4.3.12",
"react-icons": "2.2.7",
"react-redux": "^5.1.1",
"react-redux-i18n": "1.9.3",
"react-router": "^4.3.1",
"react-router-dom": "^4.3.1",
"react-router-redux": "4.0.8",
"redux": "^4.0.1",
"redux-actions": "2.6.5",
"redux-promise": "0.6.0",
"redux-thunk": "^2.3.0",
"ref": "1.3.5",
"ref-array": "1.2.0",
"ref-struct": "1.1.0",
"source-map-support": "^0.5.10",
"tslint": "5.15.0",
"weak": "1.0.1"
},
"download_deps": {
"system_uri": {
"mirror": "https://s3.eu-west-2.amazonaws.com/system-uri",
"version": "v0.4.0",
"targetDir": "app/extensions/safe/dist/prod",
"filePattern": "^.*\\.(dll|so|dylib)$"
},
"safe_authenticator": {
"mirror": "https://s3.eu-west-2.amazonaws.com/safe-client-libs",
"version": "0.9.1",
"targetDir": "app/extensions/safe/dist/prod",
"filename": "safe_authenticator",
"filePattern": "^.*\\.(dll|so|dylib)$",
"force": true
},
"ENV": {
"dev": {
"safe_authenticator": {
"targetDir": "app/extensions/safe/dist/mock",
"filename": "safe_authenticator-mock"
},
"system_uri": {
"targetDir": "app/extensions/safe/dist/mock"
}
}
}
},
"devEngines": {
"node": ">=7.x",
"npm": ">=4.x",
"yarn": ">=0.21.3"
},
"browserslist": "electron 1.6"
}