Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
[CB-4734] Added list of files to keep in chrome/lib
Reviewed by Bryan Higgins <bhiggins@blackberry.com>
Tested by Tracy Li <tli@blackberry.com>
  • Loading branch information
Rowell Cruz authored and bryanhiggins committed Sep 5, 2013
1 parent 29ba97c commit 48a64755cff91d48acbe026d068672c9b6453184
Showing 1 changed file with 6 additions and 2 deletions.
@@ -27,7 +27,8 @@ var path = require("path"),
CLIENT_JS = "client.js",
SERVER_JS = "index.js",
VALID_EXTENSIONS = [".js", ".json"],
CORDOVA_JS_REGEX = /(cordova-.+js)|cordova\.js/;
CORDOVA_JS_REGEX = /(cordova-.+js)|cordova\.js/,
MODULES_TO_KEEP = ["lib/utils.js", "lib/exception.js"];

function unzip(from, to) {
var data, entries, p, parent;
@@ -140,7 +141,10 @@ function generateFrameworkModulesJS(session) {
fs.readFileSync(module.file, "utf-8") + "\n" +
"});\n";
frameworkModulesStr += "'" + module.name + "'" + (index !== modulesList.length-1 ? ", " : "");
fs.unlinkSync(path.normalize(dest.CHROME + "/" + module.name));
// Issue with 10.1 webplatform - requires certain files in chrome/lib
if (MODULES_TO_KEEP.indexOf(module.name) < 0) {
fs.unlinkSync(path.normalize(dest.CHROME + "/" + module.name));
}
});

modulesStr += "}());";

0 comments on commit 48a6475

Please sign in to comment.