From 9ccb89fd152278d6477016bb88c9981cb2f76f2f Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Wed, 15 May 2019 16:25:42 +0300 Subject: [PATCH] [build] prepare help's files during deploy --- build/Gruntfile.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/build/Gruntfile.js b/build/Gruntfile.js index f65b78b84..67233d460 100644 --- a/build/Gruntfile.js +++ b/build/Gruntfile.js @@ -185,6 +185,20 @@ module.exports = function(grunt) { from: /\{\{PRODUCT_VERSION\}\}/, to: packageFile.version }] + }, + prepareHelp: { + src: ['<%= pkg.main.copy.help[0].dest %>/ru/**/*.htm*'], + overwrite: true, + replacements: [{ + from: /\{\{COEDITING_DESKTOP\}\}/g, + to: 'Подключиться к облаку' + },{ + from: /\{\{PLUGIN_LINK\}\}/g, + to: 'https://api.onlyoffice.com/plugin/basic' + },{ + from: /\{\{PLUGIN_LINK_MACROS\}\}/g, + to: 'https://api.onlyoffice.com/plugin/macros' + }] } }, @@ -443,7 +457,7 @@ module.exports = function(grunt) { grunt.registerTask('deploy-app-main', ['main-app-init', 'clean:prebuild', 'imagemin', 'less', 'requirejs', 'concat', 'copy', 'svgmin', 'inline', 'json-minify', - 'replace:writeVersion', 'clean:postbuild']); + 'replace:writeVersion', 'replace:prepareHelp', 'clean:postbuild']); grunt.registerTask('deploy-app-mobile', ['mobile-app-init', 'clean:deploy', 'cssmin', 'copy:template-backup', 'htmlmin', 'requirejs', 'concat', 'copy:template-restore',