simplytest-8.x-4.x-dev/themes/simplytest_theme/gulp-tasks/js-lint.js

themes/simplytest_theme/gulp-tasks/js-lint.js
/**
 * @file
 * Task: Lint JS.
 */

module.exports = function(gulp, options, plugins) {
  'use strict';

  // Set up JS lint
  gulp.task('js-lint', function() {
    return gulp.src([options.js.jsFiles,'!node_modules/**'])
      // eslint() attaches the lint output to the "eslint" property
      // of the file object so it can be used by other modules.
      .pipe(plugins.eslint())
      .pipe(plugins.eslint.format())
      .pipe(plugins.eslint.failAfterError());
  });
};

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc