Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Updates dependencies and remove JSDOM usage #111

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@
"node": true,
"mocha": true,
"es6": true
},
"rules": {
"indent": 0,
"no-unused-vars": [2, {"args": "none"}]
}
}
13 changes: 7 additions & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const babel = require('gulp-babel');
const babelRegister = require('babel-register');
const del = require('del');
const eslint = require('gulp-eslint');
const gulp = require('gulp');
Expand All @@ -10,7 +9,9 @@ const testFiles = ['test/setup/node.js', 'test/unit/**/*.js'];
gulp.task('build', ['clean'], () =>
gulp
.src('src/**/*')
.pipe(babel())
.pipe(babel({
plugins: ['transform-runtime'],
}))
.pipe(gulp.dest('build'))
);

Expand All @@ -27,9 +28,9 @@ gulp.task('lint', () =>
);

gulp.task('test', () =>
gulp.src(testFiles).pipe(mocha({compilers: babelRegister, timeout: 20000}))
gulp.src(testFiles).pipe(mocha({require: 'babel-core/register', timeout: 20000}))
);

gulp.task('test:watch', () =>
gulp.watch(testFiles.concat(['src/**/*.js']), ['test'])
);
gulp.task('test:watch', () => {
gulp.watch(testFiles.concat(['src/**/*.js']), ['test']);
});
Loading