Skip to content

[REFACTOR]: typescript and glint #313

@c0rydoras

Description

@c0rydoras

What to refactor

Everything possible should be typescript

Why refactor it

Type Safety + Better DX

How to refactor it

As of right now it makes more sense to work on other things and/or to start by rewriting the addons used e.g. ember-uikit in typescript / writing proper types for that or to use something like frontile instead of ember-uikit.

  1. Setup typescript
  2. Setup glint
  3. Add Signatures to gjs components and rename to gts
  4. Move utils and
  5. Move hbs components to gts
  6. Move templates to gts using https://github.com/discourse/ember-route-template
  7. Type Checking in CI
"scripts": {
   "lint:types": "glint",
}

Do this in multiple Pull Requests and not one large one

Required

  • I have checked past issues to ensure that this isn't a duplicate.

Metadata

Metadata

Assignees

Labels

frontendThis issue or pull request is frontend relatedrefactorThis issue or pull request discusses refactoring

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions