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 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,