gulpfile.js 614 B

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