Skip to content

Commit

Permalink
feat(types): Add flow definitions (#478)
Browse files Browse the repository at this point in the history
* Add flow definitions

* Move flow definitions to src

* Remove methods with not inferrable types

* Prefer type alias over interface
  • Loading branch information
TrySound authored and briancavalier committed Aug 28, 2017
1 parent 097ed3b commit 5c722d3
Show file tree
Hide file tree
Showing 3 changed files with 409 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -4,4 +4,4 @@
.DS_Store
experiments/
bower_components/
lib/
lib/
6 changes: 5 additions & 1 deletion package.json
Expand Up @@ -15,7 +15,10 @@
"scripts": {
"unit-test": "buster-test",
"test": "eslint src test && npm run unit-test && npm run doctest",
"build": "rimraf lib dist && buba src -o lib && rollup -c && uglifyjs dist/most.js -c \"warnings=false\" -m -o dist/most.min.js",
"build": "npm run build:dist && npm run build:min && npm run build:flow",
"build:dist": "rimraf lib dist && buba src -o lib && rollup -c",
"build:min": "uglifyjs dist/most.js -c \"warnings=false\" -m > dist/most.min.js",
"build:flow": "cpy src/index.js.flow lib",
"preversion": "npm run build",
"doctest": "markdown-doctest"
},
Expand Down Expand Up @@ -49,6 +52,7 @@
"babel-polyfill": "^6.20.0",
"buba": "^4.0.1",
"buster": "^0.7.18",
"cpy-cli": "^1.0.1",
"eslint": "^3.12.1",
"markdown-doctest": "^0.9.1",
"rimraf": "^2.5.4",
Expand Down

0 comments on commit 5c722d3

Please sign in to comment.