add flowtype support

pull/2/merge
Szymon Lesisz 6 years ago
parent bb22ca54f0
commit 8aeb10cf2c

@ -4,10 +4,12 @@
.*/node_modules/hd-wallet/.*
.*/node_modules/protobufjs-old-fixed-webpack/src/bower.json
.*/node_modules/trezor-link/lib/.*
.*/node_modules/rc-util/lib/.*
.*/_old/.*
.*/src/solidity/.*
[libs]
./src/js/flowtype/css.js
[options]

@ -16,7 +16,7 @@
"dev:library": "babel-node ./webpack/server.js --library",
"dev:connect": "babel-node ./webpack/server.js --connect",
"build": "rm -rf build && webpack --config ./webpack/webpack.config.prod.babel.js",
"flow": "cd app/scripts && flow check",
"flow": "flow check src/js",
"test": ""
},
"dependencies": {
@ -64,6 +64,7 @@
"express": "^4.15.3",
"extract-text-webpack-plugin": "^3.0.0",
"file-loader": "^1.1.9",
"flow-bin": "^0.69.0",
"html-webpack-plugin": "^2.29.0",
"json-loader": "^0.5.7",
"less": "^3.0.1",

@ -0,0 +1,6 @@
/* @flow */
'use strict';
declare module CSSModule {
declare var exports: { [key: string]: string };
}

@ -2122,6 +2122,10 @@ flatten@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.2.tgz#dae46a9d78fbe25292258cc1e780a41d95c03782"
flow-bin@^0.69.0:
version "0.69.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.69.0.tgz#053159a684a6051fcbf0b71a2eb19a9679082da6"
flush-write-stream@^1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/flush-write-stream/-/flush-write-stream-1.0.2.tgz#c81b90d8746766f1a609a46809946c45dd8ae417"

Loading…
Cancel
Save