BuilderIO / BuilderIO/mitosis

Generate Angular module(s) or component list .ts file

Open
#601 1 comment 0 reactions 0 assignees View on GitHub
angular cli enhancement
Dominant language
TypeScript
Stars
14.4k
Forks
671
PR merge metrics
No merged PRs in 30d

Description

### Currently

Mitosis emits Angular components, but a consumer needs to know the exact set of components that will be emitted, and to hardcode a module to declare them.

### Feature Request

Emit a `.module.ts`, a `ts` file importing and listing the components, or both (for consumer flexibility).

### Workaround

E2E testing (PR in progress) generates such a component list `ts` file - a more robust version of this could be in Mitosis itself.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the Angular component emission path and the component-list TypeScript file described in the E2E testing workaround. Determine whether the generator should emit a .module.ts file, a component-list .ts file, or both, and verify that the generated output identifies the exact components for Angular consumers.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.