mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-02-10 18:05:32 +08:00
[VE] Fix build
This commit is contained in:
@ -839,6 +839,7 @@ module.exports = function(grunt) {
|
||||
doRegisterInitializeAppTask('spreadsheeteditor', 'SpreadsheetEditor', 'spreadsheeteditor.json');
|
||||
doRegisterInitializeAppTask('presentationeditor', 'PresentationEditor', 'presentationeditor.json');
|
||||
doRegisterInitializeAppTask('pdfeditor', 'PDFEditor', 'pdfeditor.json');
|
||||
doRegisterInitializeAppTask('visioeditor', 'VisioEditor', 'visioeditor.json');
|
||||
|
||||
doRegisterInitializeAppTask('testdocumenteditor', 'TestDocumentEditor', 'testdocumenteditor.json');
|
||||
doRegisterInitializeAppTask('testpresentationeditor', 'TestPresentationEditor', 'testpresentationeditor.json');
|
||||
@ -860,6 +861,7 @@ module.exports = function(grunt) {
|
||||
grunt.registerTask('deploy-spreadsheeteditor-component', ['init-build-spreadsheeteditor', 'deploy-app']);
|
||||
grunt.registerTask('deploy-presentationeditor-component', ['init-build-presentationeditor', 'deploy-app']);
|
||||
grunt.registerTask('deploy-pdfeditor-component', ['init-build-pdfeditor', 'deploy-app']);
|
||||
grunt.registerTask('deploy-visioeditor-component', ['init-build-visioeditor', 'deploy-app']);
|
||||
// This task is called from the Makefile, don't delete it.
|
||||
grunt.registerTask('deploy-documents-component', ['deploy-common-component']);
|
||||
|
||||
@ -867,6 +869,7 @@ 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-pdfeditor', ['deploy-common-component', 'deploy-pdfeditor-component']);
|
||||
grunt.registerTask('deploy-visioeditor', ['deploy-common-component', 'deploy-visioeditor-component']);
|
||||
|
||||
grunt.registerTask('deploy-testdocumenteditor', ['init-build-testdocumenteditor', 'deploy-app']);
|
||||
grunt.registerTask('deploy-testpresentationeditor', ['init-build-testpresentationeditor', 'deploy-app']);
|
||||
@ -876,5 +879,6 @@ module.exports = function(grunt) {
|
||||
'deploy-documenteditor-component',
|
||||
'deploy-spreadsheeteditor-component',
|
||||
'deploy-presentationeditor-component',
|
||||
'deploy-pdfeditor-component']);
|
||||
'deploy-pdfeditor-component',
|
||||
'deploy-visioeditor-component']);
|
||||
};
|
||||
|
||||
215
build/visioeditor.json
Normal file
215
build/visioeditor.json
Normal file
@ -0,0 +1,215 @@
|
||||
{
|
||||
"name": "visioeditor",
|
||||
"version": "4.3.0",
|
||||
"build": 791,
|
||||
"homepage": "http://www.onlyoffice.com",
|
||||
"private": true,
|
||||
"main": {
|
||||
"clean": {
|
||||
"prebuild": [
|
||||
"../deploy/web-apps/apps/visioeditor/main"
|
||||
],
|
||||
"postbuild": []
|
||||
},
|
||||
"js": {
|
||||
"requirejs": {
|
||||
"options": {
|
||||
"name": "../apps/visioeditor/main/app.js",
|
||||
"out": "../deploy/web-apps/apps/visioeditor/main/app.js",
|
||||
"baseUrl": "../apps/",
|
||||
"inlineText": true,
|
||||
"findNestedDependencies": true,
|
||||
"preserveLicenseComments": false,
|
||||
"optimizeAllPluginResources": true,
|
||||
"paths": {
|
||||
"jquery": "../vendor/jquery/jquery",
|
||||
"underscore": "../vendor/underscore/underscore",
|
||||
"backbone": "../vendor/backbone/backbone",
|
||||
"text": "../vendor/requirejs-text/text",
|
||||
"perfectscrollbar": "common/main/lib/mods/perfect-scrollbar",
|
||||
"jmousewheel": "../vendor/perfect-scrollbar/src/jquery.mousewheel",
|
||||
"xregexp": "empty:",
|
||||
"socketio": "empty:",
|
||||
"coapisettings": "empty:",
|
||||
"allfonts": "empty:",
|
||||
"sdk": "empty:",
|
||||
"api": "empty:",
|
||||
"core": "common/main/lib/core/application",
|
||||
"notification": "common/main/lib/core/NotificationCenter",
|
||||
"keymaster": "common/main/lib/core/keymaster",
|
||||
"tip": "common/main/lib/util/Tip",
|
||||
"analytics": "common/Analytics",
|
||||
"gateway": "common/Gateway",
|
||||
"locale": "common/locale",
|
||||
"irregularstack": "common/IrregularStack"
|
||||
},
|
||||
"shim": {
|
||||
"underscore": {
|
||||
"exports": "_"
|
||||
},
|
||||
"backbone": {
|
||||
"deps": [
|
||||
"underscore",
|
||||
"jquery"
|
||||
],
|
||||
"exports": "Backbone"
|
||||
},
|
||||
"perfectscrollbar": {
|
||||
"deps": [
|
||||
"jmousewheel"
|
||||
]
|
||||
},
|
||||
"notification": {
|
||||
"deps": [
|
||||
"backbone"
|
||||
]
|
||||
},
|
||||
"core": {
|
||||
"deps": [
|
||||
"backbone",
|
||||
"notification"
|
||||
]
|
||||
},
|
||||
"sdk": {
|
||||
"deps": [
|
||||
"jquery",
|
||||
"underscore",
|
||||
"coapisettings",
|
||||
"allfonts",
|
||||
"xregexp",
|
||||
"socketio"
|
||||
]
|
||||
},
|
||||
"gateway": {
|
||||
"deps": [
|
||||
"jquery"
|
||||
]
|
||||
},
|
||||
"analytics": {
|
||||
"deps": [
|
||||
"jquery"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"postload": {
|
||||
"options": {
|
||||
"baseUrl": "../apps/",
|
||||
"optimize": "none",
|
||||
"name": "../apps/visioeditor/main/app_pack.js",
|
||||
"out": "../deploy/web-apps/apps/visioeditor/main/code.js",
|
||||
"inlineText": true,
|
||||
"findNestedDependencies": false,
|
||||
"optimizeAllPluginResources": false,
|
||||
"paths": {
|
||||
"text": "../vendor/requirejs-text/text"
|
||||
}
|
||||
}
|
||||
},
|
||||
"babel": {
|
||||
"files": [
|
||||
{
|
||||
"expand": true,
|
||||
"cwd": "../deploy/web-apps/apps/visioeditor/main/",
|
||||
"src": "*.js",
|
||||
"dest": "../deploy/web-apps/apps/visioeditor/main/ie"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"less": {
|
||||
"files": {
|
||||
"src": "../apps/visioeditor/main/resources/less/app.less",
|
||||
"dest": "../deploy/web-apps/apps/visioeditor/main/resources/css/app.css"
|
||||
},
|
||||
"vars": {
|
||||
"app-image-const-path": "'../img'",
|
||||
"common-image-const-path": "'../../../../common/main/resources/img'",
|
||||
"app-image-path": "'../../../../../deploy/web-apps/apps/visioeditor/main/resources/img'",
|
||||
"common-image-path": "'../../../../../deploy/web-apps/apps/visioeditor/main/resources/img'"
|
||||
}
|
||||
},
|
||||
"imagemin": {
|
||||
"images-app": [
|
||||
{
|
||||
"expand": true,
|
||||
"cwd": "../apps/visioeditor/main/resources/img/",
|
||||
"src": [
|
||||
"**/*.{png,jpg,gif,ico}",
|
||||
"!toolbar/*x/**/*"
|
||||
],
|
||||
"dest": "../deploy/web-apps/apps/visioeditor/main/resources/img/"
|
||||
}
|
||||
],
|
||||
"images-common": [
|
||||
{
|
||||
"expand": true,
|
||||
"cwd": "../apps/common/main/resources/img/",
|
||||
"src": [
|
||||
"**/*.{png,jpg,gif}",
|
||||
"!toolbar/*x/**/*"
|
||||
],
|
||||
"dest": "../deploy/web-apps/apps/visioeditor/main/resources/img/"
|
||||
}
|
||||
]
|
||||
},
|
||||
"jsonmin": {
|
||||
"files": "../deploy/web-apps/apps/visioeditor/main/**/*.json"
|
||||
},
|
||||
"copy": {
|
||||
"localization": [
|
||||
{
|
||||
"expand": true,
|
||||
"cwd": "../apps/visioeditor/main/locale/",
|
||||
"src": "*",
|
||||
"dest": "../deploy/web-apps/apps/visioeditor/main/locale/"
|
||||
}
|
||||
],
|
||||
"help": [
|
||||
{
|
||||
"expand": true,
|
||||
"cwd": "../apps/visioeditor/main/resources/help/",
|
||||
"src": [
|
||||
"**",
|
||||
"!*_/**",
|
||||
"!**/src/**"
|
||||
],
|
||||
"dest": "../deploy/web-apps/apps/visioeditor/main/resources/help/"
|
||||
}
|
||||
],
|
||||
"indexhtml": [
|
||||
{
|
||||
"expand": true,
|
||||
"cwd": "../apps/visioeditor/main",
|
||||
"src": [
|
||||
"*.html.deploy",
|
||||
"!*.reporter.html.deploy"
|
||||
],
|
||||
"ext": ".html",
|
||||
"dest": "../deploy/web-apps/apps/visioeditor/main/"
|
||||
}
|
||||
]
|
||||
},
|
||||
"svgicons": {
|
||||
"common": [
|
||||
{
|
||||
"expand": true,
|
||||
"cwd": "../apps/visioeditor/main/resources/img",
|
||||
"src": "**/*.svg",
|
||||
"dest": "../deploy/web-apps/apps/visioeditor/main/resources/img"
|
||||
}
|
||||
],
|
||||
"clean": [
|
||||
"../deploy/web-apps/apps/visioeditor/main/resources/img/**/*.svg",
|
||||
"!../deploy/web-apps/apps/visioeditor/main/resources/img/**/*_s.svg"
|
||||
]
|
||||
}
|
||||
},
|
||||
"tasks": {
|
||||
"deploy": [
|
||||
"increment-build",
|
||||
"deploy-app-main"
|
||||
]
|
||||
}
|
||||
}
|
||||
@ -17,7 +17,7 @@ def sortByAlphabet(inputStr):
|
||||
return inputStr.lower()
|
||||
|
||||
|
||||
app_names = ['documenteditor', 'presentationeditor', 'spreadsheeteditor', 'pdfeditor']
|
||||
app_names = ['documenteditor', 'presentationeditor', 'spreadsheeteditor', 'pdfeditor', 'visioeditor']
|
||||
app_types = ['embed', 'main', 'forms']
|
||||
prefix_apps = '../apps/'
|
||||
prefix_src = 'src/'
|
||||
|
||||
@ -70,7 +70,7 @@ def compareJsonInFolder(path):
|
||||
if os.path.exists(f'{path_to_compare}/en.json'):
|
||||
compareJsonInFolder(f'{path_to_compare}/en.json')
|
||||
else:
|
||||
for editor in ['documenteditor','spreadsheeteditor','presentationeditor','pdfeditor']:
|
||||
for editor in ['documenteditor','spreadsheeteditor','presentationeditor','pdfeditor','visioeditor']:
|
||||
path = f'{path_to_compare}/{editor}/main/locale/en.json'
|
||||
if os.path.exists(path):
|
||||
compareJsonInFolder(path)
|
||||
|
||||
Reference in New Issue
Block a user