Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
web-apps
Commits
e09e52be
Commit
e09e52be
authored
Feb 02, 2017
by
Maxim Kadushkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[mobile] debug deployment
parent
d325acee
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
5 deletions
+32
-5
build/Gruntfile.js
build/Gruntfile.js
+25
-4
build/package.json
build/package.json
+1
-1
build/spreadsheeteditor.json
build/spreadsheeteditor.json
+6
-0
No files found.
build/Gruntfile.js
View file @
e09e52be
...
...
@@ -247,7 +247,8 @@ module.exports = function(grunt) {
},
cssmin
:
{
styles
:
{
// options: {level: { 1: { roundingPrecision: 'all=3' }}}, // to round fw7 numbers in styles. need clean-css 4.0
target
:
{
files
:
{
"
<%= pkg.mobile.css.ios.dist %>
"
:
packageFile
[
'
mobile
'
][
'
css
'
][
'
ios
'
][
'
src
'
],
"
<%= pkg.mobile.css.material.dist %>
"
:
packageFile
[
'
mobile
'
][
'
css
'
][
'
material
'
][
'
src
'
]
...
...
@@ -293,6 +294,19 @@ module.exports = function(grunt) {
return
packageFile
.
version
;
}
}]
},
fixResourceUrl
:
{
src
:
[
'
<%= pkg.mobile.js.requirejs.options.out %>
'
,
'
<%= pkg.mobile.css.ios.dist %>
'
,
'
<%= pkg.mobile.css.material.dist %>
'
],
overwrite
:
true
,
replacements
:
[{
from
:
/
(?:\.{2}\/){4}
common
\/
mobile
\/
resources
\/
img/g
,
to
:
'
../img
'
},{
from
:
/
(?:\.{2}\/){2}
common
\/
mobile/g
,
to
:
'
../mobile
'
}]
}
}
});
...
...
@@ -367,9 +381,16 @@ module.exports = function(grunt) {
grunt
.
registerTask
(
'
deploy-jsrsasign
'
,
[
'
jsrsasign-init
'
,
'
clean
'
,
'
copy
'
]);
grunt
.
registerTask
(
'
deploy-requirejs
'
,
[
'
requirejs-init
'
,
'
clean
'
,
'
uglify
'
]);
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:deploy
'
,
'
cssmin:styles
'
,
'
copy:template-backup
'
,
'
htmlmin
'
,
'
requirejs
'
,
'
concat
'
,
'
copy:template-restore
'
,
'
clean:template-backup
'
,
'
copy:localization
'
,
'
copy:index-page
'
,
'
copy:images-app
'
,
'
replace:writeVersion
'
]);
grunt
.
registerTask
(
'
deploy-app-embed
'
,
[
'
embed-app-init
'
,
'
clean:prebuild
'
,
'
uglify
'
,
'
less
'
,
'
copy
'
,
'
clean:postbuild
'
]);
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:deploy
'
,
'
cssmin
'
,
'
copy:template-backup
'
,
'
htmlmin
'
,
'
requirejs
'
,
'
concat
'
,
'
copy:template-restore
'
,
'
clean:template-backup
'
,
'
copy:localization
'
,
'
copy:index-page
'
,
'
copy:images-app
'
,
'
replace:writeVersion
'
,
'
replace:fixResourceUrl
'
]);
grunt
.
registerTask
(
'
deploy-app-embed
'
,
[
'
embed-app-init
'
,
'
clean:prebuild
'
,
'
uglify
'
,
'
less
'
,
'
copy
'
,
'
clean:postbuild
'
]);
doRegisterInitializeAppTask
(
'
documenteditor
'
,
'
DocumentEditor
'
,
'
documenteditor.json
'
);
...
...
build/package.json
View file @
e09e52be
...
...
@@ -20,7 +20,7 @@
"grunt-contrib-uglify"
:
"^0.8.1"
,
"grunt-contrib-concat"
:
"^0.5.1"
,
"grunt-contrib-imagemin"
:
"^1.0.0"
,
"grunt-contrib-cssmin"
:
"^
0.12.2
"
,
"grunt-contrib-cssmin"
:
"^
1.0.0
"
,
"grunt-contrib-htmlmin"
:
"^2.0.0"
,
"vinyl-fs"
:
"2.2.1"
,
"less-plugin-clean-css"
:
"1.5.0"
...
...
build/spreadsheeteditor.json
View file @
e09e52be
...
...
@@ -396,6 +396,12 @@
{
"expand"
:
true
,
"cwd"
:
"../apps/spreadsheeteditor/mobile/resources/img/"
,
"src"
:
"**/*.png"
,
"dest"
:
"../deploy/web-apps/apps/spreadsheeteditor/mobile/resources/img/"
},
{
"expand"
:
true
,
"cwd"
:
"../apps/common/mobile/resources/img/"
,
"src"
:
"**"
,
"dest"
:
"../deploy/web-apps/apps/spreadsheeteditor/mobile/resources/img/"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment