From 82142b8f974fd988761bc7261a6a39cdf1c4bcb5 Mon Sep 17 00:00:00 2001 From: Tim Dorr Date: Mon, 28 May 2018 14:41:38 -0400 Subject: [PATCH] Clean up infrastructure a bit. --- .travis.yml | 9 ++------- README.md | 6 +++--- package-lock.json | 2 +- package.json | 32 ++++++++++++++------------------ 4 files changed, 20 insertions(+), 29 deletions(-) diff --git a/.travis.yml b/.travis.yml index b409e1c..184fcc6 100644 --- a/.travis.yml +++ b/.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 diff --git a/README.md b/README.md index 3e10b55..9538a45 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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') @@ -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 diff --git a/package-lock.json b/package-lock.json index c9d08f3..8d7cd8f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "redux-thunk", - "version": "2.2.0", + "version": "2.3.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 3f15e50..f876485 100644 --- a/package.json +++ b/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 ", "main": "lib/index.js", - "jsnext:main": "es/index.js", "module": "es/index.js", "typings": "./index.d.ts", "files": [ @@ -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 ", - "license": "MIT", "devDependencies": { "babel-cli": "^6.6.5", "babel-core": "^6.6.5",