diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..b628d31 --- /dev/null +++ b/.babelrc @@ -0,0 +1,3 @@ +{ + "presets": ["es2015"] +} diff --git a/package.json b/package.json index 94c648c..09e8357 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,8 @@ "test-ci": "npm run lint && istanbul cover ./node_modules/mocha/bin/_mocha" }, "devDependencies": { + "babel-preset-es2015": "^6.5.0", + "babel-register": "^6.5.2", "bluebird": "^3.3.1", "chai": "^3.5.0", "jscs": "^2.9.0", diff --git a/test/mocha.opts b/test/mocha.opts index c261c3b..fb4e5b8 100644 --- a/test/mocha.opts +++ b/test/mocha.opts @@ -1 +1,2 @@ --require test/helpers/setup +--compilers js:babel-register