Closed atsu85 closed 6 years ago
@atsu85 I think this one is mostly covered by WEB-13397, what do you think? I can add info there about Camel/Dash/Snake convention
@denofevil
I think this one is mostly covered by WEB-13397
It seems that it covers renaming TypeScript classes/files, such as
UserService.ts (containing export class UserService
) -> ClientService.ts (containing export class ClientService
)
and improving the suggestion with case conventions might do the trick for my previous examples as well:
my-login-form.ts (containing
export class MyLoginForm
) -> my-change-password.ts (export class MyChangePassword
). login.ts (containingexport class Login
) -> changePassword.ts (export class ChangePassword
)
but I Aurelia plugin should also need to take into account that html template files accompanying Aurelia viewModel files have the same file basename by default (unless using decorator that points to different html file, but this could be left out initially). So when renaming either login.ts or login.html to changePassword.ts or changePassword.html, then the other file should also be renamed (in addition to TypeScript class name). The same should work with renaming my-login-form.*
to my-change-password.*
... Some examples: my-login-form.ts (containing
export class MyLoginForm
) -> my-change-password.ts (export class MyChangePassword
).login.ts (containing
export class Login
) -> changePassword.ts (export class ChangePassword
)