diff --git a/Gruntfile.js b/Gruntfile.js index 4470992674..3dba215814 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -41,6 +41,18 @@ module.exports = function(grunt) { 'ddescribe-iit': ['js/**/*.js'], 'merge-conflict': ['js/**/*.js'], + 'removelogging': { + dist: { + files: { + 'dist/js/ionic.js': 'dist/js/ionic.js', + 'dist/js/ionic-angular.js': 'dist/js/ionic-angular.js' + }, + options: { + methods: 'log assert count clear group groupEnd groupCollapsed trace debug dir dirxml profile profileEnd time timeEnd timeStamp table exception'.split(' ') + } + } + }, + jshint: { files: ['Gruntfile.js', 'js/**/*.js', 'test/**/*.js'], options: { @@ -157,7 +169,8 @@ module.exports = function(grunt) { 'copy', 'uglify', 'string-replace', - 'version' + 'version', + 'removelogging' ]); grunt.registerMultiTask('karma', 'Run karma', function() { diff --git a/package.json b/package.json index 9265174054..86bf0d5dcc 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,8 @@ "karma-phantomjs-launcher": "~0.1.2", "karma-sauce-launcher": "~0.2.0", "karma-script-launcher": "~0.1.0", - "load-grunt-tasks": "~0.3.0" + "load-grunt-tasks": "~0.3.0", + "grunt-remove-logging": "~0.2.0" }, "licenses": [ {