forked from maidsafe/sn_browser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
304 lines (304 loc) · 13.3 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
{
"name": "safe-browser",
"identifier": "net.maidsafe.safe-browser",
"productName": "SAFE Browser",
"version": "0.18.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-bg\" ",
"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-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": "git fetch upstream --tags -f || git fetch --tags -f; git tag -d $(git tag -l | grep alpha ); git tag -d $(git tag -l | grep beta ); 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-mac": "tail -f ~/Library/Logs/SAFE\\ Browser/*.log",
"log-linux": "tail -f ~/.config/SAFE\\ Browser/logs/*.log",
"log-win": "tail -f ~/%USERPROFILE%\\AppData\\Roaming\\SAFE\\ Browser\\logs*.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",
"prelint-fix": "prettier --ignore-path .eslintignore --single-quote --write '**/*.{*{js,ts,tsx,jsx,json},babelrc,eslintrc,prettierrc,stylelintrc}'",
"prerelease": "standard-version --prerelease rc",
"package": "cross-env PACKAGING=true yarn build && electron-builder build --config ./builderConfig.js --publish never",
"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}",
"postinstall": "electron-builder install-app-deps && yarn build-dll && yarn build-e2e && opencollective-postinstall",
"prestart": "yarn build",
"rebuild": "npm rebuild",
"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 lint --quiet && 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 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-watch": "yarn test --watch",
"test-e2e": "node -r babel-register-ts ./internals/scripts/CheckBuiltsExist.ts && cross-env NODE_ENV=test TEST_UNPACKED=true TEST_CAFE=true IS_UNPACKED=true testcafe electron:. ./__testcafe__/*.spec.*",
"test-e2e-packed": "node -r babel-register-ts ./internals/scripts/CheckBuiltsExist.ts && cross-env NODE_ENV=test TEST_CAFE=true testcafe electron:. ./__testcafe__/*.spec.*",
"test-e2e-live": "node -r babel-register-ts ./internals/scripts/CheckBuiltsExist.ts && cross-env NODE_ENV=test TEST_CAFE=true testcafe-live electron:. ./__testcafe__/*.spec.*"
},
"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"
],
"{*.json,.{babelrc,eslintrc,prettierrc,stylelintrc}}": [
"prettier --ignore-path .eslintignore --parser json --write"
],
"*.{css,scss}": [
"stylelint --ignore-path .eslintignore --syntax scss --fix",
"prettier --ignore-path .eslintignore --single-quote --write"
],
"*.{yml,md}": [
"prettier --ignore-path .eslintignore --single-quote --write"
]
},
"main": "./app/main.prod.js",
"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.10.5",
"@babel/plugin-proposal-class-properties": "7.10.4",
"@babel/plugin-proposal-decorators": "^7.10.5",
"@babel/plugin-proposal-do-expressions": "^7.10.4",
"@babel/plugin-proposal-export-default-from": "^7.10.4",
"@babel/plugin-proposal-export-namespace-from": "^7.10.4",
"@babel/plugin-proposal-function-bind": "^7.10.5",
"@babel/plugin-proposal-function-sent": "^7.10.4",
"@babel/plugin-proposal-json-strings": "^7.10.4",
"@babel/plugin-proposal-logical-assignment-operators": "^7.10.4",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.4",
"@babel/plugin-proposal-numeric-separator": "^7.10.4",
"@babel/plugin-proposal-optional-chaining": "^7.10.4",
"@babel/plugin-proposal-pipeline-operator": "^7.10.5",
"@babel/plugin-proposal-throw-expressions": "^7.10.4",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-syntax-import-meta": "^7.10.4",
"@babel/plugin-transform-react-constant-elements": "^7.10.4",
"@babel/plugin-transform-react-inline-elements": "^7.10.4",
"@babel/preset-env": "^7.10.4",
"@babel/preset-react": "^7.10.4",
"@babel/register": "^7.10.5",
"@commitlint/cli": "9.1.1",
"@commitlint/config-conventional": "9.1.1",
"@types/jest": "26.0.4",
"@types/node": "14.0.26",
"@types/react": "16.9.43",
"@types/react-router-dom": "5.1.5",
"@types/webpack-env": "1.15.2",
"@types/window-or-global": "1.0.2",
"@typescript-eslint/eslint-plugin": "3.6.1",
"@typescript-eslint/parser": "3.6.1",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "10.1.0",
"babel-jest": "^26.1.0",
"babel-loader": "^8.1.0",
"babel-plugin-add-module-exports": "1.0.2",
"babel-plugin-dev-expression": "^0.2.1",
"babel-plugin-import": "1.13.0",
"babel-plugin-module-resolver": "4.0.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.2.0",
"concurrently": "^5.2.0",
"copy-webpack-plugin": "6.0.3",
"core-js": "3.6.5",
"cross-env": "^7.0.2",
"cross-spawn": "^7.0.3",
"css-loader": "^3.6.0",
"devtron": "^1.4.0",
"electron": "8.4.0",
"electron-builder": "22.7.0",
"electron-devtools-installer": "^3.1.0",
"electron-notarize": "1.0.0",
"electron-window-state": "^5.0.3",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.2",
"enzyme-to-json": "^3.4.4",
"eslint": "7.4.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-airbnb-typescript": "8.0.2",
"eslint-config-prettier": "^6.10.0",
"eslint-formatter-pretty": "^4.0.0",
"eslint-import-resolver-babel-module": "5.1.2",
"eslint-import-resolver-webpack": "^0.12.1",
"eslint-plugin-autofix": "1.0.0",
"eslint-plugin-compat": "^3.5.1",
"eslint-plugin-import": "2.22.0",
"eslint-plugin-jest": "^23.7.0",
"eslint-plugin-jsx-a11y": "6.3.1",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-react": "^7.18.3",
"eslint-plugin-testcafe": "^0.2.1",
"eslint-plugin-unicorn": "^16.1.1",
"express": "4.17.1",
"fbjs-scripts": "^1.0.1",
"file-loader": "^6.0.0",
"husky": "^4.2.3",
"identity-obj-proxy": "^3.0.0",
"jest": "^26.1.0",
"json-loader": "^0.5.7",
"less": "3.12.1",
"less-loader": "6.2.0",
"lint-staged": "^10.0.7",
"mini-css-extract-plugin": "^0.9.0",
"native-ext-loader": "2.3.0",
"opencollective-postinstall": "^2.0.1",
"opensans-npm-webfont": "1.0.0",
"optimize-css-assets-webpack-plugin": "^5.0.1",
"postcss": "^7.0.27",
"postcss-loader": "^3.0.0",
"postcss-scss": "^2.0.0",
"precss": "^4.0.0",
"prettier": "^2.0.5",
"query-string": "6.13.1",
"raf": "3.4.1",
"react-hot-loader": "^4.12.19",
"react-test-renderer": "^16.12.0",
"redux-mock-store": "1.5.4",
"resolve-url-loader": "3.1.1",
"rimraf": "^3.0.2",
"should": "13.2.3",
"sinon": "^9.0.0",
"standard-version": "8.0.2",
"style-loader": "^1.1.3",
"stylelint": "^13.2.0",
"stylelint-config-prettier": "^8.0.1",
"stylelint-config-standard": "^20.0.0",
"terser-webpack-plugin": "^3.0.7",
"testcafe": "1.8.8",
"testcafe-browser-provider-electron": "0.0.15",
"testcafe-live": "^0.1.4",
"testcafe-react-selectors": "4.0.0",
"typescript": "3.9.7",
"url-loader": "^4.1.0",
"webpack": "^4.41.6",
"webpack-bundle-analyzer": "^3.6.0",
"webpack-cli": "^3.3.11",
"webpack-dev-server": "^3.10.3",
"webpack-merge": "^5.0.9",
"yarn": "^1.22.0",
"zxcvbn": "4.4.2"
},
"dependencies": {
"@babel/plugin-proposal-object-rest-spread": "7.10.4",
"@babel/preset-typescript": "7.10.4",
"@fortawesome/fontawesome-free": "^5.14.0",
"@material-ui/core": "4.11.0",
"@material-ui/icons": "4.9.1",
"@material-ui/styles": "4.10.0",
"@types/redux": "3.6.0",
"antd": "^3.21.4",
"chalk": "^4.1.0",
"classnames": "^2.2.6",
"connected-react-router": "^6.7.0",
"detect-port": "^1.3.0",
"electron-build-env": "0.2.0",
"electron-context-menu": "2.2.0",
"electron-debug": "^3.1.0",
"electron-log": "4.2.2",
"electron-redux": "1.5.3",
"electron-updater": "4.3.1",
"electron-util": "0.14.2",
"electron-window-state": "^5.0.3",
"enum": "3.0.4",
"express": "4.17.1",
"fs-extra": "9.0.1",
"get-port": "5.1.1",
"history": "5.0.0",
"i18n": "0.10.0",
"jest-tobetype": "git+https://github.com/joshuef/jest-tobetype.git#master",
"lodash": ">=4.17.19",
"moment": "^2.27.0",
"nessie-ui": "7.0.4",
"open": "^7.0.4",
"ps-list": "^7.2.0",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-redux": "^7.2.0",
"react-redux-i18n": "1.9.3",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0",
"react-router-redux": "4.0.8",
"redux": "^4.0.5",
"redux-actions": "2.6.5",
"redux-logger": "^3.0.6",
"redux-promise": "0.6.0",
"redux-promise-middleware": "6.1.2",
"redux-thunk": "^2.3.0",
"safe-nodejs": "https://github.com/maidsafe/safe-nodejs.git#0.11.7",
"source-map-support": "^0.5.19"
},
"devEngines": {
"node": "=10.x",
"npm": ">=5.x",
"yarn": ">=1.x"
},
"browserslist": "electron 1.6",
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "yarn test",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
}