MDL-56519 behat: Add gherkin lint to watch and startup

This commit is contained in:
Rajesh Taneja 2017-01-03 09:26:56 +08:00
parent 57bee542ab
commit d44f7e4623
No known key found for this signature in database
GPG Key ID: B363F7FB787F80E4

View File

@ -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);