[deploy] added deployment for 'reporter' mode
This commit is contained in:
parent
c57bf7e6be
commit
6658c78f40
|
@ -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.registerTask('mobile-app-init', function() {
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
pkg: packageFile,
|
pkg: packageFile,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "presentationeditor",
|
"name": "presentationeditor",
|
||||||
"version": "4.3.0",
|
"version": "4.3.0",
|
||||||
"build": 776,
|
"build": 778,
|
||||||
"homepage": "http://www.onlyoffice.com",
|
"homepage": "http://www.onlyoffice.com",
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": {
|
"main": {
|
||||||
|
@ -177,6 +177,15 @@
|
||||||
"clean": [
|
"clean": [
|
||||||
"../deploy/web-apps/apps/common"
|
"../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": {
|
"mobile": {
|
||||||
|
@ -392,6 +401,7 @@
|
||||||
"deploy": [
|
"deploy": [
|
||||||
"increment-build",
|
"increment-build",
|
||||||
"deploy-app-main",
|
"deploy-app-main",
|
||||||
|
"deploy-reporter",
|
||||||
"deploy-app-mobile",
|
"deploy-app-mobile",
|
||||||
"deploy-app-embed"
|
"deploy-app-embed"
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue