Skip to content

Commit

Permalink
pass target through from deprecated server task
Browse files Browse the repository at this point in the history
  • Loading branch information
callumlocke committed Jan 21, 2014
1 parent 34d09a4 commit 7215266
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/templates/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,15 @@ module.exports = function (grunt) {
]);
});

grunt.registerTask('server', function () {
grunt.registerTask('server', function (target) {
grunt.log.warn('The `server` task has been deprecated. Use `grunt serve` to start a server.');
grunt.task.run(['serve']);

if (target) {
grunt.task.run(['serve:' + target]);
}
else {
grunt.task.run(['serve']);
}
});

grunt.registerTask('test', function(target) {
Expand Down

0 comments on commit 7215266

Please sign in to comment.