Skip to content

feat(cli): warn on legacy init templates - #1546

Merged
ricardo-devis-agullo merged 1 commit into
masterfrom
feat/init-legacy-template-deprecation
Aug 9, 2026
Merged

feat(cli): warn on legacy init templates#1546
ricardo-devis-agullo merged 1 commit into
masterfrom
feat/init-legacy-template-deprecation

Conversation

@ricardo-devis-agullo

@ricardo-devis-agullo ricardo-devis-agullo commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

Implements the remaining template deprecation warning from #1529 and the V1 0.x roadmap.

  • Bare jade and handlebars selections in oc init now emit the shared one-time DeprecationWarning.
  • The warning points users to the modern ESM component runtime via oc-template-es6.
  • Legacy aliases still resolve to oc-template-jade / oc-template-handlebars and use the existing compiler scaffolds.
  • Explicit oc-template-jade and oc-template-handlebars selections remain silent and unchanged.
  • Removes the obsolete ad hoc logger message now that the central deprecation utility is used.

Test plan

  • npx mocha --timeout 20000 test/unit/cli-domain-local.js from packages/oc (8 passing)
  • npm run build -w oc (passes)
  • npm run build (11 successful)
  • npm test -w oc (995 passing)
  • npm run lint (11 successful)
  • npm test (22 successful, 995 oc tests passing)

Refs #1529

@ricardo-devis-agullo
ricardo-devis-agullo merged commit c207ea3 into master Aug 9, 2026
3 checks passed
@ricardo-devis-agullo
ricardo-devis-agullo deleted the feat/init-legacy-template-deprecation branch August 9, 2026 21:07
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