[embed] refactoring of deployment
This commit is contained in:
parent
be54167b60
commit
11ad6be93c
|
@ -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": {
|
||||
|
|
Loading…
Reference in a new issue