diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..ae6dda2 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: node_js +node_js: + - "4" + - "5" + - "6" +script: + - npm run check:src + - npm run build +branches: + only: + - master +cache: + directories: + - $HOME/.npm \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 54e4d6c..cbadcb5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Some guidelines in reading this document: ## [new release] +* Adds integration with Travis and adds NPM and Travis badges * Implements reducer tests ([#6](https://github.com/log-oscon/redux-wpapi/pull/6)) * Draft on Contributions and the introduction of this `CHANGELOG.md` file ([#5](https://github.com/log-oscon/redux-wpapi/pull/5)) * Fix FAILURE handling ([#3](https://github.com/log-oscon/redux-wpapi/pull/3)) diff --git a/README.md b/README.md index 8e4b1fb..3b5448c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # redux-wpapi [![npm version](https://img.shields.io/npm/v/redux.svg?style=flat-square)](https://www.npmjs.com/package/redux-wpapi) +[![Build Status](https://travis-ci.org/log-oscon/redux-wpapi.svg?branch=master)](https://travis-ci.org/log-oscon/redux-wpapi) A [node-wpapi](https://github.com/WP-API/node-wpapi) integration for a Redux based Application. diff --git a/package.json b/package.json index 1cce509..bbd4153 100644 --- a/package.json +++ b/package.json @@ -22,11 +22,19 @@ "build": "npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min", "prepublish": "npm run clean && npm run check:src && npm run build" }, + "repository": { + "type": "git", + "url": "https://github.com/log-oscon/redux-wpapi.git" + }, "author": "log.OSCON (http://www.log.pt/)", "license": "MIT", + "bugs": { + "url": "https://github.com/log-oscon/redux-wpapi/issues" + }, "dependencies": { "immutable": "^3.8.1", "lodash": "^4.15.0", + "loose-envify": "^1.2.0", "qs": "^6.2.1", "reselect": "^2.5.3" }, @@ -50,5 +58,19 @@ "rimraf": "^2.5.4", "webpack": "^1.13.2", "wpapi": "^0.9.1" + }, + "npmName": "redux-wpapi", + "npmFileMap": [ + { + "basePath": "/dist/", + "files": [ + "*.js" + ] + } + ], + "browserify": { + "transform": [ + "loose-envify" + ] } }