Skip to content

Commit

Permalink
Migrate to gulp
Browse files Browse the repository at this point in the history
Because 2018.
  • Loading branch information
ErikHellman committed Aug 13, 2018
1 parent cddbc0e commit c6d0536
Show file tree
Hide file tree
Showing 7 changed files with 8,224 additions and 76 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["es2015"]
}
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module.exports = {
'extends': 'google',
'parserOptions': {
'ecmaVersion': 2017,
"sourceType": "module",
},
'rules': {
'max-len': 'off',
Expand Down
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

67 changes: 0 additions & 67 deletions Gruntfile.js

This file was deleted.

26 changes: 26 additions & 0 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import gulp from 'gulp';
import eslint from 'gulp-eslint';
import htmlhint from 'gulp-htmlhint';
import zip from 'gulp-zip';

gulp.task('zip', function() {
return gulp.src('src/content/extensions/desktopcapture/extension/**')
.pipe(zip('desktopCaptureExtension.zip'))
.pipe(gulp.dest('release'));
});

gulp.task('eslint', function() {
return gulp.src(['src/content/**/*.js', 'test/*.js', '!**/third_party/*.js'])
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError());
});

gulp.task('htmlhint', function() {
return gulp.src(['src/content/**/*.html', '!**/third_party/*.html'])
.pipe(htmlhint())
.pipe(htmlhint.reporter())
.pipe(htmlhint.failOnError());
});

gulp.task('default', ['eslint', 'htmlhint']);
Loading

0 comments on commit c6d0536

Please sign in to comment.