gulpfile.js 655 B

1234567891011121314151617181920212223242526
  1. /**
  2. * @license Copyright (c) 2003-2016, 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 config = {
  9. ROOT_DIR: '.',
  10. WORKSPACE_DIR: '..',
  11. // Files ignored by jshint and jscs tasks. Files from .gitignore will be added automatically during tasks execution.
  12. IGNORED_FILES: [
  13. 'src/lib/**'
  14. ]
  15. };
  16. const ckeditor5Lint = require( 'ckeditor5-dev-lint' )( config );
  17. gulp.task( 'lint', ckeditor5Lint.lint );
  18. gulp.task( 'lint-staged', ckeditor5Lint.lintStaged );
  19. gulp.task( 'pre-commit', [ 'lint-staged' ] );