From 3a8becbe2153660a96869f646339a75b34ff8526 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Wed, 23 Nov 2016 15:32:44 +0000 Subject: [PATCH] change how grunt splits tasks up which fix broken migrate call --- Gruntfile.coffee | 4 ++-- {grunt => tasks}/CreateAndDestoryUsers.coffee | 0 {grunt => tasks}/ProjectSize.coffee | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename {grunt => tasks}/CreateAndDestoryUsers.coffee (100%) rename {grunt => tasks}/ProjectSize.coffee (100%) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index c2af03cf45..fc2c654427 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -22,6 +22,7 @@ module.exports = (grunt) -> grunt.loadNpmTasks "grunt-contrib-coffee" grunt.loadNpmTasks "grunt-shell" + grunt.task.loadTasks "./tasks" execute = {} for service in SERVICES @@ -112,7 +113,7 @@ module.exports = (grunt) -> grunt.registerTask "check:make", "Check that make is installed", () -> Helpers.checkMake @async() - grunt.registerTask 'migrate', "compile migrations and run them", ['coffee:migrate', 'shell:migrate'] + grunt.registerTask 'migrate', "compile migrations and run them", ["coffee:migrate", 'shell:migrate'] Helpers = @@ -242,5 +243,4 @@ module.exports = (grunt) -> rclient.on 'error', errorHandler - require('load-grunt-config')(grunt) diff --git a/grunt/CreateAndDestoryUsers.coffee b/tasks/CreateAndDestoryUsers.coffee similarity index 100% rename from grunt/CreateAndDestoryUsers.coffee rename to tasks/CreateAndDestoryUsers.coffee diff --git a/grunt/ProjectSize.coffee b/tasks/ProjectSize.coffee similarity index 100% rename from grunt/ProjectSize.coffee rename to tasks/ProjectSize.coffee