Skip to content

Commit

Permalink
Clean up infrastructure a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
timdorr committed May 28, 2018
1 parent c2a4e74 commit 82142b8
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 29 deletions.
9 changes: 2 additions & 7 deletions .travis.yml
@@ -1,11 +1,6 @@
language: node_js
node_js:
- "4"
- "5"
- "node"
script:
- npm run clean
- npm run build
- npm run test
branches:
only:
- master
- npm test
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -3,7 +3,7 @@ Redux Thunk

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

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

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

Most tutorials today assume Redux Thunk 1.x so you might run into an issue when running their code with 2.x.
**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):**
**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):**

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

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

```js
var ReduxThunk = window.ReduxThunk.default
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 14 additions & 18 deletions package.json
@@ -1,9 +1,20 @@
{
"name": "redux-thunk",
"version": "2.2.0",
"license": "MIT",
"description": "Thunk middleware for Redux.",
"repository": "github:reduxjs/redux-thunk",
"bugs": "https://github.com/reduxjs/redux-thunk/issues",
"homepage": "https://github.com/reduxjs/redux-thunk",
"keywords": [
"redux",
"thunk",
"middleware",
"redux-middleware",
"flux"
],
"author": "Dan Abramov <dan.abramov@me.com>",
"main": "lib/index.js",
"jsnext:main": "es/index.js",
"module": "es/index.js",
"typings": "./index.d.ts",
"files": [
Expand All @@ -15,30 +26,15 @@
],
"scripts": {
"clean": "rimraf lib dist es",
"build": "npm run build:commonjs && npm run build:umd && npm run build:umd:min && npm run build:es",
"prepublish": "npm run clean && npm run test && npm run build",
"posttest": "npm run lint",
"prepare": "npm run clean && npm run lint && npm run test && npm run build",
"lint": "eslint src test",
"test": "cross-env BABEL_ENV=commonjs mocha --compilers js:babel-core/register --reporter spec test/*.js",
"build": "npm run build:commonjs && npm run build:umd && npm run build:umd:min && npm run build:es",
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib",
"build:es": "cross-env BABEL_ENV=es babel src --out-dir es",
"build:umd": "cross-env BABEL_ENV=commonjs NODE_ENV=development webpack",
"build:umd:min": "cross-env BABEL_ENV=commonjs NODE_ENV=production webpack"
},
"repository": {
"type": "git",
"url": "https://github.com/gaearon/redux-thunk.git"
},
"homepage": "https://github.com/gaearon/redux-thunk",
"keywords": [
"redux",
"thunk",
"middleware",
"redux-middleware",
"flux"
],
"author": "Dan Abramov <dan.abramov@me.com>",
"license": "MIT",
"devDependencies": {
"babel-cli": "^6.6.5",
"babel-core": "^6.6.5",
Expand Down

0 comments on commit 82142b8

Please sign in to comment.