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
e41b0247
Commit
e41b0247
authored
8 years ago
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add mobile_banners to build
parent
84c1aa29
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
25 deletions
+27
-25
build/Gruntfile.js
build/Gruntfile.js
+4
-12
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 @
e41b0247
...
...
@@ -20,16 +20,6 @@ module.exports = function(grunt) {
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
'
;
packageFile
=
require
(
defaultConfig
);
...
...
@@ -62,7 +52,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
'
]);
...
...
@@ -79,7 +68,10 @@ 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
);
});
...
...
This diff is collapsed.
Click to expand it.
build/configs/webexcel.json
View file @
e41b0247
...
...
@@ -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"
,
...
...
This diff is collapsed.
Click to expand it.
build/configs/webpowerpoint.json
View file @
e41b0247
...
...
@@ -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"
,
...
...
This diff is collapsed.
Click to expand it.
build/configs/webword.json
View file @
e41b0247
...
...
@@ -172,7 +172,10 @@
"../word/Local/api.js"
]
},
"mobile_banners"
:
[],
"mobile_banners"
:
{
"min"
:
[],
"common"
:
[]
},
"exclude_mobile"
:
[],
"dst"
:
"../word"
,
"externs"
:
[
...
...
This diff is collapsed.
Click to expand it.
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