Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

Commit

Permalink
Fix makeRelease.js
Browse files Browse the repository at this point in the history
  • Loading branch information
elisee committed Jun 19, 2015
1 parent 66d6c9c commit 00dede3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/makeRelease.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,20 @@ catch (error) { console.log("Could not create superpowers-" + packageInfo.versio

function shouldDistribute(file) {
file = file.substring(sourceRootPath.length + 1).replace(/\\/g, "/");
if (file[0] === ".") return false;
if (_.endsWith(file, "gulpfile.coffee")) return false;
if (file[0] === "." || file.indexOf("/.") !== -1) return false;
if (_.endsWith(file, "gulpfile.js") || _.endsWith(file, "tsconfig.json")) return false;
if (_.endsWith(file, "launcher.cmd")) return false;
if (_.endsWith(file, ".orig")) return false;
if (_.endsWith(file, ".jade")) return false;
if (_.endsWith(file, ".styl")) return false;
if (_.endsWith(file, ".ts") && file.indexOf("/typings/") === -1 && file.indexOf("/node_modules/") === -1) return false;
if (_.startsWith(file, "client")) return false;
if (_.startsWith(file, "scripts")) return false;
if (_.startsWith(file, "projects")) return false;
if (_.startsWith(file, "node_modules/browserify")) return false;
if (_.startsWith(file, "node_modules/coffeeify")) return false;
if (_.startsWith(file, "node_modules/brfs")) return false;
if (_.startsWith(file, "node_modules/vinyl-source-stream")) return false;
if (_.startsWith(file, "node_modules/watchify")) return false;
if (_.startsWith(file, "node_modules/gulp")) return false;
if (_.startsWith(file, "node_modules/.bin")) return false;
if (_.startsWith(file, "launcher/src")) return false;
if (_.startsWith(file, "bin")) return false;
if (_.startsWith(file, "builds") || _.startsWith(file, "projects")) return false;
Expand Down

0 comments on commit 00dede3

Please sign in to comment.