Skip to content

Commit 6fdebb0

Browse files
committed
Fixes travis config and package adjustments.
1 parent 6570946 commit 6fdebb0

File tree

3 files changed

+22
-14
lines changed

3 files changed

+22
-14
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: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@ 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+
on:
13+
branch: master
14+
tags: true
1115
node_js:
12-
- '7'
16+
- '7'
1317
script:
14-
- yarn run check
18+
- yarn run flow:defs
19+
- yarn run check
1520
after_success:
16-
- yarn run test:coverage:deploy
17-
- yarn run publish
21+
- yarn run test:coverage:deploy

package.json

Lines changed: 4 additions & 6 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"
@@ -25,11 +23,11 @@
2523
"build": "babel-node ./tools/scripts/build.js",
2624
"check": "yarn run lint && yarn run flow && 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",

0 commit comments

Comments
 (0)