UNPKG

generator-jhipster-entity-audit

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