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

add option to exclude files

parent cb1be38f
......@@ -171,6 +171,12 @@ module.exports = function(grunt) {
if (grunt.option('desktop')) {
srcFiles.concat(packageFile['compile']['sdk']['desktop']);
}
if (grunt.option('exclude_mobile')) {
var excludeFiles = packageFile['compile']['sdk']['exclude_mobile']
srcFiles = srcFiles.filter(function(item) {
return -1 === excludeFiles.indexOf(item);
});
}
var cc = require('google-closure-compiler').compiler;
cc.prototype.spawnOptions = {env: {'JAVA_OPTS': '-Xms2048m'}};
......
......@@ -170,6 +170,7 @@
"../common/Local/common.js",
"../cell/Local/api.js"
],
"exclude_mobile": [],
"dst": "../cell/sdk-all.js",
"externs": [
"../common/Build/Externs.js",
......
......@@ -153,6 +153,7 @@
"../common/Local/common.js",
"../slide/Local/api.js"
],
"exclude_mobile": [],
"dst": "../slide/sdk-all.js",
"externs": [
"../common/Build/Externs.js",
......
......@@ -158,6 +158,8 @@
"../common/Local/common.js",
"../word/Local/api.js"
],
"exclude_mobile": [
],
"dst": "../word/sdk-all.js",
"externs": [
"../common/Build/Externs.js",
......
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