From 1572b7c91736e4f737b73ebf0a2d733053f1a646 Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 23 Aug 2016 16:58:42 -0400 Subject: [PATCH 1/2] Add Travis CI Continuous integration tool will run tests and linter and ensure code confidence. Also ignore `.travis.yml` in `.npmignore`. https://travis-ci.org --- .npmignore | 1 + .travis.yml | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 .travis.yml diff --git a/.npmignore b/.npmignore index 8cd94105..167123b2 100644 --- a/.npmignore +++ b/.npmignore @@ -1,2 +1,3 @@ test .eslint* +.travis* diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..ae9ac84c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,20 @@ +language: node_js + +node_js: + - stable + +sudo: false # https://docs.travis-ci.com/user/migrating-from-legacy/ + +install: + - npm install + +script: + - npm run lint + - npm test + +cache: + directories: + - node_modules + +notifications: + email: false From 8c7c7f8eb28dc43809f1291d5468dd47325838c2 Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 23 Aug 2016 17:42:54 -0400 Subject: [PATCH 2/2] Ensure applicable versions of `react` are specified (package.json) This package only supports `react` greater than or equal to v0.14 to stay consistent with React elements schema. Include all versions of `react` and `react-dom` in devDependencies to ensure that the latest is installed and tested by Travis CI. --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a812919b..3c2729b1 100644 --- a/package.json +++ b/package.json @@ -30,11 +30,11 @@ "eslint": "^3.3.1", "jsdomify": "^2.1.0", "mocha": "^3.0.2", - "react": "^15.3.0", - "react-dom": "^15.3.0" + "react": "*", + "react-dom": "*" }, "peerDependencies": { - "react": "^0.13 || ^15.0" + "react": ">=0.14" }, "browser": { "htmlparser2/lib/Parser": false,