Skip to content

Commit ee6523e

Browse files
authored
Merge pull request #45 from FoxComm/chore/prepare-build
Prepare build
2 parents b6d78cb + a2fa8ac commit ee6523e

5 files changed

Lines changed: 46 additions & 3 deletions

File tree

.flowconfig

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[ignore]
2+
.*/node_modules/babel-.*
3+
.*/node_modules/fbjs/.*
4+
.*/node_modules/json5/.*
5+
.*/node_modules/systemjs-builder/.*
6+
.*/node_modules/.tmp/.*
7+
.*/node_modules/invariant/*
8+
9+
[include]
10+
src
11+
12+
[options]
13+
esproposal.decorators=ignore
14+
esproposal.class_static_fields=enable
15+
esproposal.class_instance_fields=enable
16+
module.name_mapper='.+css$' -> 'CSSModule'
17+
strip_root=true
18+
module.system=haste
19+
module.system.node.resolve_dirname=node_modules
20+
module.system.node.resolve_dirname=src
21+
unsafe.enable_getters_and_setters=true
22+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe

Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.DEFAULT_GOAL := build
2+
3+
setup: clean
4+
yarn --pure-lockfile
5+
6+
build:
7+
yarn build
8+
9+
clean:
10+
rm -rf ./node_modules
11+
rm -rf ./lib/*
12+
13+
test: build
14+
yarn flow
15+
16+
.PHONY: setup build clean test

flow-typed/api.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
21
declare module '@foxcomm/api-js' {
32
declare type StringDict = {[name: string]: string};
43

5-
declare type AbortablePromise = Promise & {
4+
declare type AbortablePromise = Promise<*> & {
65
abort(): void;
76
};
87

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"test": "mocha test",
1111
"build": "babel src -d lib",
1212
"docs": "APIARY_DOCS_PATH=../phoenix-scala/docs/api/docs/objects node ./bin/import-docs.js && node ./bin/make-docs.js",
13-
"prepublish": "npm run build"
13+
"prepublish": "npm run build",
14+
"flow": "./node_modules/.bin/flow check"
1415
},
1516
"repository": {
1617
"type": "git",
@@ -39,6 +40,7 @@
3940
"babel-preset-es2015": "^6.9.0",
4041
"babel-preset-stage-1": "^6.5.0",
4142
"escape-html": "^1.0.3",
43+
"flow-bin": "^0.46.0",
4244
"leafdoc": "github:anru/Leafdoc#v1.1",
4345
"mkdirp": "^0.5.1",
4446
"mocha": "^2.5.2",

yarn.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,10 @@ fill-range@^2.1.0:
952952
repeat-element "^1.1.2"
953953
repeat-string "^1.5.2"
954954

955+
flow-bin@^0.46.0:
956+
version "0.46.0"
957+
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.46.0.tgz#06ad7fe19dddb1042264438064a2a32fee12b872"
958+
955959
for-in@^0.1.5:
956960
version "0.1.6"
957961
resolved "https://registry.yarnpkg.com/for-in/-/for-in-0.1.6.tgz#c9f96e89bfad18a545af5ec3ed352a1d9e5b4dc8"

0 commit comments

Comments
 (0)