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) {
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);
});
......
......@@ -182,14 +182,18 @@
"../cell/Local/api.js"
]
},
"mobile_banners": [
"mobile_banners": {
"min": [
"../../web-apps/vendor/xregexp/xregexp-all-min.js",
"../../web-apps/vendor/underscore/underscore-min.js",
"../cell/native/common.js",
"../common/Native/Wrappers/memory.js",
"../common/Native/jquery_native.js",
"../cell/native/DrawingContext.js"
"../common/Native/jquery_native.js"
],
"common": [
"../cell/native/DrawingContext.js"
]
},
"mobile": [
"../common/Native/Wrappers/TextMeasurerWrapper.js",
"../common/Native/Wrappers/DrawingStream.js",
......
......@@ -172,11 +172,14 @@
"../slide/Local/api.js"
]
},
"mobile_banners": [
"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",
......
......@@ -172,7 +172,10 @@
"../word/Local/api.js"
]
},
"mobile_banners": [],
"mobile_banners": {
"min": [],
"common": []
},
"exclude_mobile": [],
"dst": "../word",
"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