Skip to content

Commit

Permalink
[FEATURE] builder: Add excludes option
Browse files Browse the repository at this point in the history
  • Loading branch information
romaniam committed May 21, 2019
1 parent 92b9265 commit ab4e652
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/builder/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,13 @@ module.exports = {
* @param {Array} [parameters.includedTasks=[]] List of tasks to be included
* @param {Array} [parameters.excludedTasks=[]] List of tasks to be excluded. If the wildcard '*' is provided, only the included tasks will be executed.
* @param {Array} [parameters.devExcludeProject=[]] List of projects to be excluded from development build
* @param {Array} [parameters.excludedPaths=[]] List of paths to be excluded from development build
* @returns {Promise} Promise resolving to <code>undefined</code> once build has finished
*/
async build({
tree, destPath,
buildDependencies = false, dev = false, selfContained = false, jsdoc = false,
includedTasks = [], excludedTasks = [], devExcludeProject = []
includedTasks = [], excludedTasks = [], devExcludeProject = [], excludedPaths = []
}) {
const startTime = process.hrtime();
log.info(`Building project ${tree.metadata.name}` + (buildDependencies ? "" : " not") +
Expand All @@ -226,7 +227,8 @@ module.exports = {

const fsTarget = resourceFactory.createAdapter({
fsBasePath: destPath,
virBasePath: "/"
virBasePath: "/",
excluded: excludedPaths
});

const buildContext = new BuildContext();
Expand Down

0 comments on commit ab4e652

Please sign in to comment.