Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flow typed cli support #201

Merged
merged 4 commits into from
Oct 22, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/utils/Config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Check if config file exists
* @flow
*
* If it doesn't, create it and initialize it with the fields:
* 'favorites', 'watchList', 'recentlyWatched'
Expand All @@ -18,7 +19,7 @@ export default function setupConfig() {

const config = setupConfig();

export function set(key: string, value) {
export function set(key: string, value: any) {
return config.set(key, value);
}

Expand Down
8 changes: 4 additions & 4 deletions flow-typed/npm/eslint-plugin-flowtype-errors_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 76771cf9716dc203655f645ccee9591f
// flow-typed version: <<STUB>>/eslint-plugin-flowtype-errors_v1.4.1/flow_v0.33.0
// flow-typed signature: bbf5e58b959a4fcbd7bcb9bf4ea31919
// flow-typed version: <<STUB>>/eslint-plugin-flowtype-errors_v1.5.0-0/flow_v0.33.0

/**
* This is an autogenerated libdef stub for:
Expand All @@ -8,8 +8,8 @@
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"build": "cross-env NODE_ENV=production FLAG_SEASON_COMPLETE=true FLAG_MANUAL_TORRENT_SELECTION=true node -r babel-register ./node_modules/webpack/bin/webpack --config=webpack.config.build.js",
"dev": "cross-env NODE_ENV=development FLAG_SEASON_COMPLETE=true FLAG_MANUAL_TORRENT_SELECTION=true FLAG_SUBTITLES=false npm run start-hot-server",
"flow": "flow",
"flow-typed": "flow-typed install",
"lint": "eslint --cache --ignore-path .gitignore --format=node_modules/eslint-formatter-pretty app test *.js && stylelint app/styles/*.scss app/styles/**/*.scss",
"lint-summary": "eslint-nibble app test *.js",
"lint-styles": "stylelint app/styles/*.scss app/styles/**/*.scss --syntax scss",
Expand Down Expand Up @@ -131,7 +132,7 @@
"eslint-loader": "^1.6.0",
"eslint-nibble-ignore": "^3.0.0",
"eslint-plugin-flowtype": "^2.20.0",
"eslint-plugin-flowtype-errors": "1.4.1",
"eslint-plugin-flowtype-errors": "^1.5.0-alpha.1",
"eslint-plugin-fp": "^2.2.0",
"eslint-plugin-import": "^2.0.1",
"eslint-plugin-jsx-a11y": "^2.2.3",
Expand Down
93 changes: 80 additions & 13 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ babel-plugin-webpack-loaders@^0.8.0:
lodash "^4.6.1"
rimraf "^2.5.0"

babel-polyfill@^6.16.0:
babel-polyfill@^6.16.0, babel-polyfill@^6.6.1:
version "6.16.0"
resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.16.0.tgz#2d45021df87e26a374b6d4d1a9c65964d17f2422"
dependencies:
Expand Down Expand Up @@ -1407,7 +1407,7 @@ block-stream2@^1.0.0:
inherits "^2.0.1"
readable-stream "^2.0.4"

bluebird@^3.4.6, [email protected]:
bluebird@^3.1.1, bluebird@^3.4.6, [email protected]:
version "3.4.6"
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.4.6.tgz#01da8d821d87813d158967e743d5fe6c62cf8c0f"

Expand Down Expand Up @@ -1694,6 +1694,10 @@ chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3:
strip-ansi "^3.0.0"
supports-color "^2.0.0"

charenc@~0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/charenc/-/charenc-0.0.1.tgz#004cff9feaf102382ed12db58dd6f962796d6e88"

"cheerio@github:cheeriojs/cheerio#e65ad72":
version "0.20.0"
resolved "https://codeload.github.com/cheeriojs/cheerio/tar.gz/e65ad72"
Expand Down Expand Up @@ -2178,6 +2182,10 @@ [email protected]:
version "0.0.2"
resolved "https://registry.yarnpkg.com/cross-unzip/-/cross-unzip-0.0.2.tgz#5183bc47a09559befcf98cc4657964999359372f"

crypt@~0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/crypt/-/crypt-0.0.1.tgz#5f11b21a6c05ef1b5e79708366da6374ece1e6a2"

[email protected]:
version "2.0.5"
resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8"
Expand Down Expand Up @@ -3175,15 +3183,16 @@ eslint-nibble-ignore@^3.0.0:
inquirer "^1.1.2"
optionator "^0.8.0"

eslint-plugin-flowtype-errors@1.4.1:
version "1.4.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype-errors/-/eslint-plugin-flowtype-errors-1.4.1.tgz#87cdd60d034a16055cda7dbf75321e90e1b7bb4d"
eslint-plugin-flowtype-errors@^1.5.0-alpha.1:
version "1.5.0-alpha.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype-errors/-/eslint-plugin-flowtype-errors-1.5.0-alpha.1.tgz#f11701b5aab156f0792390bf36574bb14e033716"
dependencies:
babel-plugin-transform-runtime "^6.15.0"
flow-bin "^0.33.0"
q "^1.4.1"
ramda "^0.22.1"
shelljs "^0.7.4"
slash "^1.0.0"

eslint-plugin-flowtype@^2.20.0:
version "2.20.0"
Expand Down Expand Up @@ -3611,6 +3620,25 @@ flow-bin@^0.33.0:
version "0.33.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.33.0.tgz#ef011eace7a6100f1ae08b852db78279032b8750"

flow-typed@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/flow-typed/-/flow-typed-2.0.0.tgz#b15cfb9b2b4419ab521665f84fa30d9ba646fb33"
dependencies:
babel-polyfill "^6.6.1"
colors "^1.1.2"
github "^0.2.4"
glob "^7.0.6"
lodash "^4.11.2"
md5 "^2.1.0"
mkdirp "^0.5.1"
request "^2.69.0"
rx-lite "4.0.8"
semver "^5.1.0"
table "3.7.8"
through "^2.3.8"
which "^1.2.11"
yargs "^4.2.0"

for-in@^0.1.5:
version "0.1.6"
resolved "https://registry.yarnpkg.com/for-in/-/for-in-0.1.6.tgz#c9f96e89bfad18a545af5ec3ed352a1d9e5b4dc8"
Expand Down Expand Up @@ -3800,6 +3828,12 @@ getpass@^0.1.1:
dependencies:
assert-plus "^1.0.0"

github@^0.2.4:
version "0.2.4"
resolved "https://registry.yarnpkg.com/github/-/github-0.2.4.tgz#24fa7f0e13fa11b946af91134c51982a91ce538b"
dependencies:
mime "^1.2.11"

glob-base@^0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4"
Expand Down Expand Up @@ -3856,7 +3890,7 @@ glob@^6.0.0, glob@^6.0.1:
once "^1.3.0"
path-is-absolute "^1.0.0"

glob@^7.0.0, glob@^7.0.3, glob@^7.0.5:
glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@^7.0.6:
version "7.1.1"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8"
dependencies:
Expand Down Expand Up @@ -4418,7 +4452,7 @@ is-binary-path@^1.0.0:
dependencies:
binary-extensions "^1.0.0"

is-buffer@^1.0.2:
is-buffer@^1.0.2, is-buffer@~1.1.1:
version "1.1.4"
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.4.tgz#cfc86ccd5dc5a52fa80489111c6920c457e2d98b"

Expand Down Expand Up @@ -5174,7 +5208,7 @@ lodash@^3.10.0:
version "3.10.1"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6"

lodash@^4.0.0, lodash@^4.1.0, lodash@^4.13.1, lodash@^4.14.0, lodash@^4.15.0, lodash@^4.2.0, lodash@^4.2.1, lodash@^4.3.0, lodash@^4.6.1, lodash@^4.8.0, [email protected]:
lodash@^4.0.0, lodash@^4.1.0, lodash@^4.11.2, lodash@^4.13.1, lodash@^4.14.0, lodash@^4.15.0, lodash@^4.2.0, lodash@^4.2.1, lodash@^4.3.0, lodash@^4.6.1, lodash@^4.8.0, [email protected]:
version "4.16.4"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.16.4.tgz#01ce306b9bad1319f2a5528674f88297aeb70127"

Expand Down Expand Up @@ -5266,6 +5300,14 @@ math-expression-evaluator@^1.2.14:
dependencies:
lodash.indexof "^4.0.5"

md5@^2.1.0:
version "2.2.1"
resolved "https://registry.yarnpkg.com/md5/-/md5-2.2.1.tgz#53ab38d5fe3c8891ba465329ea23fac0540126f9"
dependencies:
charenc "~0.0.1"
crypt "~0.0.1"
is-buffer "~1.1.1"

[email protected]:
version "0.3.0"
resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748"
Expand Down Expand Up @@ -5357,7 +5399,7 @@ mime-types@^2.1.11, mime-types@~2.1.11, mime-types@~2.1.7:
dependencies:
mime-db "~1.24.0"

mime@^1.3.4, [email protected]:
mime@^1.2.11, mime@^1.3.4, [email protected]:
version "1.3.4"
resolved "https://registry.yarnpkg.com/mime/-/mime-1.3.4.tgz#115f9e3b6b3daf2959983cb38f149a2d40eb5d53"

Expand Down Expand Up @@ -6986,7 +7028,7 @@ req-all@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/req-all/-/req-all-0.1.0.tgz#130051e2ace58a02eacbfc9d448577a736a9273a"

request@^2.45.0, request@^2.55.0, request@^2.61.0, request@^2.65.0, request@^2.72.0, request@2, [email protected]:
request@^2.45.0, request@^2.55.0, request@^2.61.0, request@^2.65.0, request@^2.69.0, request@^2.72.0, request@2, [email protected]:
version "2.75.0"
resolved "https://registry.yarnpkg.com/request/-/request-2.75.0.tgz#d2b8268a286da13eaa5d01adf5d18cc90f657d93"
dependencies:
Expand Down Expand Up @@ -7151,6 +7193,10 @@ rx-lite@^3.1.2:
version "3.1.2"
resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-3.1.2.tgz#19ce502ca572665f3b647b10939f97fd1615f102"

[email protected]:
version "4.0.8"
resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-4.0.8.tgz#0b1e11af8bc44836f04a6407e92da42467b79444"

rx@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/rx/-/rx-4.1.0.tgz#a5f13ff79ef3b740fe30aa803fb09f98805d4782"
Expand Down Expand Up @@ -7869,6 +7915,19 @@ table@^3.7.8:
slice-ansi "0.0.4"
string-width "^1.0.1"

[email protected]:
version "3.7.8"
resolved "https://registry.yarnpkg.com/table/-/table-3.7.8.tgz#b424433ef596851922b2fd77224a69a1951618eb"
dependencies:
bluebird "^3.1.1"
chalk "^1.1.1"
lodash "^4.0.0"
slice-ansi "0.0.4"
string-width "^1.0.1"
strip-ansi "^3.0.0"
tv4 "^1.2.7"
xregexp "^3.0.0"

tapable@^0.1.8, tapable@~0.1.8:
version "0.1.10"
resolved "https://registry.yarnpkg.com/tapable/-/tapable-0.1.10.tgz#29c35707c2b70e50d07482b5d202e8ed446dafd4"
Expand Down Expand Up @@ -7941,7 +8000,7 @@ [email protected]:
version "0.0.2"
resolved "https://registry.yarnpkg.com/throttleit/-/throttleit-0.0.2.tgz#cfedf88e60c00dd9697b61fdd2a8343a9b680eaf"

through@^2.3.6, "through@>=2.2.7 <3", through@~2.3.4, through@2:
through@^2.3.6, through@^2.3.8, "through@>=2.2.7 <3", through@~2.3.4, through@2:
version "2.3.8"
resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5"

Expand Down Expand Up @@ -8085,6 +8144,10 @@ tunnel-agent@^0.4.0, tunnel-agent@^0.4.3, tunnel-agent@~0.4.1:
version "0.4.3"
resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.4.3.tgz#6373db76909fe570e08d73583365ed828a74eeeb"

tv4@^1.2.7:
version "1.2.7"
resolved "https://registry.yarnpkg.com/tv4/-/tv4-1.2.7.tgz#bd29389afc73ade49ae5f48142b5d544bf68d120"

tweetnacl@^0.14.3, tweetnacl@~0.14.0:
version "0.14.3"
resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.3.tgz#3da382f670f25ded78d7b3d1792119bca0b7132d"
Expand Down Expand Up @@ -8634,7 +8697,7 @@ which-module@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f"

which@^1.1.1, which@^1.2.9, which@1:
which@^1.1.1, which@^1.2.11, which@^1.2.9, which@1:
version "1.2.11"
resolved "https://registry.yarnpkg.com/which/-/which-1.2.11.tgz#c8b2eeea6b8c1659fa7c1dd4fdaabe9533dc5e8b"
dependencies:
Expand Down Expand Up @@ -8773,6 +8836,10 @@ [email protected]:
sax "1.2.x"
xmlbuilder "8.2.x"

xregexp@^3.0.0:
version "3.1.1"
resolved "https://registry.yarnpkg.com/xregexp/-/xregexp-3.1.1.tgz#8ee18d75ef5c7cb3f9967f8d29414a6ca5b1a184"

xtend@^4.0.0, xtend@^4.0.1, "xtend@>=4.0.0 <4.1.0-0", xtend@~4.0.0:
version "4.0.1"
resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af"
Expand Down Expand Up @@ -8820,7 +8887,7 @@ yargs@^3.5.4:
window-size "^0.1.4"
y18n "^3.2.0"

yargs@^4.7.1, yargs@^4.8.1:
yargs@^4.2.0, yargs@^4.7.1, yargs@^4.8.1:
version "4.8.1"
resolved "https://registry.yarnpkg.com/yargs/-/yargs-4.8.1.tgz#c0c42924ca4aaa6b0e6da1739dfb216439f9ddc0"
dependencies:
Expand Down