Get Started
Lifecycle & Coding Details
Developing a Plugin
Guides & Tutorials
AST Libraries
Blueprint Plugin Events
Node.js Plugin Events
- Create Server
- Create Server Docker Compose
- Create Server Docker Compose Dev
- Create Server Dot Env
- Create Server Auth
- Create Package Json
- Create Entity Service
- Create Entity Service Base
- Create Entity Controller
- Create Entity Controller Base
- Create Entity Resolver
- Create Entity Resolver Base
- Create Message Broker Service
- Create Message Broker Service Base
- Create Message Broker NestJS Module
- Create Message Broker Client Options Factory
- Create Message Broker Topics Enum
- Create Prisma Schema
.NET Plugin Events
- Create Server
- Create Server Appsettings
- Create Server Auth
- Create Program File
- Create Server Csproj
- Create Server Docker Compose
- Create Server Git Ignore
- Create Entity Model
- Create Resource Db Context File
- Create Message Broker
- Create Message Broker Client Options Factory
- Create Message Broker Service
- Create Entity Controller
- Create Entity Controller Base
- Create DTOs
- Create Entity Extensions
- Create Entity Interface
- Create Entity Service
- Create Entity Service Base
- Create Seed Development Data File
- Load Static Files
Blueprint Plugin Events
Create Modules
This event run before and after the creation of all modules in the context of this blueprint
Copy
//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;
}
Event Name
createModules
Event Parameters
A map of all the Modules, with the list of Actions and DTOs for each module
Was this page helpful?
Copy
//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;
}