Skip to content

Commit

Permalink
test: add flowtype (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
evenchange4 committed Nov 2, 2017
1 parent 53d8832 commit c725c9a
Show file tree
Hide file tree
Showing 42 changed files with 9,243 additions and 41 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Expand Up @@ -4,3 +4,5 @@
# testing
/coverage

# flow
/flow-typed
12 changes: 12 additions & 0 deletions .flowconfig
@@ -0,0 +1,12 @@
[ignore]

[include]

[libs]
/flow-typed

[lints]

[options]

[strict]
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -16,6 +16,7 @@ before_install:
script:
- yarn run eslint
- yarn run test
- yarn run flow

after_success:
- ./node_modules/.bin/codecov
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
@@ -0,0 +1,11 @@
# Changelog

## [HEAD]
> Unreleased
* test: add flowtype

## [v1.0.0]
> Nov 02, 2017
* Make public
14 changes: 14 additions & 0 deletions README.md
Expand Up @@ -38,6 +38,11 @@ https://github.com/apps/polls

## Developer Guide

### Environments

- Create a `.env` file from `.env.example`.
- Download the `private-key.pem` from GitHub and move it to your project’s directory.

### Requirements

- node >= 9.0.0
Expand All @@ -57,6 +62,7 @@ $ yarn start # prod server
$ yarn run format
$ yarn run eslint
$ yarn run test:watch
$ yarn run flow
```

### Deploy to Now.sh
Expand All @@ -76,6 +82,14 @@ Any git commits push to master branch.
- https://github.com/probot/commands
- https://github.com/srph/gh-polls-web

## Misc

- Redirect to github.com for private repos. [\[apex/gh-polls#3\]](https://github.com/apex/gh-polls/issues/3#issuecomment-312964372)
- PEM format doesn't play nicely with now.sh secrets/env vars. [\[probot/friction#17\]](https://github.com/probot/friction/issues/17)
- Links related to GH polls:
- [Web App](https://app.gh-polls.com/) – GH polls web app
- [apex/gh-polls](https://github.com/apex/gh-polls) – Polls for user feedback in GitHub issues [gh-polls.com](https://gh-polls.com/)

## CONTRIBUTING

* ⇄ Pull requests and ★ Stars are always welcome.
Expand Down
46 changes: 46 additions & 0 deletions flow-typed/npm/argv-split_vx.x.x.js
@@ -0,0 +1,46 @@
// flow-typed signature: c9faa4940534ad3fbf048710fd3f9287
// flow-typed version: <<STUB>>/argv-split_v^2.0.1/flow_v0.58.0

/**
* This is an autogenerated libdef stub for:
*
* 'argv-split'
*
* 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:
* https://github.com/flowtype/flow-typed
*/

declare module 'argv-split' {
declare module.exports: any;
}

/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'argv-split/split' {
declare module.exports: any;
}

declare module 'argv-split/test' {
declare module.exports: any;
}

declare module 'argv-split/test/argv-split' {
declare module.exports: any;
}

// Filename aliases
declare module 'argv-split/split.js' {
declare module.exports: $Exports<'argv-split/split'>;
}
declare module 'argv-split/test.js' {
declare module.exports: $Exports<'argv-split/test'>;
}
declare module 'argv-split/test/argv-split.js' {
declare module.exports: $Exports<'argv-split/test/argv-split'>;
}
38 changes: 38 additions & 0 deletions flow-typed/npm/await-url_vx.x.x.js
@@ -0,0 +1,38 @@
// flow-typed signature: a87db0657ca35d1ef5fb4c5a37e935de
// flow-typed version: <<STUB>>/await-url_v^0.3.0/flow_v0.58.0

/**
* This is an autogenerated libdef stub for:
*
* 'await-url'
*
* 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:
* https://github.com/flowtype/flow-typed
*/

declare module 'await-url' {
declare module.exports: any;
}

/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'await-url/cli' {
declare module.exports: any;
}

// Filename aliases
declare module 'await-url/cli.js' {
declare module.exports: $Exports<'await-url/cli'>;
}
declare module 'await-url/index' {
declare module.exports: $Exports<'await-url'>;
}
declare module 'await-url/index.js' {
declare module.exports: $Exports<'await-url'>;
}
80 changes: 80 additions & 0 deletions flow-typed/npm/babel-eslint_vx.x.x.js
@@ -0,0 +1,80 @@
// flow-typed signature: 7f9ff1170369673e9e113cbdbbdf0737
// flow-typed version: <<STUB>>/babel-eslint_v^8.0.1/flow_v0.58.0

/**
* This is an autogenerated libdef stub for:
*
* 'babel-eslint'
*
* 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:
* https://github.com/flowtype/flow-typed
*/

declare module 'babel-eslint' {
declare module.exports: any;
}

/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'babel-eslint/babylon-to-espree/attachComments' {
declare module.exports: any;
}

declare module 'babel-eslint/babylon-to-espree/convertComments' {
declare module.exports: any;
}

declare module 'babel-eslint/babylon-to-espree/convertTemplateType' {
declare module.exports: any;
}

declare module 'babel-eslint/babylon-to-espree/index' {
declare module.exports: any;
}

declare module 'babel-eslint/babylon-to-espree/toAST' {
declare module.exports: any;
}

declare module 'babel-eslint/babylon-to-espree/toToken' {
declare module.exports: any;
}

declare module 'babel-eslint/babylon-to-espree/toTokens' {
declare module.exports: any;
}

// Filename aliases
declare module 'babel-eslint/babylon-to-espree/attachComments.js' {
declare module.exports: $Exports<'babel-eslint/babylon-to-espree/attachComments'>;
}
declare module 'babel-eslint/babylon-to-espree/convertComments.js' {
declare module.exports: $Exports<'babel-eslint/babylon-to-espree/convertComments'>;
}
declare module 'babel-eslint/babylon-to-espree/convertTemplateType.js' {
declare module.exports: $Exports<'babel-eslint/babylon-to-espree/convertTemplateType'>;
}
declare module 'babel-eslint/babylon-to-espree/index.js' {
declare module.exports: $Exports<'babel-eslint/babylon-to-espree/index'>;
}
declare module 'babel-eslint/babylon-to-espree/toAST.js' {
declare module.exports: $Exports<'babel-eslint/babylon-to-espree/toAST'>;
}
declare module 'babel-eslint/babylon-to-espree/toToken.js' {
declare module.exports: $Exports<'babel-eslint/babylon-to-espree/toToken'>;
}
declare module 'babel-eslint/babylon-to-espree/toTokens.js' {
declare module.exports: $Exports<'babel-eslint/babylon-to-espree/toTokens'>;
}
declare module 'babel-eslint/index' {
declare module.exports: $Exports<'babel-eslint'>;
}
declare module 'babel-eslint/index.js' {
declare module.exports: $Exports<'babel-eslint'>;
}

0 comments on commit c725c9a

Please sign in to comment.