From 11ad6be93c0288533d82228a17c3b333ce301c29 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Thu, 10 Nov 2016 16:03:40 +0300 Subject: [PATCH] [embed] refactoring of deployment --- build/Gruntfile.js | 10 +--------- build/documenteditor.json | 8 +------- build/presentationeditor.json | 8 +------- build/spreadsheeteditor.json | 8 +------- 4 files changed, 4 insertions(+), 30 deletions(-) diff --git a/build/Gruntfile.js b/build/Gruntfile.js index 0f936f903..845dacd53 100644 --- a/build/Gruntfile.js +++ b/build/Gruntfile.js @@ -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'); diff --git a/build/documenteditor.json b/build/documenteditor.json index 7f29d0d04..6cb86283b 100644 --- a/build/documenteditor.json +++ b/build/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": { diff --git a/build/presentationeditor.json b/build/presentationeditor.json index b7b64f12e..276e09733 100644 --- a/build/presentationeditor.json +++ b/build/presentationeditor.json @@ -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": { diff --git a/build/spreadsheeteditor.json b/build/spreadsheeteditor.json index f54beb657..9f91e88e9 100644 --- a/build/spreadsheeteditor.json +++ b/build/spreadsheeteditor.json @@ -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": {