UNPKG

generator-jhipster-entity-audit

Version:
22 lines (18 loc) 719 B
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'); } }, }); } }