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
1cafb105
Commit
1cafb105
authored
Apr 22, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add mobile banners files to build
parent
15857f1c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
5 deletions
+19
-5
build/Gruntfile.js
build/Gruntfile.js
+14
-4
build/configs/webexcel.json
build/configs/webexcel.json
+1
-0
build/configs/webpowerpoint.json
build/configs/webpowerpoint.json
+3
-1
build/configs/webword.json
build/configs/webword.json
+1
-0
No files found.
build/Gruntfile.js
View file @
1cafb105
...
...
@@ -72,10 +72,12 @@ module.exports = function(grunt) {
grunt
.
file
.
mkdir
(
packageFile
[
'
compile
'
][
'
sdk
'
][
'
log
'
]
);
var
map_file_path
=
packageFile
[
'
compile
'
][
'
sdk
'
][
'
dst
'
]
+
'
.map
'
;
var
map_record_file_path
=
map_file_path
+
'
.tmp
'
;
var
tmp_sdk_path
=
packageFile
[
'
compile
'
][
'
sdk
'
][
'
dst
'
]
+
'
.tmp
'
;
var
concat_src
=
[
packageFile
[
'
compile
'
][
'
sdk
'
][
'
dst
'
],
packageFile
[
'
compile
'
][
'
defines
'
][
'
dst
'
],
map_record_file_path
];
var
concat_src_with_banner_file
=
[];
var
srcFiles
=
packageFile
[
'
compile
'
][
'
sdk
'
][
'
common
'
];
var
sdkOpt
=
{
compilation_level
:
compilation_level
,
...
...
@@ -103,6 +105,7 @@ module.exports = function(grunt) {
if
(
mobileFiles
){
srcFiles
=
mobileFiles
.
concat
(
srcFiles
);
}
concat_src_with_banner_file
=
concat_src_with_banner_file
.
concat
(
packageFile
[
'
compile
'
][
'
sdk
'
][
'
mobile_banners
'
]);
}
if
(
!
grunt
.
option
(
'
noprivate
'
))
{
...
...
@@ -111,7 +114,9 @@ module.exports = function(grunt) {
if
(
grunt
.
option
(
'
desktop
'
))
{
srcFiles
=
srcFiles
.
concat
(
packageFile
[
'
compile
'
][
'
sdk
'
][
'
desktop
'
]);
}
concat_src_with_banner_file
=
concat_src_with_banner_file
.
concat
(
tmp_sdk_path
)
grunt
.
initConfig
({
pkg
:
packageFile
,
'
closure-compiler
'
:
{
...
...
@@ -129,18 +134,23 @@ module.exports = function(grunt) {
}
},
concat
:
{
sdk
:
{
options
:
{
banner
:
'
(function(window, undefined) {
'
,
footer
:
'
})(window);
'
},
dist
:
{
src
:
concat_src
,
dest
:
tmp_sdk_path
},
bannerFile
:
{
src
:
concat_src_with_banner_file
,
dest
:
'
<%= pkg.compile.sdk.dst %>
'
}
},
clean
:
[
packageFile
[
'
compile
'
][
'
defines
'
][
'
dst
'
],
map_record_file_path
map_record_file_path
,
tmp_sdk_path
],
replace
:
{
version
:
{
...
...
@@ -161,5 +171,5 @@ module.exports = function(grunt) {
grunt
.
registerTask
(
'
compile_sdk
'
,
[
'
compile_sdk_init:
'
+
level
,
'
closure-compiler
'
,
'
concat
'
,
'
replace
'
,
'
clean
'
]);
grunt
.
registerTask
(
'
compile_sdk_native
'
,
[
'
compile_sdk_init:
'
+
level
,
'
closure-compiler:sdk
'
,
'
concat
'
,
'
replace
'
,
'
clean
'
]);
grunt
.
registerTask
(
'
default
'
,
[
'
build_
all
'
]);
grunt
.
registerTask
(
'
default
'
,
[
'
build_
webpowerpoint
'
]);
};
\ No newline at end of file
build/configs/webexcel.json
View file @
1cafb105
...
...
@@ -167,6 +167,7 @@
"../common/Local/common.js"
,
"../cell/Local/api.js"
],
"mobile_banners"
:
[],
"exclude_mobile"
:
[],
"dst"
:
"../cell/sdk-all.js"
,
"externs"
:
[
...
...
build/configs/webpowerpoint.json
View file @
1cafb105
...
...
@@ -150,6 +150,9 @@
"../common/Local/common.js"
,
"../slide/Local/api.js"
],
"mobile_banners"
:
[
"../slide/Native/native.js"
],
"mobile"
:
[
"../../web-apps/vendor/xregexp/xregexp-all-min.js"
,
"../common/browser.js"
,
...
...
@@ -158,7 +161,6 @@
"../common/Native/Wrappers/DrawingStream.js"
,
"../common/Native/Wrappers/ShapeDrawer.js"
,
"../common/Native/Wrappers/Overlay.js"
,
"../slide/Native/native.js"
,
"../slide/Native/Wrappers/api.js"
,
"../slide/Native/Wrappers/HtmlPage.js"
,
"../slide/Native/Wrappers/DrawingDocument.js"
...
...
build/configs/webword.json
View file @
1cafb105
...
...
@@ -154,6 +154,7 @@
"../common/Local/common.js"
,
"../word/Local/api.js"
],
"mobile_banners"
:
[],
"exclude_mobile"
:
[],
"dst"
:
"../word/sdk-all.js"
,
"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