Skip to content

Commit

Permalink
some update
Browse files Browse the repository at this point in the history
  • Loading branch information
zyao89 committed Nov 15, 2019
1 parent 424a52a commit 5b68b16
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion plugins/commands/bootstrap/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,36 @@ Examples:
micro-app bootstrap
`.trim(),
}, args => {
return initMicro(api, args);
// return initMicro(api, args);

const targetGraph = args.forceLocal
? new PackageGraph(api.packageGraph.rawPackageList, 'allDependencies', 'forceLocal')
: api.packageGraph;

let chain = Promise.resolve();

chain = chain.then(() => {
if (this.options.scope) {
this.logger.notice('filter', 'including %j', this.options.scope);
}

if (this.options.ignore) {
this.logger.notice('filter', 'excluding %j', this.options.ignore);
}

if (this.options.since) {
this.logger.notice('filter', 'changed since %j', this.options.since);
}

if (this.options.includeFilteredDependents) {
this.logger.notice('filter', 'including filtered dependents');
}

if (this.options.includeFilteredDependencies) {
this.logger.notice('filter', 'including filtered dependencies');
}

return getFilteredPackages(this.targetGraph, this.execOpts, this.options);
});
});
};

0 comments on commit 5b68b16

Please sign in to comment.