From dc95e248c059f9d4fc84141e49095ba80a22d03e Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Wed, 4 Dec 2013 23:21:38 +0100 Subject: [PATCH] chore(grunt): adds load-grunt-tasks module kills some lines of code :) --- Gruntfile.js | 8 +------- package.json | 3 ++- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index a742dc253f..5429a2457f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -105,13 +105,7 @@ module.exports = function(grunt) { } }); - grunt.loadNpmTasks('grunt-contrib-uglify'); - grunt.loadNpmTasks('grunt-contrib-copy'); - grunt.loadNpmTasks('grunt-contrib-jshint'); - grunt.loadNpmTasks('grunt-contrib-watch'); - grunt.loadNpmTasks('grunt-contrib-concat'); - grunt.loadNpmTasks('grunt-contrib-sass'); - grunt.loadNpmTasks('grunt-contrib-cssmin'); + require('load-grunt-tasks')(grunt); grunt.registerTask('default', [ 'jshint', diff --git a/package.json b/package.json index 53c2adf75b..c061969047 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "grunt-contrib-jshint": "~0.6.4", "grunt-contrib-sass": "~0.5.0", "karma-jasmine": "~0.1.3", - "karma-chrome-launcher": "~0.1.0" + "karma-chrome-launcher": "~0.1.0", + "load-grunt-tasks": "~0.2.0" }, "scripts": { "test": "./node_modules/.bin/karma start ionic.conf.js --single-run --browsers Firefox"