Skip to content

Commit 5c722d3

Browse files
TrySoundbriancavalier
authored andcommitted
feat(types): Add flow definitions (#478)
* Add flow definitions * Move flow definitions to src * Remove methods with not inferrable types * Prefer type alias over interface
1 parent 097ed3b commit 5c722d3

3 files changed

Lines changed: 409 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
.DS_Store
55
experiments/
66
bower_components/
7-
lib/
7+
lib/

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515
"scripts": {
1616
"unit-test": "buster-test",
1717
"test": "eslint src test && npm run unit-test && npm run doctest",
18-
"build": "rimraf lib dist && buba src -o lib && rollup -c && uglifyjs dist/most.js -c \"warnings=false\" -m -o dist/most.min.js",
18+
"build": "npm run build:dist && npm run build:min && npm run build:flow",
19+
"build:dist": "rimraf lib dist && buba src -o lib && rollup -c",
20+
"build:min": "uglifyjs dist/most.js -c \"warnings=false\" -m > dist/most.min.js",
21+
"build:flow": "cpy src/index.js.flow lib",
1922
"preversion": "npm run build",
2023
"doctest": "markdown-doctest"
2124
},
@@ -49,6 +52,7 @@
4952
"babel-polyfill": "^6.20.0",
5053
"buba": "^4.0.1",
5154
"buster": "^0.7.18",
55+
"cpy-cli": "^1.0.1",
5256
"eslint": "^3.12.1",
5357
"markdown-doctest": "^0.9.1",
5458
"rimraf": "^2.5.4",

0 commit comments

Comments
 (0)