-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgulpfile.js
32 lines (31 loc) · 873 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
var gulp = require('gulp'),
gutil = require('gulp-util'),
eslint = require('gulp-eslint'),
phpcs = require('gulp-phpcs');
gulp.task('default', function () {
return gulp.src('**/*.php')
// Validate files using PHP Code Sniffer
// TODO Exclude HtmlPurifier, etc
.pipe(phpcs({
bin: 'C:/Users/gunth/AppData/Roaming/Composer/vendor/bin/phpcs',
standard: 'PSR1',
warningSeverity: 0
}))
// Log all problems that was found
.pipe(phpcs.reporter('log'));
});
/*
gulp.task('lint', function() {
return gulp.src('*.js')
.pipe(eslint({
configFile: '.eslintrc'
}))
.pipe(eslint.format()) // Output till konsollen
.pipe(eslint.failAfterError());
});
*/
/*
gulp.task('default', ['lint'], function () {
gutil.log('Lint lyckades');
});
*/