changed pluging to remove the comments

This commit is contained in:
Alexey.Golubev
2016-05-13 16:02:58 +03:00
committed by Alexander.Trofimov
parent 4a383fbbe0
commit 0ad338c6a8
2 changed files with 14 additions and 8 deletions

View File

@ -37,8 +37,14 @@ module.exports = function (grunt) {
dest: packageFile.build.dest
}
},
decomment: {
js: packageFile.postprocess
comments: {
js: {
options: {
singleline: true,
multiline: true
},
src: packageFile.postprocess.src
}
},
usebanner: {
copyright: {
@ -51,7 +57,7 @@ module.exports = function (grunt) {
' *\n' +
' * Version: ' + process.env['PRODUCT_VERSION'] + ' (build:' + process.env['BUILD_NUMBER'] + ')\n' +
' */\n',
linebreak: true
linebreak: false
},
files: {
src: packageFile.postprocess.src
@ -64,10 +70,10 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-mkdir');
grunt.loadNpmTasks('grunt-decomment');
grunt.loadNpmTasks('grunt-stripcomments');
grunt.loadNpmTasks('grunt-banner');
grunt.loadNpmTasks('grunt-check-dependencies');
grunt.registerTask('default', ['clean', 'mkdir', 'copy', 'usebanner', 'checkDependencies']);
grunt.registerTask('default', ['clean', 'mkdir', 'copy', 'comments', 'usebanner', 'checkDependencies']);
};