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