From b1058c452e6023d36ae057b190ff9975b0138511 Mon Sep 17 00:00:00 2001 From: juliandescottes Date: Thu, 1 Sep 2016 15:37:28 +0200 Subject: [PATCH] Issue #533: Add grunt task aliases for backward compat --- Gruntfile.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index b255ca0..dc6683a 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -311,6 +311,7 @@ module.exports = function(grunt) { grunt.registerTask('unit-test', ['karma']); // Run linting, unit tests and drawing tests grunt.registerTask('test', ['lint', 'unit-test', 'build-dev', 'connect:test', 'casperjs']); + // Run the tests, even if the linting fails grunt.registerTask('test-nolint', ['unit-test', 'build-dev', 'connect:test', 'casperjs']); // Used by optional precommit hook @@ -328,9 +329,13 @@ module.exports = function(grunt) { // Start webserver and watch for changes grunt.registerTask('serve', ['build', 'connect:prod', 'open:prod', 'watch:prod']); // Start webserver on src folder, in debug mode - grunt.registerTask('serve-dev', ['build-dev', 'connect:dev', 'open:dev', 'watch:dev']); - grunt.registerTask('serve-debug', ['serve-dev']); - grunt.registerTask('play', ['serve-dev']); + grunt.registerTask('play', ['build-dev', 'connect:dev', 'open:dev', 'watch:dev']); + + // ALIASES, kept for backward compatibility + grunt.registerTask('serve-debug', ['play']); + grunt.registerTask('serve-dev', ['play']); + grunt.registerTask('test-travis', ['test']); + grunt.registerTask('test-local', ['test']); // Default task grunt.registerTask('default', ['lint', 'build']);