diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 23058cd..eb7d60d 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -1,6 +1,8 @@ module.exports = (grunt) -> + require('load-grunt-tasks') grunt, pattern: 'grunt-contrib-*' + grunt.initConfig jshint: @@ -17,7 +19,4 @@ module.exports = (grunt) -> options: specs: 'spec/*.js' - grunt.loadNpmTasks 'grunt-contrib-jshint' - grunt.loadNpmTasks 'grunt-contrib-jasmine' - grunt.registerTask 'default', ['jshint', 'jasmine'] diff --git a/package.json b/package.json index 61899d5..f5cb57b 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "devDependencies": { "grunt": "~0.4.1", "grunt-contrib-jshint": "~0.7.1", - "grunt-contrib-jasmine": "~0.5.2" + "grunt-contrib-jasmine": "~0.5.2", + "load-grunt-tasks": "~0.2.0" } }