mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(build): add removelogging task
This commit is contained in:
15
Gruntfile.js
15
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() {
|
||||
|
||||
@@ -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": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user