Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
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
sdkjs
Commits
65023150
Commit
65023150
authored
May 12, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add mobile_banners to build
parent
d0dcec70
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
26 deletions
+28
-26
build/Gruntfile.js
build/Gruntfile.js
+5
-13
build/configs/webexcel.json
build/configs/webexcel.json
+11
-7
build/configs/webpowerpoint.json
build/configs/webpowerpoint.json
+8
-5
build/configs/webword.json
build/configs/webword.json
+4
-1
No files found.
build/Gruntfile.js
View file @
65023150
...
...
@@ -43,16 +43,6 @@ module.exports = function(grunt) {
else
grunt
.
log
.
error
().
writeln
(
'
Could not load config file
'
.
red
);
});
grunt
.
registerTask
(
'
build_nativeword_init
'
,
'
Initialize build NativeWord SDK.
'
,
function
(){
defaultConfig
=
path
+
'
/nativeword.json
'
;
packageFile
=
require
(
defaultConfig
);
if
(
packageFile
)
grunt
.
log
.
ok
(
'
nativeword config loaded successfully
'
.
green
);
else
grunt
.
log
.
error
().
writeln
(
'
Could not load config file
'
.
red
);
});
grunt
.
registerTask
(
'
build_webexcel_init
'
,
'
Initialize build WebExcel SDK.
'
,
function
(){
defaultConfig
=
path
+
'
/webexcel.json
'
;
...
...
@@ -86,7 +76,6 @@ module.exports = function(grunt) {
});
grunt
.
registerTask
(
'
build_webword
'
,
[
'
build_webword_init
'
,
'
build_sdk
'
]);
grunt
.
registerTask
(
'
build_nativeword
'
,
[
'
build_nativeword_init
'
,
'
build_sdk
'
]);
grunt
.
registerTask
(
'
build_webexcel
'
,
[
'
build_webexcel_init
'
,
'
build_sdk
'
]);
grunt
.
registerTask
(
'
build_webpowerpoint
'
,
[
'
build_webpowerpoint_init
'
,
'
build_sdk
'
]);
...
...
@@ -103,10 +92,13 @@ module.exports = function(grunt) {
};
if
(
grunt
.
option
(
'
mobile
'
))
{
var
excludeFiles
=
packageFile
[
'
compile
'
][
'
sdk
'
][
'
exclude_mobile
'
]
srcFilesMin
=
packageFile
[
'
compile
'
][
'
sdk
'
][
'
mobile_banners
'
][
'
min
'
].
concat
(
srcFilesMin
);
srcFilesAll
=
packageFile
[
'
compile
'
][
'
sdk
'
][
'
mobile_banners
'
][
'
common
'
].
concat
(
srcFilesAll
);
var
excludeFiles
=
packageFile
[
'
compile
'
][
'
sdk
'
][
'
exclude_mobile
'
];
srcFilesAll
=
srcFilesAll
.
filter
(
function
(
item
)
{
return
-
1
===
excludeFiles
.
indexOf
(
item
);
});
});
var
mobileFiles
=
packageFile
[
'
compile
'
][
'
sdk
'
][
'
mobile
'
];
if
(
mobileFiles
){
srcFilesAll
=
srcFilesAll
.
concat
(
mobileFiles
);
...
...
build/configs/webexcel.json
View file @
65023150
...
...
@@ -182,14 +182,18 @@
"../cell/Local/api.js"
]
},
"mobile_banners"
:
[
"../../web-apps/vendor/xregexp/xregexp-all-min.js"
,
"../../web-apps/vendor/underscore/underscore
-min.js"
,
"../cell/native/commo
n.js"
,
"../common/Native/Wrappers/memory
.js"
,
"../common/Native/jquery_native
.js"
,
"../cell/native/DrawingContext
.js"
"mobile_banners"
:
{
"min"
:
[
"../../web-apps/vendor/xregexp/xregexp-all
-min.js"
,
"../../web-apps/vendor/underscore/underscore-mi
n.js"
,
"../cell/native/common
.js"
,
"../common/Native/Wrappers/memory
.js"
,
"../common/Native/jquery_native
.js"
],
"common"
:
[
"../cell/native/DrawingContext.js"
]
},
"mobile"
:
[
"../common/Native/Wrappers/TextMeasurerWrapper.js"
,
"../common/Native/Wrappers/DrawingStream.js"
,
...
...
build/configs/webpowerpoint.json
View file @
65023150
...
...
@@ -172,11 +172,14 @@
"../slide/Local/api.js"
]
},
"mobile_banners"
:
[
"../common/Native/native.js"
,
"../common/Native/jquery_native.js"
,
"../../web-apps/vendor/xregexp/xregexp-all-min.js"
],
"mobile_banners"
:
{
"min"
:
[
"../common/Native/native.js"
,
"../common/Native/jquery_native.js"
,
"../../web-apps/vendor/xregexp/xregexp-all-min.js"
],
"common"
:
[]
},
"mobile"
:
[
"../common/Native/Wrappers/memory.js"
,
"../common/Native/Wrappers/TextMeasurerWrapper.js"
,
...
...
build/configs/webword.json
View file @
65023150
...
...
@@ -172,7 +172,10 @@
"../word/Local/api.js"
]
},
"mobile_banners"
:
[],
"mobile_banners"
:
{
"min"
:
[],
"common"
:
[]
},
"exclude_mobile"
:
[],
"dst"
:
"../word"
,
"externs"
:
[
...
...
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