generator-jhipster-entity-audit
Version:
JHipster module to enable entity audit and audit log page
21 lines (19 loc) • 487 B
JavaScript
import { asCommand } from 'generator-jhipster';
export default asCommand({
configs: {
auditPage: {
description: 'Generate client page',
cli: {
type: Boolean,
},
prompt: {
type: 'confirm',
message: 'Do you want to add an audit log page for entities?',
},
configure: gen => {
gen.blueprintConfig.auditPage = (gen.blueprintConfig.auditFramework ?? 'no') !== 'no';
},
scope: 'blueprint',
},
},
});