How to use gulp-standard - 7 common examples

To help you get started, we’ve selected a few gulp-standard examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github maliMirkec / starter-project-cli / gulpfile.js / script.js View on Github external
function jsStart () {
  return src(`${helpers.src()}/${helpers.trim(global.config.js.src)}/*.js`)
    .pipe(sourcemaps.init())
    .pipe(standard())
    .pipe(standard.reporter('default', standardConfig))
    .pipe(eslint(eslintConfig))
    .pipe(eslint.format())
    .pipe(eslint.failAfterError())
    .pipe(eslint.result((result) => {
      gutil.log(gutil.colors.blue(`ESLint result: ${result.filePath}`))
      gutil.log(gutil.colors.green(`# Messages: ${result.messages.length}`))
      gutil.log(gutil.colors.yellow(`# Warnings: ${result.warningCount}`))
      gutil.log(gutil.colors.red(`# Errors: ${result.errorCount}`))
    }))
    .pipe(include(includeConfig))
    .pipe(babel(babelConfig))
    .pipe(dest(`${helpers.dist()}/${helpers.trim(global.config.js.dist)}`))
    .pipe(uglify())
    .pipe(rename(renameConfig))
    .pipe(sourcemaps.write(sourcemapsConfig))
    .pipe(dest(`${helpers.dist()}/${helpers.trim(global.config.js.dist)}`))
github atom / etch / gulpfile.js View on Github external
gulp.task('standard', function () {
  return gulp.src(['src/**/*.js', 'test/**/*.js'])
    .pipe(standard())
    .pipe(standard.reporter('default', {
      breakOnError: true
    }))
})
github cryptii / cryptii / gulpfile.js View on Github external
function scriptTestLint () {
  return src(paths.test + '/**/*.js')
    .pipe(standard())
    .pipe(standard.reporter('default', {
      breakOnError: true,
      quiet: true
    }))
}
github gsantiago / jquery-view / gulpfile.js View on Github external
gulp.task('standard', function () {
  return gulp.src(['./src/**/*.js'])
    .pipe(standard())
    .pipe(standard.reporter('default', {
      breakOnError: true
    }))
})
github cybertk / generator-swift-framework / gulpfile.js View on Github external
gulp.task('test-lint', function () {
  return gulp.src(['gulpfile.js', 'generators/**/*.js'])
    .pipe(standard())
    .pipe(standard.reporter('default', { breakOnError: true }))
})
github surge-sh / gulp-surge / gulpfile.js View on Github external
gulp.task('lint', [], function () {
  return gulp.src(['./index.js', './test/**/*.js'])
    .pipe(standard())
    .pipe(standard.reporter('default', {
      breakOnError: false
    }))
})
github pmros / graflow / gulpfile.js View on Github external
function lint (files) {
  return gulp.src(files)
    .pipe(standard())
    .pipe(standard.reporter('default', {
      breakOnError: true,
      quiet: true
    }))
}

gulp-standard

gulp plugin for checking JavaScript code with the standard syntax

MIT
Latest version published 5 years ago

Package Health Score

42 / 100
Full package analysis

Popular gulp-standard functions