Skip to content

Comments

feat(create-app): add community templates registry and selection flow#642

Open
derrick-nuby wants to merge 1 commit intodhis2:masterfrom
derrick-nuby:feat/create-app-community-templates-yaml
Open

feat(create-app): add community templates registry and selection flow#642
derrick-nuby wants to merge 1 commit intodhis2:masterfrom
derrick-nuby:feat/create-app-community-templates-yaml

Conversation

@derrick-nuby
Copy link
Contributor

Summary

This PR adds community template support to @dhis2/create-app.
Users can now select configured community templates in interactive mode and use them with --template in non-interactive mode.

What Changed

  1. Added a community template registry file at packages/create-app/src/community-templates.yaml.
  2. Added registry parsing and validation in packages/create-app/src/utils/getCommunityTemplates.js.
  3. Added source classification in packages/create-app/src/utils/resolveTemplateSourceInput.js.
  4. Updated create flow:
    • interactive Community templates option
    • --template <community-source> support
    • direct Git template fallback for non-listed sources
  5. Kept built-in template resolution in index.js and external Git resolution in resolveExternalTemplateSource.
  6. Added tests for registry parsing and source resolution.
  7. Updated docs/commands/create-app.md.

Initial Community Templates

  1. Tailwind + React Router (derrick-nuby/dhis2-ts-tailwind-react-router) with source as unique identifier.

@derrick-nuby derrick-nuby force-pushed the feat/create-app-community-templates-yaml branch from 8e44a2d to 691630f Compare February 24, 2026 14:00
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant