generator-jhipster-entity-audit
Version:
JHipster module to enable entity audit and audit log page
22 lines (18 loc) • 719 B
JavaScript
import BaseApplicationGenerator from 'generator-jhipster/generators/base-application';
export default class extends BaseApplicationGenerator {
constructor(args, opts, features) {
super(args, opts, { ...features, queueCommandTasks: true, sbsBlueprint: true });
}
async beforeQueue() {
await this.dependsOnJHipster('bootstrap-application');
}
get [BaseApplicationGenerator.COMPOSING]() {
return this.asComposingTaskGroup({
async composeTask() {
if (this.blueprintConfig.auditPage && ['angularX', 'angular'].includes(this.jhipsterConfigWithDefaults.clientFramework)) {
await this.composeWithJHipster('jhipster-entity-audit:angular-audit');
}
},
});
}
}