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
May 12, 2016
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) {
...
@@ -20,16 +20,6 @@ module.exports = function(grunt) {
grunt
.
log
.
error
().
writeln
(
'
Could not load config file
'
.
red
);
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
(){
grunt
.
registerTask
(
'
build_webexcel_init
'
,
'
Initialize build WebExcel SDK.
'
,
function
(){
defaultConfig
=
path
+
'
/webexcel.json
'
;
defaultConfig
=
path
+
'
/webexcel.json
'
;
packageFile
=
require
(
defaultConfig
);
packageFile
=
require
(
defaultConfig
);
...
@@ -62,7 +52,6 @@ module.exports = function(grunt) {
...
@@ -62,7 +52,6 @@ module.exports = function(grunt) {
});
});
grunt
.
registerTask
(
'
build_webword
'
,
[
'
build_webword_init
'
,
'
build_sdk
'
]);
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_webexcel
'
,
[
'
build_webexcel_init
'
,
'
build_sdk
'
]);
grunt
.
registerTask
(
'
build_webpowerpoint
'
,
[
'
build_webpowerpoint_init
'
,
'
build_sdk
'
]);
grunt
.
registerTask
(
'
build_webpowerpoint
'
,
[
'
build_webpowerpoint_init
'
,
'
build_sdk
'
]);
...
@@ -79,7 +68,10 @@ module.exports = function(grunt) {
...
@@ -79,7 +68,10 @@ module.exports = function(grunt) {
};
};
if
(
grunt
.
option
(
'
mobile
'
))
{
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
)
{
srcFilesAll
=
srcFilesAll
.
filter
(
function
(
item
)
{
return
-
1
===
excludeFiles
.
indexOf
(
item
);
return
-
1
===
excludeFiles
.
indexOf
(
item
);
});
});
...
...
build/configs/webexcel.json
View file @
e41b0247
...
@@ -182,14 +182,18 @@
...
@@ -182,14 +182,18 @@
"../cell/Local/api.js"
"../cell/Local/api.js"
]
]
},
},
"mobile_banners"
:
[
"mobile_banners"
:
{
"../../web-apps/vendor/xregexp/xregexp-all-min.js"
,
"min"
:
[
"../../web-apps/vendor/underscore/underscore
-min.js"
,
"../../web-apps/vendor/xregexp/xregexp-all
-min.js"
,
"../cell/native/commo
n.js"
,
"../../web-apps/vendor/underscore/underscore-mi
n.js"
,
"../common/Native/Wrappers/memory
.js"
,
"../cell/native/common
.js"
,
"../common/Native/jquery_native
.js"
,
"../common/Native/Wrappers/memory
.js"
,
"../cell/native/DrawingContext
.js"
"../common/Native/jquery_native
.js"
],
],
"common"
:
[
"../cell/native/DrawingContext.js"
]
},
"mobile"
:
[
"mobile"
:
[
"../common/Native/Wrappers/TextMeasurerWrapper.js"
,
"../common/Native/Wrappers/TextMeasurerWrapper.js"
,
"../common/Native/Wrappers/DrawingStream.js"
,
"../common/Native/Wrappers/DrawingStream.js"
,
...
...
build/configs/webpowerpoint.json
View file @
e41b0247
...
@@ -172,11 +172,14 @@
...
@@ -172,11 +172,14 @@
"../slide/Local/api.js"
"../slide/Local/api.js"
]
]
},
},
"mobile_banners"
:
[
"mobile_banners"
:
{
"../common/Native/native.js"
,
"min"
:
[
"../common/Native/jquery_native.js"
,
"../common/Native/native.js"
,
"../../web-apps/vendor/xregexp/xregexp-all-min.js"
"../common/Native/jquery_native.js"
,
],
"../../web-apps/vendor/xregexp/xregexp-all-min.js"
],
"common"
:
[]
},
"mobile"
:
[
"mobile"
:
[
"../common/Native/Wrappers/memory.js"
,
"../common/Native/Wrappers/memory.js"
,
"../common/Native/Wrappers/TextMeasurerWrapper.js"
,
"../common/Native/Wrappers/TextMeasurerWrapper.js"
,
...
...
build/configs/webword.json
View file @
e41b0247
...
@@ -172,7 +172,10 @@
...
@@ -172,7 +172,10 @@
"../word/Local/api.js"
"../word/Local/api.js"
]
]
},
},
"mobile_banners"
:
[],
"mobile_banners"
:
{
"min"
:
[],
"common"
:
[]
},
"exclude_mobile"
:
[],
"exclude_mobile"
:
[],
"dst"
:
"../word"
,
"dst"
:
"../word"
,
"externs"
:
[
"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