How dinbtechit/jetbrains-nestjs works
Jetbrains NestJS is an IntelliJ IDE plugin that exposes Nest CLI/Schematics generation from project context menus. The main workflow is selecting a Nest project location, choosing a generator and options in a dialog, storing that request, then invoking the installed @nestjs/cli. The repository also includes Nest project detection, custom Nest file icons, plugin settings, and startup notifications. Edges reflect shown calls or README claims; unsampled registrations and supporting subsystems are not wired speculatively.
Main entry points: NestControllerCLIAction.kt CLI actions · GenerateCLIDialog.kt Generator dialog · NestProject.kt Nest project detection and runner · NestConfigFileIconProvider.kt Nest file icons
Components 16
CLI generation
- CLI actions
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/actions/cli/NestControllerCLIAction.kt - Generator dialog
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/actions/cli/GenerateCLIDialog.kt - CLI option completion
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/actions/cli/CLIOptionsCompletionProvider.kt - Generator type renderer
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/actions/cli/GenerateTypeComboRenderer.kt - Generator request state
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/actions/cli/store/CLIState.kt - Generator path utility
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/actions/cli/util/NestGeneratorFileUtil.kt
Nest project context
- Nest project detection and runner
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/common/nestProject/NestProject.kt - Nest CLI package
IDE support
- Nest file icons
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/projectExplorer/NestConfigFileIconProvider.kt - Icon resources
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/NestIcons.kt - Plugin settings UI
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/settings/NestPluginConfigurable.kt - Persistent settings
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/settings/SettingsStore.kt
Plugin updates
- Startup notification
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/startup/MyStartupNotifyActivity.kt - Notification actions
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/actions/notification/StarGithubRepoAction.kt
Other components
- IDE user
- IDE notifications
Connections 18
- IDE user → CLI actions: opens generator
README.md - CLI actions → Nest project detection and runner: checks project context
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/actions/cli/NestControllerCLIAction.kt - CLI actions → Generator dialog: opens dialog
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/actions/cli/NestControllerCLIAction.kt - CLI actions → Generator request state: reads request
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/actions/cli/NestControllerCLIAction.kt - CLI actions → Nest project detection and runner: runs generator
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/actions/cli/NestControllerCLIAction.kt - Generator dialog → CLI option completion: provides completions
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/actions/cli/GenerateCLIDialog.kt - Generator dialog → Generator type renderer: renders types
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/actions/cli/GenerateCLIDialog.kt - Generator dialog → Generator path utility: computes target path
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/actions/cli/GenerateCLIDialog.kt - Generator dialog → Generator request state: dispatches request
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/actions/cli/GenerateCLIDialog.kt - Nest project detection and runner → Generator request state: updates options
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/common/nestProject/NestProject.kt - Nest project detection and runner → Nest CLI package: invokes generator
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/common/nestProject/NestProject.kt - Nest file icons → Icon resources: uses icons
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/projectExplorer/NestConfigFileIconProvider.kt - Nest file icons → Nest project detection and runner: checks Nest project
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/projectExplorer/NestConfigFileIconProvider.kt - Nest file icons → Persistent settings: reads preferences
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/projectExplorer/NestConfigFileIconProvider.kt - Plugin settings UI → Persistent settings: updates settings
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/settings/NestPluginConfigurable.kt - Startup notification → Persistent settings: checks version
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/startup/MyStartupNotifyActivity.kt - Startup notification → Notification actions: adds actions
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/startup/MyStartupNotifyActivity.kt - Startup notification → IDE notifications: shows notification
src/main/kotlin/com/github/dinbtechit/jetbrainsnestjs/startup/MyStartupNotifyActivity.kt