mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-11 03:26:14 +00:00
cleanup
This commit is contained in:
parent
bd72b95e80
commit
22e82f07b3
36
package.json
36
package.json
@ -18,7 +18,8 @@
|
||||
"classnames": "2.2.5",
|
||||
"electron-updater": "2.21.4",
|
||||
"ethereum-blockies-base64": "1.0.1",
|
||||
"ethereumjs-abi": "git://github.com/ethereumjs/ethereumjs-abi.git#09c3c48fd3bed143df7fa8f36f6f164205e23796",
|
||||
"ethereumjs-abi":
|
||||
"git://github.com/ethereumjs/ethereumjs-abi.git#09c3c48fd3bed143df7fa8f36f6f164205e23796",
|
||||
"ethereumjs-tx": "1.3.4",
|
||||
"ethereumjs-util": "5.1.5",
|
||||
"ethereumjs-wallet": "0.6.0",
|
||||
@ -62,12 +63,12 @@
|
||||
"@types/classnames": "2.2.3",
|
||||
"@types/enzyme": "3.1.8",
|
||||
"@types/enzyme-adapter-react-16": "1.0.1",
|
||||
"@types/events": "^1.2.0",
|
||||
"@types/events": "1.2.0",
|
||||
"@types/history": "4.6.2",
|
||||
"@types/jest": "22.2.3",
|
||||
"@types/lodash": "4.14.107",
|
||||
"@types/moment-timezone": "0.5.4",
|
||||
"@types/node-hid": "^0.7.0",
|
||||
"@types/node-hid": "0.7.0",
|
||||
"@types/qrcode": "0.8.0",
|
||||
"@types/qrcode.react": "0.6.3",
|
||||
"@types/query-string": "5.1.0",
|
||||
@ -131,7 +132,7 @@
|
||||
"tslint-react": "3.5.1",
|
||||
"types-rlp": "0.0.1",
|
||||
"typescript": "2.8.1",
|
||||
"u2f-api": "^1.0.6",
|
||||
"u2f-api": "1.0.6",
|
||||
"uglifyjs-webpack-plugin": "1.2.4",
|
||||
"url-search-params-polyfill": "3.0.0",
|
||||
"webapp-webpack-plugin": "2.0.1",
|
||||
@ -155,13 +156,19 @@
|
||||
"prebuild": "check-node-version --package",
|
||||
"build:downloadable": "webpack --mode=production --config webpack_config/webpack.html.js",
|
||||
"prebuild:downloadable": "check-node-version --package",
|
||||
"build:electron": "webpack --config webpack_config/webpack.electron-prod.js && node webpack_config/buildElectron.js",
|
||||
"build:electron:osx": "webpack --config webpack_config/webpack.electron-prod.js && ELECTRON_OS=osx node webpack_config/buildElectron.js",
|
||||
"build:electron:windows": "webpack --config webpack_config/webpack.electron-prod.js && ELECTRON_OS=windows node webpack_config/buildElectron.js",
|
||||
"build:electron:linux": "webpack --config webpack_config/webpack.electron-prod.js && ELECTRON_OS=linux node webpack_config/buildElectron.js",
|
||||
"build:electron":
|
||||
"webpack --config webpack_config/webpack.electron-prod.js && node webpack_config/buildElectron.js",
|
||||
"build:electron:osx":
|
||||
"webpack --config webpack_config/webpack.electron-prod.js && ELECTRON_OS=osx node webpack_config/buildElectron.js",
|
||||
"build:electron:windows":
|
||||
"webpack --config webpack_config/webpack.electron-prod.js && ELECTRON_OS=windows node webpack_config/buildElectron.js",
|
||||
"build:electron:linux":
|
||||
"webpack --config webpack_config/webpack.electron-prod.js && ELECTRON_OS=linux node webpack_config/buildElectron.js",
|
||||
"prebuild:electron": "check-node-version --package",
|
||||
"jenkins:build:linux": "webpack --config webpack_config/webpack.electron-prod.js && ELECTRON_OS=JENKINS_LINUX node webpack_config/buildElectron.js",
|
||||
"jenkins:build:mac": "webpack --config webpack_config/webpack.electron-prod.js && ELECTRON_OS=JENKINS_MAC node webpack_config/buildElectron.js",
|
||||
"jenkins:build:linux":
|
||||
"webpack --config webpack_config/webpack.electron-prod.js && ELECTRON_OS=JENKINS_LINUX node webpack_config/buildElectron.js",
|
||||
"jenkins:build:mac":
|
||||
"webpack --config webpack_config/webpack.electron-prod.js && ELECTRON_OS=JENKINS_MAC node webpack_config/buildElectron.js",
|
||||
"jenkins:upload": "node jenkins/upload",
|
||||
"test:coverage": "jest --config=jest_config/jest.config.json --coverage",
|
||||
"test": "jest --config=jest_config/jest.config.json",
|
||||
@ -174,13 +181,16 @@
|
||||
"predev": "check-node-version --package",
|
||||
"dev:https": "HTTPS=true node webpack_config/devServer.js",
|
||||
"predev:https": "check-node-version --package",
|
||||
"dev:electron": "concurrently --kill-others --names 'webpack,electron' 'BUILD_ELECTRON=true node webpack_config/devServer.js' 'webpack --config webpack_config/webpack.electron-dev.js && electron dist/electron-js/main.js'",
|
||||
"dev:electron":
|
||||
"concurrently --kill-others --names 'webpack,electron' 'BUILD_ELECTRON=true node webpack_config/devServer.js' 'webpack --config webpack_config/webpack.electron-dev.js && electron dist/electron-js/main.js'",
|
||||
"tslint": "tslint --project . --exclude common/vendor/**/*",
|
||||
"tscheck": "tsc --noEmit",
|
||||
"start": "npm run dev",
|
||||
"precommit": "lint-staged",
|
||||
"formatAll": "find ./common/ -name '*.ts*' | xargs prettier --write --config ./.prettierrc --config-precedence file-override",
|
||||
"prettier:diff": "prettier --write --config ./.prettierrc --list-different \"common/**/*.ts\" \"common/**/*.tsx\"",
|
||||
"formatAll":
|
||||
"find ./common/ -name '*.ts*' | xargs prettier --write --config ./.prettierrc --config-precedence file-override",
|
||||
"prettier:diff":
|
||||
"prettier --write --config ./.prettierrc --list-different \"common/**/*.ts\" \"common/**/*.tsx\"",
|
||||
"prepush": "npm run tslint && npm run tscheck",
|
||||
"update:tokens": "ts-node scripts/update-tokens"
|
||||
},
|
||||
|
22
shared/types/sagaHelpers.d.ts
vendored
22
shared/types/sagaHelpers.d.ts
vendored
@ -1,22 +0,0 @@
|
||||
import { Effect } from 'redux-saga/effects';
|
||||
|
||||
type ExtPromise<T> = T extends Promise<infer U> ? U : T;
|
||||
|
||||
type ExtSaga<T> = T extends IterableIterator<infer U> ? Exclude<U, Effect | Effect[]> : T;
|
||||
|
||||
/**
|
||||
* Use this helper to unwrap return types from effects like Call / Apply
|
||||
* In the case of calling a function that returns a promise, this helper will unwrap the
|
||||
* promise and return the type inside it. In the case of calling another saga / generator,
|
||||
* this helper will return the actual return value of the saga / generator, otherwise,
|
||||
* it'll return the original type.
|
||||
*
|
||||
* NOTE 1: When using this to extract the type of a Saga, make sure to remove the `SagaIterator`
|
||||
* return type of the saga if it contains one, since that masks the actual return type of the saga.
|
||||
*
|
||||
* NOTE 2: You will most likely need to use the `typeof` operator to use this helper.
|
||||
* E.g type X = UnwrapEffects<typeof MyFunc/MySaga>
|
||||
*/
|
||||
export type UnwrapEffects<T> = T extends (...args: any[]) => any
|
||||
? ExtSaga<ReturnType<T>>
|
||||
: ExtPromise<T>;
|
@ -18,8 +18,6 @@
|
||||
"noEmitOnError": false,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"pretty": true,
|
||||
"noErrorTruncation": true,
|
||||
"noImplicitAny": true
|
||||
},
|
||||
"include": [
|
||||
|
Loading…
x
Reference in New Issue
Block a user