Permalink
Browse files

Fix node 4 compatibility (#3)

* Try to fix node 4 travis build "Unexpected reserved word"

* Trying to speed up travis build with caching

* Try to fix node 4 travis build "Unexpected reserved word"

* Force rebuild to check if travis is faster
  • Loading branch information...
1 parent 1d70e93 commit 6d6fee5c7fff3636e504c9e4ec4e0c96774202b9 Kenneth Skovhus committed on GitHub Sep 17, 2016
Showing with 9 additions and 6 deletions.
  1. +0 −1 .eslintignore
  2. +6 −1 .travis.yml
  3. +3 −2 package.json
  4. +0 −2 src/transformers/tape.test.js
View
@@ -1,2 +1 @@
node_modules
-lib
View
@@ -3,4 +3,9 @@ node_js:
- '6'
- '4'
script:
- - npm run check
+ - npm prune
+ - npm update
+ - npm run prepublish
+cache:
+ directories:
+ - node_modules
View
@@ -45,14 +45,15 @@
"update-notifier": "~1.0.2"
},
"devDependencies": {
- "babel-polyfill": "6.13.0",
+ "babel-jest": "^15.0.0",
"babel-preset-es2015": "^6.14.0",
"eslint": "^3.5.0",
"eslint-config-airbnb-base": "^7.1.0",
"eslint-plugin-import": "^1.15.0",
"jest": "^15.1.1"
},
"jest": {
- "testEnvironment": "node"
+ "testEnvironment": "node",
+ "scriptPreprocessor": "<rootDir>/node_modules/babel-jest"
}
}
@@ -1,6 +1,4 @@
-/* eslint-disable import/no-extraneous-dependencies */
/* eslint-env jest */
-import 'babel-polyfill';
import { wrapPlugin } from '../utils/test-helpers';
import plugin from './tape';

0 comments on commit 6d6fee5

Please sign in to comment.