generator-jhipster-dotnetcore
Version:
[![NPM version][npm-image]][npm-url] [](https://jhipsternet.readthedocs.io/en/latest/?badge=latest) [![Generator Build Status][github-actions-generator-image]][gi
171 lines (148 loc) • 4.36 kB
JavaScript
import HerokuGenerator from 'generator-jhipster/generators/heroku';
import command from './command.mjs';
export default class extends HerokuGenerator {
constructor(args, opts, features) {
super(args, opts, {
...features,
checkBlueprint: true,
// Dropped it once migration is done.
jhipster7Migration: true,
});
}
get [HerokuGenerator.INITIALIZING]() {
return this.asInitializingTaskGroup({
...super.initializing,
async initializingTemplateTask() {
this.parseJHipsterArguments(command.arguments);
this.parseJHipsterOptions(command.options);
},
});
}
get [HerokuGenerator.PROMPTING]() {
return this.asPromptingTaskGroup({
...super.prompting,
async promptingTemplateTask() {},
});
}
get [HerokuGenerator.CONFIGURING]() {
return this.asConfiguringTaskGroup({
...super.configuring,
async configuringTemplateTask() {},
});
}
get [HerokuGenerator.COMPOSING]() {
return this.asComposingTaskGroup({
...super.composing,
async composingTemplateTask() {},
});
}
get [HerokuGenerator.LOADING]() {
return this.asLoadingTaskGroup({
...super.loading,
async loadingTemplateTask() {},
});
}
get [HerokuGenerator.PREPARING]() {
return this.asPreparingTaskGroup({
...super.preparing,
async preparingTemplateTask() {},
});
}
get [HerokuGenerator.CONFIGURING_EACH_ENTITY]() {
return this.asConfiguringEachEntityTaskGroup({
...super.configuringEachEntity,
async configuringEachEntityTemplateTask() {},
});
}
get [HerokuGenerator.LOADING_ENTITIES]() {
return this.asLoadingEntitiesTaskGroup({
...super.loadingEntities,
async loadingEntitiesTemplateTask() {},
});
}
get [HerokuGenerator.PREPARING_EACH_ENTITY]() {
return this.asPreparingEachEntityTaskGroup({
...super.preparingEachEntity,
async preparingEachEntityTemplateTask() {},
});
}
get [HerokuGenerator.PREPARING_EACH_ENTITY_FIELD]() {
return this.asPreparingEachEntityFieldTaskGroup({
...super.preparingEachEntityField,
async preparingEachEntityFieldTemplateTask() {},
});
}
get [HerokuGenerator.PREPARING_EACH_ENTITY_RELATIONSHIP]() {
return this.asPreparingEachEntityRelationshipTaskGroup({
...super.preparingEachEntityRelationship,
async preparingEachEntityRelationshipTemplateTask() {},
});
}
get [HerokuGenerator.POST_PREPARING_EACH_ENTITY]() {
return this.asPostPreparingEachEntityTaskGroup({
...super.postPreparingEachEntity,
async postPreparingEachEntityTemplateTask() {},
});
}
get [HerokuGenerator.DEFAULT]() {
return this.asDefaultTaskGroup({
...super.default,
async defaultTemplateTask() {},
});
}
get [HerokuGenerator.WRITING]() {
return this.asWritingTaskGroup({
...super.writing,
async writingTemplateTask({ application }) {
await this.writeFiles({
sections: {
files: [{ templates: ['template-file-heroku'] }],
},
context: application,
});
},
});
}
get [HerokuGenerator.WRITING_ENTITIES]() {
return this.asWritingEntitiesTaskGroup({
...super.writingEntities,
async writingEntitiesTemplateTask() {},
});
}
get [HerokuGenerator.POST_WRITING]() {
return this.asPostWritingTaskGroup({
...super.postWriting,
async postWritingTemplateTask() {},
});
}
get [HerokuGenerator.POST_WRITING_ENTITIES]() {
return this.asPostWritingEntitiesTaskGroup({
...super.postWritingEntities,
async postWritingEntitiesTemplateTask() {},
});
}
get [HerokuGenerator.LOADING_TRANSLATIONS]() {
return this.asLoadingTranslationsTaskGroup({
...super.loadingTranslations,
async loadingTranslationsTemplateTask() {},
});
}
get [HerokuGenerator.INSTALL]() {
return this.asInstallTaskGroup({
...super.install,
async installTemplateTask() {},
});
}
get [HerokuGenerator.POST_INSTALL]() {
return this.asPostInstallTaskGroup({
...super.postInstall,
async postInstallTemplateTask() {},
});
}
get [HerokuGenerator.END]() {
return this.asEndTaskGroup({
...super.end,
async endTemplateTask() {},
});
}
}