[deploy] copy common resources

This commit is contained in:
Maxim Kadushkin 2021-07-26 22:38:34 +03:00
parent fe1228e9ae
commit b174f5bbbe
5 changed files with 16 additions and 18 deletions

View file

@ -240,6 +240,7 @@ module.exports = function(grunt) {
} }
} }
}); });
doRegisterTask('apps-common');
doRegisterTask('sockjs'); doRegisterTask('sockjs');
doRegisterTask('xregexp'); doRegisterTask('xregexp');
doRegisterTask('megapixel'); doRegisterTask('megapixel');
@ -604,6 +605,7 @@ module.exports = function(grunt) {
var copyTask = grunt.option('desktop')? "copy": "copy:script"; var copyTask = grunt.option('desktop')? "copy": "copy:script";
grunt.registerTask('deploy-api', ['api-init', 'clean', copyTask, 'replace:writeVersion']); grunt.registerTask('deploy-api', ['api-init', 'clean', copyTask, 'replace:writeVersion']);
grunt.registerTask('deploy-apps-common', ['apps-common-init', 'clean', 'copy']);
grunt.registerTask('deploy-sdk', ['sdk-init', 'clean', copyTask]); grunt.registerTask('deploy-sdk', ['sdk-init', 'clean', copyTask]);
grunt.registerTask('deploy-sockjs', ['sockjs-init', 'clean', 'copy']); grunt.registerTask('deploy-sockjs', ['sockjs-init', 'clean', 'copy']);

View file

@ -79,6 +79,19 @@
} }
} }
}, },
"apps-common": {
"clean": [
"../deploy/web-apps/apps/common"
],
"copy": {
"alphabetletters": {
"expand": true,
"cwd": "../apps/common/main/resources/alphabetletters",
"src": "*.json",
"dest": "../deploy/web-apps/apps/common/main/resources/alphabetletters"
}
}
},
"bootstrap": { "bootstrap": {
"clean": [ "clean": [
"../deploy/web-apps/vendor/bootstrap" "../deploy/web-apps/vendor/bootstrap"
@ -231,6 +244,7 @@
"deploy": [ "deploy": [
"increment-build", "increment-build",
"deploy-api", "deploy-api",
"deploy-apps-common",
"deploy-sdk", "deploy-sdk",
"deploy-sockjs", "deploy-sockjs",
"deploy-xregexp", "deploy-xregexp",

View file

@ -157,12 +157,6 @@
"src": "*", "src": "*",
"dest": "../deploy/web-apps/apps/documenteditor/main/resources/watermark" "dest": "../deploy/web-apps/apps/documenteditor/main/resources/watermark"
}, },
{
"expand": true,
"cwd": "../apps/common/main/resources/alphabetletters",
"src": "*.json",
"dest": "../deploy/web-apps/apps/documenteditor/main/resources/alphabetletters"
},
{ {
"expand": true, "expand": true,
"cwd": "../apps/common/main/resources/symboltable", "cwd": "../apps/common/main/resources/symboltable",

View file

@ -151,12 +151,6 @@
"src": "*", "src": "*",
"dest": "../deploy/web-apps/apps/presentationeditor/main/locale/" "dest": "../deploy/web-apps/apps/presentationeditor/main/locale/"
}, },
{
"expand": true,
"cwd": "../apps/common/main/resources/alphabetletters",
"src": "*.json",
"dest": "../deploy/web-apps/apps/presentationeditor/main/resources/alphabetletters"
},
{ {
"expand": true, "expand": true,
"cwd": "../apps/common/main/resources/symboltable", "cwd": "../apps/common/main/resources/symboltable",

View file

@ -165,12 +165,6 @@
"src": "*", "src": "*",
"dest": "../deploy/web-apps/apps/spreadsheeteditor/main/resources/formula-lang" "dest": "../deploy/web-apps/apps/spreadsheeteditor/main/resources/formula-lang"
}, },
{
"expand": true,
"cwd": "../apps/common/main/resources/alphabetletters",
"src": "*.json",
"dest": "../deploy/web-apps/apps/spreadsheeteditor/main/resources/alphabetletters"
},
{ {
"expand": true, "expand": true,
"cwd": "../apps/common/main/resources/symboltable", "cwd": "../apps/common/main/resources/symboltable",