From 145bc80e787b37fa8a3fd80b17bde4496bfa32c0 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Fri, 11 Nov 2016 18:40:28 +0300 Subject: [PATCH] Grunt: remove tests from watch task. --- Gruntfile.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 025733b..fd3051f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -33,7 +33,7 @@ module.exports = function(grunt) { watch: { rebuild_all: { files: ['src/**/*', 'plugin.json'], - tasks: ['default'], + tasks: ['watchTask'], options: {spawn: false} }, }, @@ -135,4 +135,14 @@ module.exports = function(grunt) { 'babel', 'mochaTest' ]); + + grunt.registerTask('watchTask', [ + 'clean', + 'copy:src_to_dist', + 'copy:pluginDef', + 'jshint', + 'jscs', + 'sass', + 'babel:dist' + ]); };