forked from memezinga/memezinga-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
33 lines (28 loc) · 953 Bytes
/
gulpfile.js
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
32
33
'use strict';
var gulp = require('gulp'),
eslint = require('gulp-eslint'),
debug = require('gulp-debug'),
jsdoc = require('gulp-jsdoc3');
gulp.task('jsdoc', function(cb) {
var config = require('./docs/jsdoc.json');
gulp.src(['./docs/README.md', './**/*.js', '!./gulp-tasks/**', '!./docs/**', '!./dist/**', '!./node_modules/**', '!./test/**.js', '!gulpfile.js', '!./coverage'], {read: false})
.pipe(debug({title: 'JSDoc (Scope):'}))
.pipe(jsdoc(config, cb));
});
gulp.task('lint', function() {
var filesToLint = [
'**/*.{html,js}',
'!tests/protractor.conf.js',
'!dist/**/*',
'!docs/**/*',
'!node_modules/**/*',
'!tmp/**/*',
'!coverage/**/*'
];
return gulp.src(filesToLint)
.pipe(debug({title: 'eslint (Scope):'}))
.pipe(eslint())
.pipe(eslint({fix:true}))
.pipe(eslint.format())
.pipe(gulp.dest('.'));
});