https://github.com/bertdeblock/generate-template-registry
Generate a template registry for Glint.
https://github.com/bertdeblock/generate-template-registry
Last synced: 12 months ago
JSON representation
Generate a template registry for Glint.
- Host: GitHub
- URL: https://github.com/bertdeblock/generate-template-registry
- Owner: bertdeblock
- License: mit
- Created: 2024-02-27T13:36:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-21T14:15:36.000Z (over 1 year ago)
- Last Synced: 2025-05-23T23:48:40.475Z (about 1 year ago)
- Language: TypeScript
- Size: 146 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# @bertdeblock/generate-template-registry
[](https://github.com/bertdeblock/generate-template-registry/actions?query=workflow%3ACI)
[](https://badge.fury.io/js/%40bertdeblock%2Fgenerate-template-registry)
Generate a [template registry](https://typed-ember.gitbook.io/glint/environments/ember/template-registry) for [Glint](https://github.com/typed-ember/glint).
## Usage
```shell
cd your/app-or-addon/path
```
and
```shell
npx @bertdeblock/generate-template-registry@latest
```
or
```shell
pnpx @bertdeblock/generate-template-registry@latest
```
or
```shell
bunx @bertdeblock/generate-template-registry@latest
```
## Options
### `--path`
Generate a template registry at a custom path.
```shell
npx @bertdeblock/generate-template-registry@latest --path="app/glint/template-registry.ts"
```
### `--include-curly-component-invocations`
Generate a template registry including curly component invocations. By default, curly component invocations are not included.
```shell
npx @bertdeblock/generate-template-registry@latest --include-curly-component-invocations
```
## Caveats
- If your app or addon has components, helpers or modifiers with the same name, duplicate template registry entries will be generated, which will need to be fixed manually