[build] prepare help's files during deploy
This commit is contained in:
parent
3a448e02c4
commit
9ccb89fd15
|
@ -185,6 +185,20 @@ module.exports = function(grunt) {
|
||||||
from: /\{\{PRODUCT_VERSION\}\}/,
|
from: /\{\{PRODUCT_VERSION\}\}/,
|
||||||
to: packageFile.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',
|
grunt.registerTask('deploy-app-main', ['main-app-init', 'clean:prebuild', 'imagemin', 'less', 'requirejs', 'concat',
|
||||||
'copy', 'svgmin', 'inline', 'json-minify',
|
'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',
|
grunt.registerTask('deploy-app-mobile', ['mobile-app-init', 'clean:deploy', 'cssmin', 'copy:template-backup',
|
||||||
'htmlmin', 'requirejs', 'concat', 'copy:template-restore',
|
'htmlmin', 'requirejs', 'concat', 'copy:template-restore',
|
||||||
|
|
Loading…
Reference in a new issue