1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 18:29:17 +02:00

Adding standard since its quite similar to the current style and removes the maintenance burden, while also making it easier to follow for contributors.

Over the time replace JSHint.
This commit is contained in:
Gunther Brunner 2015-07-28 16:26:50 +09:00
parent 361bf9caea
commit 142866838c
5 changed files with 29 additions and 19 deletions

View file

@ -2,6 +2,7 @@ var gulp = require('gulp')
var gutil = require('gulp-util')
var jshint = require('gulp-jshint')
var jsonlint = require('gulp-jsonlint')
var standard = require('gulp-standard')
var webpack = require('webpack')
var ngAnnotatePlugin = require('ng-annotate-webpack-plugin')
var webpackConfig = require('./webpack.config').webpack
@ -46,6 +47,15 @@ gulp.task('jscs', function () {
.pipe(jscs())
});
gulp.task('standard', function () {
// Check res/app for now
return gulp.src(['res/app/**/*.js', '!**/*-spec.js'])
.pipe(standard())
.pipe(standard.reporter('default', {
breakOnError: true
}))
})
gulp.task('lint', ['jshint', 'jsonlint'])
gulp.task('test', ['lint', 'run:checkversion'])