Skip to content
Browse files

make requirejs task async

  • Loading branch information...
1 parent af4118b commit f88e8fb97ca84810eb433062533652d0779b7898 @tbranyen tbranyen committed Oct 24, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 tasks/requirejs.js
View
3 tasks/requirejs.js
@@ -21,6 +21,7 @@ module.exports = function(grunt) {
grunt.registerTask("requirejs", "Build a RequireJS project.", function(prop) {
var options = grunt.config("requirejs") || {};
+ var done = this.async();
// Merge passed options into defaults
options = _.extend({}, {
@@ -38,6 +39,8 @@ module.exports = function(grunt) {
grunt.helper("r.js", options, function(response) {
// Print out response
log.writeln(response);
+
+ done();
});
});

0 comments on commit f88e8fb

Please sign in to comment.
Something went wrong with that request. Please try again.