coffee-to-es2015-codemod icon indicating copy to clipboard operation
coffee-to-es2015-codemod copied to clipboard

What is the preferred order of transforms

Open lencioni opened this issue 8 years ago • 1 comments

I noticed a TODO in the readme: TODO: define preferred order of transforms. What do you see is the preferred order of the transforms?

lencioni avatar Feb 26 '16 18:02 lencioni

Hi there! Sorry for not getting back to you sooner, but we actually moved forward with the conversion this week, so I had a lot on my mind :)

This is the order we ran the transforms in on our own codebase:

  1. implicit-var-declarator
  2. backbone-classes
  3. default-params
  4. fat-arrow
  5. index-of
  6. object-literal
  7. JSX (https://github.com/reactjs/react-codemod/blob/master/transforms/create-element-to-jsx.js)

If you are interested in running these transforms yourself please let me know. There's a lot of documentation missing, and I guess that it would be easier for you if would know a bit more about the codebase that you're thinking of converting (as you might see we didn't run all transforms on our own codebase yet, because some turned out to be problematic).

RSO avatar Mar 02 '16 09:03 RSO