-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
better helper checking #12
Comments
list of known helpers: https://github.com/lifeart/ember-ast-hot-load/blob/master/lib/ast-transform.js#L26 |
also, possible to get all project's components, using https://github.com/lifeart/ember-component-info (based on https://github.com/lifeart/ember-meta-explorer) |
Hmm, this isn't true. Components haven't needed a |
@rwjblue yes, but, it will cover 90% cases. Single-word components, after 3.8, with curly invocation - seems rare case |
This heuristic leads to the wrong conclusion for many helpers that I am currently using, many of which are in the I'm not sure if this would make things easier or harder to implement, but my preference would for the codemod to:
|
I'm experimenting with allowing a list of helpers to be provided here: https://github.com/rajasegar/ember-angle-brackets-codemod/pull/28 |
https://github.com/rajasegar/ember-angle-brackets-codemod/pull/28 adds inital support for providing an optional config file. This currently supports providing a list of helpers in the following form: {
"helpers": [
"ic-interface-icon",
"date-formatter"
]
} |
@lifeart's ember-ast-hot-load should help get a list of helpers from a running app |
Thanks a lot @GavinJoyce for the help, much appreciated 🙏 |
Can we close this issue or are we still missing something? |
@rajasegar I'd suggest we close it as we have the |
Thanks @patocallaghan |
https://github.com/rajasegar/ember-angle-brackets-codemod/blob/52a6b8ba9d4038aa55b95ff288052e9834a7ae77/transforms/angle-brackets/transforms/angle-brackets-syntax.js#L146
1.) we can suggest - all items without
-
- helpers2.) items, having
-
in name and not having@
,.
in name - components3.) items, having
/
in name - componentsThe text was updated successfully, but these errors were encountered: