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'}};
......
......@@ -162,14 +162,15 @@
"../common/apiBase.js",
"../cell/api.js"
],
"private": [
"../common/Private/license.js",
"private": [
"../common/Private/license.js",
"../cell/Private/comments.js"
],
],
"desktop": [
"../common/Local/common.js",
"../cell/Local/api.js"
],
"exclude_mobile": [],
"dst": "../cell/sdk-all.js",
"externs": [
"../common/Build/Externs.js",
......
......@@ -144,15 +144,16 @@
"../cell/model/CellInfo.js",
"../common/AdvancedOptions.js"
],
"private": [
"../common/Private/license.js",
"private": [
"../common/Private/license.js",
"../slide/Private/comments.js",
"../common/Private/Locks.js"
],
"desktop": [
"../common/Local/common.js",
"../common/Private/Locks.js"
],
"desktop": [
"../common/Local/common.js",
"../slide/Local/api.js"
],
],
"exclude_mobile": [],
"dst": "../slide/sdk-all.js",
"externs": [
"../common/Build/Externs.js",
......
......@@ -145,19 +145,21 @@
"../cell/model/CellInfo.js",
"../common/AdvancedOptions.js"
],
"private": [
"private": [
"../common/Private/license.js",
"../common/Private/versionHistory.js",
"../word/Private/comments.js",
"../word/Private/StyleManager.js",
"../word/Private/MailMerge.js",
"../word/Private/TrackRevisions.js",
"../common/Private/Locks.js"
],
"../common/Private/Locks.js"
],
"desktop": [
"../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