Commit 11ad6be9 authored by Maxim Kadushkin's avatar Maxim Kadushkin

[embed] refactoring of deployment

parent be54167b
......@@ -305,14 +305,6 @@ module.exports = function(grunt) {
}
},
replace: {
fixLessUrl: {
src: ['<%= pkg.embed.less.files.dist %>'],
overwrite: true,
replacements: packageFile['embed']['less']['replacements']
}
},
copy: {
'index-page': {
files: packageFile['embed']['copy']['index-page']
......@@ -349,7 +341,7 @@ module.exports = function(grunt) {
grunt.registerTask('deploy-app-main', ['main-app-init', 'clean', 'imagemin', 'less', 'requirejs', 'concat', 'copy', 'replace:writeVersion']);
grunt.registerTask('deploy-app-mobile', ['mobile-app-init', 'clean', 'uglify', 'cssmin:styles', 'copy']);
grunt.registerTask('deploy-app-embed', ['embed-app-init', 'clean:prebuild', 'uglify', 'less', 'replace:fixLessUrl', 'copy', 'clean:postbuild']);
grunt.registerTask('deploy-app-embed', ['embed-app-init', 'clean:prebuild', 'uglify', 'less', 'copy', 'clean:postbuild']);
doRegisterInitializeAppTask('documenteditor', 'DocumentEditor', 'documenteditor.json');
......
......@@ -327,13 +327,7 @@
"files": {
"src": "../apps/documenteditor/embed/resources/less/application.less",
"dist": "../deploy/web-apps/apps/documenteditor/embed/resources/css/app-all.css"
},
"replacements": [
{
"from": "../../../../common/embed/resources/img/",
"to": "../img/"
}
]
}
},
"copy": {
"index-page": {
......
......@@ -303,13 +303,7 @@
"files": {
"src": "../apps/presentationeditor/embed/resources/less/application.less",
"dist": "../deploy/web-apps/apps/presentationeditor/embed/resources/css/app-all.css"
},
"replacements": [
{
"from": "../../../../common/embed/resources/img/",
"to": "../img/"
}
]
}
},
"copy": {
"index-page": {
......
......@@ -333,13 +333,7 @@
"files": {
"src": "../apps/spreadsheeteditor/embed/resources/less/application.less",
"dist": "../deploy/web-apps/apps/spreadsheeteditor/embed/resources/css/app-all.css"
},
"replacements": [
{
"from": "../../../../common/embed/resources/img/",
"to": "../img/"
}
]
}
},
"copy": {
"index-page": {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment