Skip to content

Commit

Permalink
Merge pull request #263 from nullivex/master
Browse files Browse the repository at this point in the history
Fix building script to work with latest version.
  • Loading branch information
marcelklehr committed Nov 20, 2023
2 parents 0ae171f + c21e51d commit f392264
Show file tree
Hide file tree
Showing 2 changed files with 1,166 additions and 2 deletions.
14 changes: 14 additions & 0 deletions build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ var installManifest = [];
var uninstallManifest = [];
var uninstallFolders = [];

//build file filter
var buildFileFilter = [
/testing-bundledeps/
];

//lets get started by doing some bootstrapping
console.log('Welcome to the Nodist Builder');
console.log(' before going further we need to prep our staging folder');
Expand Down Expand Up @@ -307,6 +312,15 @@ P.all([
var folder = path.dirname(file);
var relativeFolder = folder.replace(stagingDir,'');
var relativeFile = file.replace(stagingDir,'');
// check for a filter entry
var isFiltered = false;
buildFileFilter.forEach(function(filter) {
if (file.match(filter)) isFiltered = true;
});
if (isFiltered) {
console.log('Skipping because of filter ' + file);
return false;
}
//change the folder and add it
if(!currentFolder || folder !== currentFolder){
currentFolder = folder;
Expand Down
Loading

0 comments on commit f392264

Please sign in to comment.