Commit Graph

4 Commits

Author SHA1 Message Date
Кирилл Осипков 4ac6b061a8 feat: rename to @erp/plugin-sdk, publish via Gitea Packages 2026-05-27 12:50:40 +03:00
Kyryll O 788acab14e feat(cli): generate plugins with dual DB mode (self/provide)
- manifest.json includes "database": "self" field
- main.ts reads manifest and conditionally calls CoreService.setupDatabase()
- TypeORM with PLUGIN_DB_* -> POSTGRES_* fallback for both modes
- Example Item entity, controller, service with CRUD
- @nestjs/typeorm, typeorm, pg added to generated package.json
- Dynamic import for AppModule to support provide mode
2026-05-26 23:44:55 +03:00
Kyryll O d5484b074b Update rabbitmq topic config and CLI template 2026-05-26 00:05:35 +03:00
Kyryll O 519ecb23b2 feat: add create-erp-plugin CLI
A CLI that scaffolds an empty plugin in the current directory.
Usage: create-erp-plugin <plugin-name> [--port <port>]
2026-05-24 00:01:31 +03:00