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) { ...@@ -171,6 +171,12 @@ module.exports = function(grunt) {
if (grunt.option('desktop')) { if (grunt.option('desktop')) {
srcFiles.concat(packageFile['compile']['sdk']['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; var cc = require('google-closure-compiler').compiler;
cc.prototype.spawnOptions = {env: {'JAVA_OPTS': '-Xms2048m'}}; cc.prototype.spawnOptions = {env: {'JAVA_OPTS': '-Xms2048m'}};
......
...@@ -162,14 +162,15 @@ ...@@ -162,14 +162,15 @@
"../common/apiBase.js", "../common/apiBase.js",
"../cell/api.js" "../cell/api.js"
], ],
"private": [ "private": [
"../common/Private/license.js", "../common/Private/license.js",
"../cell/Private/comments.js" "../cell/Private/comments.js"
], ],
"desktop": [ "desktop": [
"../common/Local/common.js", "../common/Local/common.js",
"../cell/Local/api.js" "../cell/Local/api.js"
], ],
"exclude_mobile": [],
"dst": "../cell/sdk-all.js", "dst": "../cell/sdk-all.js",
"externs": [ "externs": [
"../common/Build/Externs.js", "../common/Build/Externs.js",
......
...@@ -144,15 +144,16 @@ ...@@ -144,15 +144,16 @@
"../cell/model/CellInfo.js", "../cell/model/CellInfo.js",
"../common/AdvancedOptions.js" "../common/AdvancedOptions.js"
], ],
"private": [ "private": [
"../common/Private/license.js", "../common/Private/license.js",
"../slide/Private/comments.js", "../slide/Private/comments.js",
"../common/Private/Locks.js" "../common/Private/Locks.js"
], ],
"desktop": [ "desktop": [
"../common/Local/common.js", "../common/Local/common.js",
"../slide/Local/api.js" "../slide/Local/api.js"
], ],
"exclude_mobile": [],
"dst": "../slide/sdk-all.js", "dst": "../slide/sdk-all.js",
"externs": [ "externs": [
"../common/Build/Externs.js", "../common/Build/Externs.js",
......
...@@ -145,19 +145,21 @@ ...@@ -145,19 +145,21 @@
"../cell/model/CellInfo.js", "../cell/model/CellInfo.js",
"../common/AdvancedOptions.js" "../common/AdvancedOptions.js"
], ],
"private": [ "private": [
"../common/Private/license.js", "../common/Private/license.js",
"../common/Private/versionHistory.js", "../common/Private/versionHistory.js",
"../word/Private/comments.js", "../word/Private/comments.js",
"../word/Private/StyleManager.js", "../word/Private/StyleManager.js",
"../word/Private/MailMerge.js", "../word/Private/MailMerge.js",
"../word/Private/TrackRevisions.js", "../word/Private/TrackRevisions.js",
"../common/Private/Locks.js" "../common/Private/Locks.js"
], ],
"desktop": [ "desktop": [
"../common/Local/common.js", "../common/Local/common.js",
"../word/Local/api.js" "../word/Local/api.js"
], ],
"exclude_mobile": [
],
"dst": "../word/sdk-all.js", "dst": "../word/sdk-all.js",
"externs": [ "externs": [
"../common/Build/Externs.js", "../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