Преглед на файлове

Internal: Remove gulp dependency for pre-commit linting.

Maciej Gołaszewski преди 8 години
родител
ревизия
6b660532d2
променени са 4 файла, в които са добавени 13 реда и са изтрити 30 реда
  1. 1 0
      packages/ckeditor5-engine/.eslintignore
  2. 0 4
      packages/ckeditor5-engine/.gitignore
  3. 0 22
      packages/ckeditor5-engine/gulpfile.js
  4. 12 4
      packages/ckeditor5-engine/package.json

+ 1 - 0
packages/ckeditor5-engine/.eslintignore

@@ -0,0 +1 @@
+src/lib/

+ 0 - 4
packages/ckeditor5-engine/.gitignore

@@ -1,5 +1 @@
-# These files will be ignored by Git and by our linting tools:
-#	gulp lint
-#	gulp lint-staged
-
 node_modules/

+ 0 - 22
packages/ckeditor5-engine/gulpfile.js

@@ -1,22 +0,0 @@
-/**
- * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
-
-/* eslint-env node */
-
-'use strict';
-
-const gulp = require( 'gulp' );
-const ckeditor5Lint = require( '@ckeditor/ckeditor5-dev-lint' );
-const options = {
-	// Files ignored by `gulp lint` task.
-	// Files from .gitignore will be added automatically during task execution.
-	ignoredFiles: [
-		'src/lib/**'
-	]
-};
-
-gulp.task( 'lint', () => ckeditor5Lint.lint( options ) );
-gulp.task( 'lint-staged', () => ckeditor5Lint.lintStaged( options ) );
-gulp.task( 'pre-commit', [ 'lint-staged' ] );

+ 12 - 4
packages/ckeditor5-engine/package.json

@@ -10,7 +10,6 @@
     "@ckeditor/ckeditor5-utils": "^1.0.0-alpha.1"
   },
   "devDependencies": {
-    "@ckeditor/ckeditor5-dev-lint": "^3.1.4",
     "@ckeditor/ckeditor5-basic-styles": "^1.0.0-alpha.1",
     "@ckeditor/ckeditor5-core": "^1.0.0-alpha.1",
     "@ckeditor/ckeditor5-editor-classic": "^1.0.0-alpha.1",
@@ -23,8 +22,8 @@
     "@ckeditor/ckeditor5-undo": "^1.0.0-alpha.1",
     "@ckeditor/ckeditor5-widget": "^1.0.0-alpha.1",
     "eslint-config-ckeditor5": "^1.0.6",
-    "gulp": "^3.9.1",
-    "guppy-pre-commit": "^0.4.0"
+    "husky": "^0.14.3",
+    "lint-staged": "^4.2.3"
   },
   "engines": {
     "node": ">=6.0.0",
@@ -42,5 +41,14 @@
     "lang",
     "src",
     "theme"
-  ]
+  ],
+  "scripts": {
+    "lint": "eslint --quiet '**/*.js'",
+    "precommit": "lint-staged"
+  },
+  "lint-staged": {
+    "**/*.js": [
+      "eslint --quiet"
+    ]
+  }
 }