[deploy] added deployment for 'reporter' mode

This commit is contained in:
Maxim Kadushkin 2017-08-11 16:00:10 +03:00
parent c57bf7e6be
commit 6658c78f40
2 changed files with 31 additions and 1 deletions

View file

@ -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,

View file

@ -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"
]