diff --git a/build/Gruntfile.js b/build/Gruntfile.js index d10362add..3cdcd80ec 100644 --- a/build/Gruntfile.js +++ b/build/Gruntfile.js @@ -239,6 +239,26 @@ module.exports = function(grunt) { }); }); + grunt.registerTask('deploy-reporter', function(){ + grunt.initConfig({ + pkg: packageFile, + uglify: { + options: { + banner: copyright + }, + build: { + files: { + "<%= pkg.main.reporter.uglify.dest %>": packageFile.main.reporter.uglify.src + } + } + }, + copy: packageFile.main.reporter.copy + }); + + + grunt.task.run(['uglify', 'copy']); + }); + grunt.registerTask('mobile-app-init', function() { grunt.initConfig({ pkg: packageFile, diff --git a/build/presentationeditor.json b/build/presentationeditor.json index c8f72f99e..ed4289576 100644 --- a/build/presentationeditor.json +++ b/build/presentationeditor.json @@ -1,7 +1,7 @@ { "name": "presentationeditor", "version": "4.3.0", - "build": 776, + "build": 778, "homepage": "http://www.onlyoffice.com", "private": true, "main": { @@ -177,6 +177,15 @@ "clean": [ "../deploy/web-apps/apps/common" ] + }, + "reporter": { + "uglify": { + "src": "../apps/presentationeditor/main/app.reporter.js", + "dest": "../deploy/web-apps/apps/presentationeditor/main/app.reporter.js" + }, + "copy": { + "../deploy/web-apps/apps/presentationeditor/main/index.reporter.html": "../apps/presentationeditor/main/index.reporter.html.deploy" + } } }, "mobile": { @@ -392,6 +401,7 @@ "deploy": [ "increment-build", "deploy-app-main", + "deploy-reporter", "deploy-app-mobile", "deploy-app-embed" ]