This event run before and after the creation of all modules in the context of this blueprint
//Read all the content of 'static' folder, replace placeholders, and add the files to the context
async beforeCreateModules(
context: blueprintTypes.DsgContext,
eventParams: blueprint.CreateModulesParams,
): Promise<blueprint.CreateBlueprintParams> {
context.logger.info("Generating Files for all modules...");
// do something here
return eventParams;
}
createModules
A map of all the Modules, with the list of Actions and DTOs for each module
//Read all the content of 'static' folder, replace placeholders, and add the files to the context
async beforeCreateModules(
context: blueprintTypes.DsgContext,
eventParams: blueprint.CreateModulesParams,
): Promise<blueprint.CreateBlueprintParams> {
context.logger.info("Generating Files for all modules...");
// do something here
return eventParams;
}
Was this page helpful?
//Read all the content of 'static' folder, replace placeholders, and add the files to the context
async beforeCreateModules(
context: blueprintTypes.DsgContext,
eventParams: blueprint.CreateModulesParams,
): Promise<blueprint.CreateBlueprintParams> {
context.logger.info("Generating Files for all modules...");
// do something here
return eventParams;
}
This event run before and after the creation of all modules in the context of this blueprint
//Read all the content of 'static' folder, replace placeholders, and add the files to the context
async beforeCreateModules(
context: blueprintTypes.DsgContext,
eventParams: blueprint.CreateModulesParams,
): Promise<blueprint.CreateBlueprintParams> {
context.logger.info("Generating Files for all modules...");
// do something here
return eventParams;
}
createModules
A map of all the Modules, with the list of Actions and DTOs for each module
//Read all the content of 'static' folder, replace placeholders, and add the files to the context
async beforeCreateModules(
context: blueprintTypes.DsgContext,
eventParams: blueprint.CreateModulesParams,
): Promise<blueprint.CreateBlueprintParams> {
context.logger.info("Generating Files for all modules...");
// do something here
return eventParams;
}
Was this page helpful?
//Read all the content of 'static' folder, replace placeholders, and add the files to the context
async beforeCreateModules(
context: blueprintTypes.DsgContext,
eventParams: blueprint.CreateModulesParams,
): Promise<blueprint.CreateBlueprintParams> {
context.logger.info("Generating Files for all modules...");
// do something here
return eventParams;
}