UNPKG

generator-nest-js-boilerplate

Version:

This generator will help you to build your own Nest.js Mongodb API using TypeScript 4

51 lines (43 loc) 1.12 kB
/** * Step 8 * Called last, cleanup, say good bye, etc */ module.exports = function() { const { wantedMailer, wantedSocket, wantedAdminPanel, wantedCasl, wantedPrismaOrTypeOrmOrMongoose, } = this.options.answers; if (wantedMailer === 'Yes') { this.composeWith('nest-js-boilerplate:mailer', { answers: this.options.answers, }); } if (wantedSocket === 'Yes') { this.composeWith('nest-js-boilerplate:socket', { answers: this.options.answers, }); } if (wantedAdminPanel === 'Yes') { this.composeWith('nest-js-boilerplate:admin', { answers: this.options.answers, }); } if (wantedCasl === 'Yes') { this.composeWith('nest-js-boilerplate:casl', { answers: this.options.answers, }) } if (wantedPrismaOrTypeOrmOrMongoose === 'Prisma') { this.composeWith('nest-js-boilerplate:prisma', { answers: this.options.answers, }) } if (wantedPrismaOrTypeOrmOrMongoose === 'Prisma' && wantedCasl === 'Yes') { this.composeWith('nest-js-boilerplate:prisma-casl', { answers: this.options.answers, }) } };