From d44f7e46238a809d9f9561a24c691d93148a5b2d Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Tue, 3 Jan 2017 09:26:56 +0800 Subject: [PATCH] MDL-56519 behat: Add gherkin lint to watch and startup --- Gruntfile.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index eae1f66b77c5d..4cb9e9ebbd943 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -170,6 +170,10 @@ module.exports = function(grunt) { files: ['**/yui/src/**/*.js'], tasks: ['yui'] }, + gherkinlint: { + files: ['**/tests/behat/*.feature'], + tasks: ['gherkinlint'] + } }, shifter: { options: { @@ -349,6 +353,7 @@ module.exports = function(grunt) { // Run them all!. grunt.task.run('css'); grunt.task.run('js'); + grunt.task.run('gherkinlint'); } }; @@ -363,6 +368,7 @@ module.exports = function(grunt) { grunt.config('uglify.amd.files', [{expand: true, src: files, rename: uglifyRename}]); grunt.config('shifter.options.paths', files); grunt.config('stylelint.less.src', files); + grunt.config('gherkinlint.options.files', files); changedFiles = Object.create(null); }, 200);