Commit e41b0247 authored by Alexander.Trofimov's avatar Alexander.Trofimov

add mobile_banners to build

parent 84c1aa29
...@@ -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);
}); });
......
...@@ -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/common.js", "../../web-apps/vendor/underscore/underscore-min.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",
......
...@@ -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",
......
...@@ -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": [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment