-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
31 lines (25 loc) · 804 Bytes
/
gulpfile.js
File metadata and controls
31 lines (25 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) 2016 - present UTN-LIS
'use strict';
var gulp = require('gulp'),
eslint = require('gulp-eslint'),
jsonlint = require('gulp-jsonlint'),
puma = require('./');
gulp.task('eslint', function () {
return gulp.src(['index.js', 'gulpfile.js'])
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError());
});
gulp.task('jsonlint', function () {
return gulp.src(['package.json', '.eslintrc.json'])
.pipe(jsonlint())
.pipe(jsonlint.reporter())
.pipe(jsonlint.failAfterError());
});
gulp.task('test-plugin', function () {
return gulp.src('tests/files/*')
.pipe(puma('test.zip'))
.pipe(gulp.dest('dest/output.js'));
});
gulp.task('lint', ['eslint', 'jsonlint']);
gulp.task('default', ['lint']);