Skip to content

Commit 82142b8

Browse files
committed
Clean up infrastructure a bit.
1 parent c2a4e74 commit 82142b8

File tree

4 files changed

+20
-29
lines changed

4 files changed

+20
-29
lines changed

.travis.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
language: node_js
22
node_js:
3-
- "4"
4-
- "5"
3+
- "node"
54
script:
6-
- npm run clean
75
- npm run build
8-
- npm run test
9-
branches:
10-
only:
11-
- master
6+
- npm test

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Redux Thunk
33

44
Thunk [middleware](https://redux.js.org/advanced/middleware) for Redux.
55

6-
[![build status](https://img.shields.io/travis/gaearon/redux-thunk/master.svg?style=flat-square)](https://travis-ci.org/gaearon/redux-thunk)
6+
[![build status](https://img.shields.io/travis/reduxjs/redux-thunk/master.svg?style=flat-square)](https://travis-ci.org/reduxjs/redux-thunk)
77
[![npm version](https://img.shields.io/npm/v/redux-thunk.svg?style=flat-square)](https://www.npmjs.com/package/redux-thunk)
88
[![npm downloads](https://img.shields.io/npm/dm/redux-thunk.svg?style=flat-square)](https://www.npmjs.com/package/redux-thunk)
99

@@ -14,7 +14,7 @@ npm install --save redux-thunk
1414
## Note on 2.x Update
1515

1616
Most tutorials today assume Redux Thunk 1.x so you might run into an issue when running their code with 2.x.
17-
**If you use Redux Thunk 2.x in CommonJS environment, [don’t forget to add `.default` to your import](https://github.com/gaearon/redux-thunk/releases/tag/v2.0.0):**
17+
**If you use Redux Thunk 2.x in CommonJS environment, [don’t forget to add `.default` to your import](https://github.com/reduxjs/redux-thunk/releases/tag/v2.0.0):**
1818

1919
```diff
2020
- var ReduxThunk = require('redux-thunk')
@@ -27,7 +27,7 @@ If you used ES modules, you’re already all good:
2727
import ReduxThunk from 'redux-thunk' // no changes here 😀
2828
```
2929

30-
Additionally, since 2.x, we also support a [UMD build](https://unpkg.com/redux-thunk@2.0.1/dist/redux-thunk.min.js):
30+
Additionally, since 2.x, we also support a [UMD build](https://unpkg.com/redux-thunk/dist/redux-thunk.min.js):
3131

3232
```js
3333
var ReduxThunk = window.ReduxThunk.default

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
{
22
"name": "redux-thunk",
33
"version": "2.2.0",
4+
"license": "MIT",
45
"description": "Thunk middleware for Redux.",
6+
"repository": "github:reduxjs/redux-thunk",
7+
"bugs": "https://github.com/reduxjs/redux-thunk/issues",
8+
"homepage": "https://github.com/reduxjs/redux-thunk",
9+
"keywords": [
10+
"redux",
11+
"thunk",
12+
"middleware",
13+
"redux-middleware",
14+
"flux"
15+
],
16+
"author": "Dan Abramov <dan.abramov@me.com>",
517
"main": "lib/index.js",
6-
"jsnext:main": "es/index.js",
718
"module": "es/index.js",
819
"typings": "./index.d.ts",
920
"files": [
@@ -15,30 +26,15 @@
1526
],
1627
"scripts": {
1728
"clean": "rimraf lib dist es",
18-
"build": "npm run build:commonjs && npm run build:umd && npm run build:umd:min && npm run build:es",
19-
"prepublish": "npm run clean && npm run test && npm run build",
20-
"posttest": "npm run lint",
29+
"prepare": "npm run clean && npm run lint && npm run test && npm run build",
2130
"lint": "eslint src test",
2231
"test": "cross-env BABEL_ENV=commonjs mocha --compilers js:babel-core/register --reporter spec test/*.js",
32+
"build": "npm run build:commonjs && npm run build:umd && npm run build:umd:min && npm run build:es",
2333
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib",
2434
"build:es": "cross-env BABEL_ENV=es babel src --out-dir es",
2535
"build:umd": "cross-env BABEL_ENV=commonjs NODE_ENV=development webpack",
2636
"build:umd:min": "cross-env BABEL_ENV=commonjs NODE_ENV=production webpack"
2737
},
28-
"repository": {
29-
"type": "git",
30-
"url": "https://github.com/gaearon/redux-thunk.git"
31-
},
32-
"homepage": "https://github.com/gaearon/redux-thunk",
33-
"keywords": [
34-
"redux",
35-
"thunk",
36-
"middleware",
37-
"redux-middleware",
38-
"flux"
39-
],
40-
"author": "Dan Abramov <dan.abramov@me.com>",
41-
"license": "MIT",
4238
"devDependencies": {
4339
"babel-cli": "^6.6.5",
4440
"babel-core": "^6.6.5",

0 commit comments

Comments
 (0)