Skip to content

Migrating to TypeScript

Omal Perera edited this page Jul 8, 2020 · 8 revisions

Welcome to the Migration guidelines

Link to Ts-migration tasklist - Ts-migration board

Contributing

Contributing steps- Contributing.md

following is the plan for the migration process

Step 1

Replacing propTypes with types and interface for Props

  • This should start by Variables -> utils
  • Each file can be treated as an independent component
  • Only the types shall be changed, but shouldn’t change any properties in components

Step 2

Replacing propTypes with types and interface for Props

  • This should start by Atoms
  • End of each migration of components should test the component
  • contributor shall take care of related unit test cases of the component

Step 3

  • This should start by molecules -> organisms
  • Each sub-components within molecules and organism should treat as a single item and would be nice If 1 contributor can work on 1 item
  • End of each migration of components should test the component

Step 4

  • Finalize the full product and running an integration testing.

How to contribute

  1. Get a folk of 99xt/first-born to your account.
  2. Visit the Ts-migration board & assign yourself to an unassigned issue which you are competent to contribute.
  3. Really appreciate, if you could create a sample react-native project and first use the particular component you are going to convert. this will make you a bit familiar with the component. [how to setup]
  4. Refer to the issue description and understand the scope first. If you have any question you can add a comment in the issue by mentioning the name of the reporter in order to clarify any doubts.
  5. Once you are done and tasted the component, you can create a pull request to 'Ts-dev' branch with the label 'Ts-migration'.