Skip to content

Commit 34cb689

Browse files
committed
Merge branch 'master' into react
2 parents 2f73e23 + 2395283 commit 34cb689

File tree

4 files changed

+86
-70
lines changed

4 files changed

+86
-70
lines changed

.flowconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,11 @@ tools/flow/definitions/
3333
# and not have flow throw a hissy fit.
3434
module.name_mapper='^\(.*\)\.\(css\|eot\|gif\|ico\|jpg\|jpeg\|less\|otf\|mp3\|mp4\|ogg\|png\|sass\|scss\|sss\|svg\|swf\|ttf\|webp\|woff\|woff2\)$' -> '<PROJECT_ROOT>/tools/flow/stubs/WebpackAsset.js.flow'
3535

36+
# Sometimes we expect a flow error, and don't want to fix it. e.g. in our tests.
37+
suppress_comment= \\(.\\|\n\\)*\\$FlowIgnore
38+
39+
# Mark a flow error as to be fixed later
40+
suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe
41+
3642
[version]
3743
0.37.4

.travis.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,22 @@ cache:
44
yarn: true
55
directories:
66
- node_modules
7-
branches:
8-
only:
9-
- master
10-
- /^greenkeeper-/
7+
deploy:
8+
provider: npm
9+
email: sean@ctrlplusb.com
10+
# TODO: run:
11+
# travis encrypt YOUR_API_KEY --add deploy.api_key
12+
api_key:
13+
secure: vZhrpLeEpHW35blKAklFPUOsulSzoaXitNf2BxUsb03U1721Pe1LUrNfILOYz7hWtv3HWWIoF2HTXoOf4NQV6YKUddArUh+eupeXv9+zrqn3f9jFFZnauCsTWCEKtvK0Ca714Kzg/ngKfshyn/on1p/ZKjAG0KufgkYj5YWUtGzdgtF1uOaXY7GVvBv/CjPkW3SHpC4VFco/0NC9QdqY0wm11CYtwnVHWme1tcj/3h5Po/9NVpGgQKf1etGYDrij1oef6YIb0cS70tCZF5YuQgehTtSqtCOoMppXHzgXYceUcFRq/8Z+Fc1ZITf+T5aus5yGScAUpZy4lynemMfo+im+9aYe06vkMJW0Bu8mjSXt/q2JBkm6JtUAC0SjfLd1t4Hylhmr3F8/auIM3jXI6I8UH4yEkaRNbzMG4MddbJ42W2pjBmLAkbNODksomn9ow1xx6Q6pRlmHz8PZAFI++rRFGL5V4rjrbziUDkIaT6dUKB31u965aJAM6s9v/CVc8w0ylNZXZDeMqvkJrgyjWpFjtXuMo19aHoBF1ScpLcaEEbt3rateszxrTJU1A/M52Qew8CgS8wUuUSuur7BpFP0jRQ6fxN+EqRRXndznS470fYZtrJxvl1VHoaNUjgNMONHb21zkeH1B3WYHUOWKuRS1luRv0GDjhsQZOHMsIfY=
14+
on:
15+
branch: master
16+
tags: true
1117
node_js:
12-
- '7'
18+
- '7'
1319
script:
14-
- yarn run check
20+
# Unfortunately flow falls over when a dep exists in peer deps and others. :(
21+
# @see https://github.com/flowtype/flow-typed/issues/528
22+
#- yarn run flow:defs
23+
- yarn run check
1524
after_success:
16-
- yarn run test:coverage:deploy
17-
- yarn run publish
25+
- yarn run test:coverage:deploy

