Parity with Octane's glimmer component generation options
See original GitHub issueAs an Ember application developer, I want parity between the ember generate component
classic vs. octane/glimmer options when using “vanilla ember” or ember-cli-typescript
so that I do not have to mentally keep track of two separate APIs for the same thing.
For example, I would like to be able to run ember g component
with --component-class
/-gc
/-cc
, --component-structure
when using ember-cli-typescript
just like I can when not using it.
Default
$ ember generate component --help
Requested ember-cli commands:
ember generate <blueprint> <options...>
Generates new code from blueprints.
aliases: g
--dry-run (Boolean) (Default: false)
aliases: -d
--verbose (Boolean) (Default: false)
aliases: -v
--pod (Boolean) (Default: false)
aliases: -p, -pods
--classic (Boolean) (Default: false)
aliases: -c
--dummy (Boolean) (Default: false)
aliases: -dum, -id
--in-repo-addon (String) (Default: null)
aliases: --in-repo <value>, -ir <value>
--in (String) (Default: null) Runs a blueprint against an in repo addon. A path is expected, relative to the root of the project.
component <name> <options...>
Generates a component.
--path (String) (Default: components)
aliases: --no-path (--path="")
--component-class (@ember/component, @glimmer/component, @ember/component/template-only, "") (Default: --no-component-class)
aliases: -cc (--component-class=@ember/component), -gc (--component-class=@glimmer/component), -tc (--component-class=@ember/component/template-only), -nc (--component-class=""), --no-component-class (--component-class=""), --with-component-class (--component-class=@glimmer/component)
--component-structure (flat, nested, classic) (Default: flat)
aliases: -fs (--component-structure=flat), -ns (--component-structure=nested), -cs (--component-structure=classic)
With ember-cli-typescript
$ ember generate component --help
Requested ember-cli commands:
ember generate <blueprint> <options...>
Generates new code from blueprints.
aliases: g
--dry-run (Boolean) (Default: false)
aliases: -d
--verbose (Boolean) (Default: false)
aliases: -v
--pod (Boolean) (Default: false)
aliases: -p, -pods
--classic (Boolean) (Default: false)
aliases: -c
--dummy (Boolean) (Default: false)
aliases: -dum, -id
--in-repo-addon (String) (Default: null)
aliases: --in-repo <value>, -ir <value>
--in (String) (Default: null) Runs a blueprint against an in repo addon. A path is expected, relative to the root of the project.
component <name> <options...>
Generates a component.
--path (String) (Default: components)
aliases: --no-path (--path="")
$ ember -v
ember-cli: 3.15.1
node: 12.14.0
os: linux x64
$ grep typescript package.json
"ember-cli-typescript": "^3.1.2",
"ember-cli-typescript-blueprints": "^3.0.0",
"typescript": "^3.7.4"
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Glimmer Components - Octane Upgrade Guide - Ember Guides
For this section, we'll be focusing on the differences between the new style, known as Glimmer components, and classic components, and how to...
Read more >Ember.js Octane vs Classic Cheat Sheet
In Octane, ember generate component skips creating the JavaScript file. If you want the backing JavaScript class as well, include the -gc option....
Read more >ember-cli | Yarn - Package Manager
... Adds @glimmer/component@1.0.0 as a development dependency for both apps and ... option to ember generate and ember destroy to allow blueprint generation...
Read more >Untitled - Snap!
... ,modern,father,option,safe,led,bill,career,parts,developed,force,solution ... ,religious,drink,dinner,assistance,views,listen,host,louis,generation,foot ...
Read more >The 250 Best Songs of the 1990s | Pitchfork
Every part of the song does its job: The circuitous intro signals the ... and “Semi-Charmed Life” was big-tent solipsism for a generation...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thank you, @MichalBryxi! For anyone following this thread: you should expect to see an Ember RFC tackling this problem in a very general way (not specific to TS, but solving the problem for us as well!) in the next few weeks—maybe by Thanksgiving, or maybe shortly after. 🤞🏼
That’s correct! And yeah, we haven’t had time to get around to updating these yet (though it’s on my radar, and I may start chipping away at it as soon as late this week).