gulpfile.js 598 B

123456789101112131415161718192021
  1. /**
  2. * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* jshint browser: false, node: true, strict: true */
  6. 'use strict';
  7. const gulp = require( 'gulp' );
  8. const ckeditor5Lint = require( '@ckeditor/ckeditor5-dev-lint' )( {
  9. // Files ignored by `gulp lint` task.
  10. // Files from .gitignore will be added automatically during task execution.
  11. ignoredFiles: [
  12. 'src/lib/**'
  13. ]
  14. } );
  15. gulp.task( 'lint', ckeditor5Lint.lint );
  16. gulp.task( 'lint-staged', ckeditor5Lint.lintStaged );
  17. gulp.task( 'pre-commit', [ 'lint-staged' ] );