package.json

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@
77
"files": [
88
"*.js",
99
"*.md",
10-
"umd"
10+
"umd",
11+
"commonjs"
1112
],
12-
"engines": {
13-
"node": ">=7.0.0"
14-
},
1513
"repository": {
1614
"type": "git",
1715
"url": "https://github.com/ctrlplusb/npm-library-starter.git"
@@ -23,17 +21,17 @@
2321
],
2422
"scripts": {
2523
"build": "babel-node ./tools/scripts/build.js",
26-
"check": "yarn run lint && yarn run flow && yarn run test",
24+
"check": "yarn run lint && yarn run test",
2725
"clean": "rimraf ./commonjs && rimraf ./umd && rimraf ./coverage && rimraf ./flow-coverage",
28-
"example": "echo 'Make sure to `cd example && yarn install`' && cd example && yarn run start",
26+
"example:web": "echo 'Make sure to `cd example/web && yarn install`' && cd example/web && yarn run start",
2927
"flow": "babel-node ./tools/scripts/flow",
3028
"flow:coverage": "flow-coverage-report -i 'src/**/*.js' -t html -t json -t text",
3129
"flow:defs": "flow-typed install --overwrite",
32-
"lint": "eslint modules",
30+
"lint": "eslint src",
3331
"prepublish": "yarn run build",
3432
"test": "jest",
3533
"test:coverage": "yarn run test -- --coverage",
36-
"test:coverage:deploy": "yarn run coverage && codecov"
34+
"test:coverage:deploy": "yarn run test:coverage && codecov"
3735
},
3836
"peerDependencies": {
3937
"react": ">=15.0.0"
@@ -46,7 +44,7 @@
4644
"babel-jest": "18.0.0",
4745
"babel-loader": "6.2.10",
4846
"babel-polyfill": "6.20.0",
49-
"babel-preset-env": "1.1.4",
47+
"babel-preset-env": "1.1.7",
5048
"babel-preset-latest": "6.16.0",
5149
"babel-preset-react": "6.16.0",
5250
"babel-preset-stage-3": "6.17.0",
@@ -55,11 +53,11 @@
5553
"cross-env": "3.1.4",
5654
"enzyme": "2.7.0",
5755
"enzyme-to-json": "1.4.5",
58-
"eslint": "3.12.2",
59-
"eslint-config-airbnb": "13.0.0",
56+
"eslint": "3.13.1",
57+
"eslint-config-airbnb": "14.0.0",
6058
"eslint-plugin-flowtype": "2.29.2",
6159
"eslint-plugin-import": "2.2.0",
62-
"eslint-plugin-jsx-a11y": "2.2.3",
60+
"eslint-plugin-jsx-a11y": "3.0.2",
6361
"eslint-plugin-react": "6.8.0",
6462
"flow-bin": "0.37.4",
6563
"flow-coverage-report": "0.2.0",
@@ -78,7 +76,7 @@
7876
"sinon": "1.17.7",
7977
"webpack": "2.2.0-rc.3",
8078
"webpack-dev-middleware": "1.9.0",
81-
"webpack-hot-middleware": "2.14.0"
79+
"webpack-hot-middleware": "2.15.0"
8280
},
8381
"config": {
8482
"ghooks": {

yarn.lock

Lines changed: 53 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ ajv-keywords@^1.1.1:
4545
resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-1.5.0.tgz#c11e6859eafff83e0dafc416929472eca946aa2c"
4646

4747
ajv@^4.7.0:
48-
version "4.10.3"
49-
resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.10.3.tgz#3e4fea9675b157de7888b80dd0ed735b83f28e11"
48+
version "4.10.4"
49+
resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.10.4.tgz#c0974dd00b3464984892d6010aa9c2c945933254"
5050
dependencies:
5151
co "^4.6.0"
5252
json-stable-stringify "^1.0.1"
@@ -433,13 +433,13 @@ babel-plugin-check-es2015-constants@^6.3.13:
433433
babel-runtime "^6.0.0"
434434

435435
babel-plugin-istanbul@^3.0.0:
436-
version "3.0.0"
437-
resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-3.0.0.tgz#da7324520ae0b8a44b6a078e72e883374a9fab76"
436+
version "3.1.2"
437+
resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-3.1.2.tgz#11d5abde18425ec24b5d648c7e0b5d25cd354a22"
438438
dependencies:
439439
find-up "^1.1.2"
440-
istanbul-lib-instrument "^1.1.4"
440+
istanbul-lib-instrument "^1.4.2"
441441
object-assign "^4.1.0"
442-
test-exclude "^3.2.2"
442+
test-exclude "^3.3.0"
443443

444444
babel-plugin-jest-hoist@^18.0.0:
445445
version "18.0.0"
@@ -729,9 +729,9 @@ babel-polyfill@6.20.0, babel-polyfill@^6.16.0, babel-polyfill@^6.6.1:
729729
core-js "^2.4.0"
730730
regenerator-runtime "^0.10.0"
731731

732-
babel-preset-env@1.1.4:
733-
version "1.1.4"
734-
resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.1.4.tgz#d876f9fcff5fe0612db3dcbc0c87503b41d4873f"
732+
babel-preset-env@1.1.7:
733+
version "1.1.7"
734+
resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.1.7.tgz#4ca8dd905056039c6788a0174bfac7b7bad89fbf"
735735
dependencies:
736736
babel-plugin-check-es2015-constants "^6.3.13"
737737
babel-plugin-syntax-trailing-function-commas "^6.13.0"
@@ -1026,10 +1026,10 @@ browserify-zlib@^0.1.4:
10261026
pako "~0.2.0"
10271027

10281028
browserslist@^1.4.0:
1029-
version "1.5.1"
1030-
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-1.5.1.tgz#67c3f2a1a6ad174cd01d25d2362e6e6083b26986"
1029+
version "1.5.2"
1030+
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-1.5.2.tgz#1c82fde0ee8693e6d15c49b7bff209dc06298c56"
10311031
dependencies:
1032-
caniuse-db "^1.0.30000601"
1032+
caniuse-db "^1.0.30000604"
10331033

10341034
bser@^1.0.2:
10351035
version "1.0.2"
@@ -1057,9 +1057,9 @@ builtin-modules@^1.0.0, builtin-modules@^1.1.1:
10571057
version "1.1.1"
10581058
resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f"
10591059

1060-
builtin-status-codes@^2.0.0:
1061-
version "2.0.0"
1062-
resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-2.0.0.tgz#6f22003baacf003ccd287afe6872151fddc58579"
1060+
builtin-status-codes@^3.0.0:
1061+
version "3.0.0"
1062+
resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8"
10631063

10641064
caller-path@^0.1.0:
10651065
version "0.1.0"
@@ -1083,7 +1083,7 @@ camelcase@^3.0.0:
10831083
version "3.0.0"
10841084
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a"
10851085

1086-
caniuse-db@^1.0.30000601:
1086+
caniuse-db@^1.0.30000604:
10871087
version "1.0.30000604"
10881088
resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000604.tgz#bc139270a777564d19c0aadcd832b491d093bda5"
10891089

@@ -1708,15 +1708,15 @@ escope@^3.6.0:
17081708
esrecurse "^4.1.0"
17091709
estraverse "^4.1.1"
17101710

1711-
eslint-config-airbnb-base@^10.0.0:
1712-
version "10.0.1"
1713-
resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-10.0.1.tgz#f17d4e52992c1d45d1b7713efbcd5ecd0e7e0506"
1711+
eslint-config-airbnb-base@^11.0.1:
1712+
version "11.0.1"
1713+
resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-11.0.1.tgz#5401dba284c6b7d7c8fb1c2ee19aba018f9dfa21"
17141714

1715-
eslint-config-airbnb@13.0.0:
1716-
version "13.0.0"
1717-
resolved "https://registry.yarnpkg.com/eslint-config-airbnb/-/eslint-config-airbnb-13.0.0.tgz#688d15d3c276c0c753ae538c92a44397d76ae46e"
1715+
eslint-config-airbnb@14.0.0:
1716+
version "14.0.0"
1717+
resolved "https://registry.yarnpkg.com/eslint-config-airbnb/-/eslint-config-airbnb-14.0.0.tgz#bfd87a71102ba3ee19c3733357000b3d5e39790f"
17181718
dependencies:
1719-
eslint-config-airbnb-base "^10.0.0"
1719+
eslint-config-airbnb-base "^11.0.1"
17201720

17211721
eslint-import-resolver-node@^0.2.0:
17221722
version "0.2.3"
@@ -1754,9 +1754,9 @@ eslint-plugin-import@2.2.0:
17541754
minimatch "^3.0.3"
17551755
pkg-up "^1.0.0"
17561756

1757-
eslint-plugin-jsx-a11y@2.2.3:
1758-
version "2.2.3"
1759-
resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-2.2.3.tgz#4e35cb71b8a7db702ac415c806eb8e8d9ea6c65d"
1757+
eslint-plugin-jsx-a11y@3.0.2:
1758+
version "3.0.2"
1759+
resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-3.0.2.tgz#9f0eabcafde3d2a2600d96a66adb90d099e841fe"
17601760
dependencies:
17611761
damerau-levenshtein "^1.0.0"
17621762
jsx-ast-utils "^1.0.0"
@@ -1769,9 +1769,9 @@ eslint-plugin-react@6.8.0:
17691769
doctrine "^1.2.2"
17701770
jsx-ast-utils "^1.3.4"
17711771

1772-
eslint@3.12.2:
1773-
version "3.12.2"
1774-
resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.12.2.tgz#6be5a9aa29658252abd7f91e9132bab1f26f3c34"
1772+
eslint@3.13.1:
1773+
version "3.13.1"
1774+
resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.13.1.tgz#564d2646b5efded85df96985332edd91a23bff25"
17751775
dependencies:
17761776
babel-code-frame "^6.16.0"
17771777
chalk "^1.1.3"
@@ -1803,7 +1803,7 @@ eslint@3.12.2:
18031803
require-uncached "^1.0.2"
18041804
shelljs "^0.7.5"
18051805
strip-bom "^3.0.0"
1806-
strip-json-comments "~1.0.1"
1806+
strip-json-comments "~2.0.1"
18071807
table "^3.7.8"
18081808
text-table "~0.2.0"
18091809
user-home "^2.0.0"
@@ -2083,8 +2083,8 @@ fs.realpath@^1.0.0:
20832083
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
20842084

20852085
fsevents@^1.0.0:
2086-
version "1.0.15"
2087-
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.0.15.tgz#fa63f590f3c2ad91275e4972a6cea545fb0aae44"
2086+
version "1.0.17"
2087+
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.0.17.tgz#8537f3f12272678765b4fd6528c0f1f66f8f4558"
20882088
dependencies:
20892089
nan "^2.3.0"
20902090
node-pre-gyp "^0.6.29"
@@ -2627,9 +2627,9 @@ istanbul-lib-hook@^1.0.0-alpha.4:
26272627
dependencies:
26282628
append-transform "^0.3.0"
26292629

2630-
istanbul-lib-instrument@^1.1.1, istanbul-lib-instrument@^1.1.4, istanbul-lib-instrument@^1.3.0:
2631-
version "1.3.1"
2632-
resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-1.3.1.tgz#112c25a4f2f9bc361d13d14bbff992331b974e52"
2630+
istanbul-lib-instrument@^1.1.1, istanbul-lib-instrument@^1.3.0, istanbul-lib-instrument@^1.4.2:
2631+
version "1.4.2"
2632+
resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-1.4.2.tgz#0e2fdfac93c1dabf2e31578637dc78a19089f43e"
26332633
dependencies:
26342634
babel-generator "^6.18.0"
26352635
babel-template "^6.16.0"
@@ -3298,8 +3298,8 @@ natural-compare@^1.4.0:
32983298
resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
32993299

33003300
node-emoji@^1.4.1:
3301-
version "1.4.3"
3302-
resolved "https://registry.yarnpkg.com/node-emoji/-/node-emoji-1.4.3.tgz#5272f70b823c4df6d7c39f84fd8203f35b3e5d36"
3301+
version "1.5.0"
3302+
resolved "https://registry.yarnpkg.com/node-emoji/-/node-emoji-1.5.0.tgz#9a0d9fe03fd43afa357d6d8e439aa31e599959b7"
33033303
dependencies:
33043304
string.prototype.codepointat "^0.2.0"
33053305

@@ -4051,8 +4051,8 @@ sha.js@^2.3.6:
40514051
inherits "^2.0.1"
40524052

40534053
shelljs@^0.7.5:
4054-
version "0.7.5"
4055-
resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.5.tgz#2eef7a50a21e1ccf37da00df767ec69e30ad0675"
4054+
version "0.7.6"
4055+
resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.6.tgz#379cccfb56b91c8601e4793356eb5382924de9ad"
40564056
dependencies:
40574057
glob "^7.0.0"
40584058
interpret "^1.0.0"
@@ -4164,10 +4164,10 @@ stream-browserify@^2.0.1:
41644164
readable-stream "^2.0.2"
41654165

41664166
stream-http@^2.3.1:
4167-
version "2.5.0"
4168-
resolved "https://registry.yarnpkg.com/stream-http/-/stream-http-2.5.0.tgz#585eee513217ed98fe199817e7313b6f772a6802"
4167+
version "2.6.0"
4168+
resolved "https://registry.yarnpkg.com/stream-http/-/stream-http-2.6.0.tgz#adf3309ced17624ebfb7ef13e6ac4cfe405a8b12"
41694169
dependencies:
4170-
builtin-status-codes "^2.0.0"
4170+
builtin-status-codes "^3.0.0"
41714171
inherits "^2.0.1"
41724172
readable-stream "^2.1.0"
41734173
to-arraybuffer "^1.0.0"
@@ -4213,10 +4213,14 @@ strip-eof@^1.0.0:
42134213
version "1.0.0"
42144214
resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf"
42154215

4216-
strip-json-comments@~1.0.1, strip-json-comments@~1.0.4:
4216+
strip-json-comments@~1.0.4:
42174217
version "1.0.4"
42184218
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-1.0.4.tgz#1e15fbcac97d3ee99bf2d73b4c656b082bbafb91"
42194219

4220+
strip-json-comments@~2.0.1:
4221+
version "2.0.1"
4222+
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
4223+
42204224
supports-color@^0.2.0:
42214225
version "0.2.0"
42224226
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-0.2.0.tgz#d92de2694eb3f67323973d7ae3d8b55b4c22190a"
@@ -4293,7 +4297,7 @@ terminal-table@0.0.12:
42934297
colors "^1.0.3"
42944298
eastasianwidth "^0.1.0"
42954299

4296-
test-exclude@^3.2.2:
4300+
test-exclude@^3.3.0:
42974301
version "3.3.0"
42984302
resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-3.3.0.tgz#7a17ca1239988c98367b0621456dbb7d4bc38977"
42994303
dependencies:
@@ -4489,9 +4493,9 @@ webpack-dev-middleware@1.9.0:
44894493
path-is-absolute "^1.0.0"
44904494
range-parser "^1.0.3"
44914495

4492-
webpack-hot-middleware@2.14.0:
4493-
version "2.14.0"
4494-
resolved "https://registry.yarnpkg.com/webpack-hot-middleware/-/webpack-hot-middleware-2.14.0.tgz#64bb8cf056ba84c699d148840ae77e54179abb6d"
4496+
webpack-hot-middleware@2.15.0:
4497+
version "2.15.0"
4498+
resolved "https://registry.yarnpkg.com/webpack-hot-middleware/-/webpack-hot-middleware-2.15.0.tgz#71995af7c0025f109df482f86f1e10379526d026"
44954499
dependencies:
44964500
ansi-html "0.0.6"
44974501
html-entities "^1.2.0"
@@ -4542,8 +4546,8 @@ whatwg-fetch@>=0.10.0:
45424546
resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.1.tgz#078b9461bbe91cea73cbce8bb122a05f9e92b772"
45434547

45444548
whatwg-url@^4.1.0:
4545-
version "4.1.1"
4546-
resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-4.1.1.tgz#567074923352de781e3500d64a86aa92a971b4a4"
4549+
version "4.2.0"
4550+
resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-4.2.0.tgz#abf1a3f5ff4bc2005b3f0c2119382631789d8e44"
45474551
dependencies:
45484552
tr46 "~0.0.3"
45494553
webidl-conversions "^3.0.0"

0 commit comments

Comments
 (0)