Build test editors

This commit is contained in:
Julia Radzhabova
2022-11-19 00:14:45 +03:00
parent a9f285b50e
commit fb52589aba
8 changed files with 221 additions and 19 deletions

View File

@ -745,7 +745,10 @@ module.exports = function(grunt) {
doRegisterInitializeAppTask('documenteditor', 'DocumentEditor', 'documenteditor.json');
doRegisterInitializeAppTask('spreadsheeteditor', 'SpreadsheetEditor', 'spreadsheeteditor.json');
doRegisterInitializeAppTask('presentationeditor', 'PresentationEditor', 'presentationeditor.json');
doRegisterInitializeAppTask('testeditor', 'TestEditor', 'testeditor.json');
doRegisterInitializeAppTask('testdocumenteditor', 'TestDocumentEditor', 'testdocumenteditor.json');
doRegisterInitializeAppTask('testpresentationeditor', 'TestPresentationEditor', 'testpresentationeditor.json');
doRegisterInitializeAppTask('testspreadsheeteditor', 'TestSpreadsheetEditor', 'testspreadsheeteditor.json');
grunt.registerTask('deploy-app', 'Deploy application.', function(){
if (packageFile) {
@ -769,7 +772,9 @@ module.exports = function(grunt) {
grunt.registerTask('deploy-spreadsheeteditor', ['deploy-common-component', 'deploy-spreadsheeteditor-component']);
grunt.registerTask('deploy-presentationeditor', ['deploy-common-component', 'deploy-presentationeditor-component']);
grunt.registerTask('deploy-testeditor', ['init-build-testeditor', 'deploy-app']);
grunt.registerTask('deploy-testdocumenteditor', ['init-build-testdocumenteditor', 'deploy-app']);
grunt.registerTask('deploy-testpresentationeditor', ['init-build-testpresentationeditor', 'deploy-app']);
grunt.registerTask('deploy-testspreadsheeteditor', ['init-build-testspreadsheeteditor', 'deploy-app']);
grunt.registerTask('default', ['deploy-common-component',
'deploy-documenteditor-component',

View File

@ -1,7 +1,7 @@
{
"name": "testeditor",
"name": "testdocumenteditor",
"version": "4.3.0",
"build": 1152,
"build": 1153,
"homepage": "http://www.onlyoffice.com",
"private": true,
"test": {

View File

@ -0,0 +1,41 @@
{
"name": "testpresentationeditor",
"version": "4.3.0",
"build": 1153,
"homepage": "http://www.onlyoffice.com",
"private": true,
"test": {
"clean": {
"prebuild": [
"../deploy/web-apps/test/presentationeditor/main"
]
},
"js": {
"src": [
"../test/common/Gateway.js",
"../test/common/main/lib/util/utils.js",
"../test/presentationeditor/main/js/ApplicationView.js",
"../test/presentationeditor/main/js/ApplicationController.js",
"../test/presentationeditor/main/js/application.js"
],
"dist": "../deploy/web-apps/test/presentationeditor/main/app-all.js"
},
"less": {
"files": {
"src": "../test/presentationeditor/main/resources/less/application.less",
"dist": "../deploy/web-apps/test/presentationeditor/main/resources/css/app-all.css"
}
},
"copy": {
"index-page": {
"../deploy/web-apps/test/presentationeditor/main/index.html": "../test/presentationeditor/main/index.html.deploy"
}
}
},
"tasks": {
"deploy": [
"increment-build",
"deploy-app-test"
]
}
}

View File

@ -0,0 +1,43 @@
{
"name": "testspreadsheeteditor",
"version": "4.3.0",
"build": 1153,
"homepage": "http://www.onlyoffice.com",
"private": true,
"test": {
"clean": {
"prebuild": [
"../deploy/web-apps/test/spreadsheeteditor/main"
]
},
"js": {
"src": [
"../test/common/Gateway.js",
"../test/common/main/lib/util/utils.js",
"../test/spreadsheeteditor/main/js/CellEditorView.js",
"../test/spreadsheeteditor/main/js/CellEditorController.js",
"../test/spreadsheeteditor/main/js/ApplicationView.js",
"../test/spreadsheeteditor/main/js/ApplicationController.js",
"../test/spreadsheeteditor/main/js/application.js"
],
"dist": "../deploy/web-apps/test/spreadsheeteditor/main/app-all.js"
},
"less": {
"files": {
"src": "../test/spreadsheeteditor/main/resources/less/application.less",
"dist": "../deploy/web-apps/test/spreadsheeteditor/main/resources/css/app-all.css"
}
},
"copy": {
"index-page": {
"../deploy/web-apps/test/spreadsheeteditor/main/index.html": "../test/spreadsheeteditor/main/index.html.deploy"
}
}
},
"tasks": {
"deploy": [
"increment-build",
"deploy-app-test"
]
}
}