Git Product home page Git Product logo

Comments (5)

ssutar avatar ssutar commented on May 24, 2024

What are the errors? Ideally it should skip the file because the codmods do not handle ember-data https://github.com/ember-codemods/ember-es6-class-codemod#unsupported-types

from ember-native-class-codemod.

pzuraq avatar pzuraq commented on May 24, 2024

Right, the codemod should handle Ember Data since we have decorators for model attributes and relationships.

from ember-native-class-codemod.

ssutar avatar ssutar commented on May 24, 2024

Yes, but I think thats the decision we took before starting. I think a new codemod ember-data should be created under ember-es6-class-codemod to handle the model attributes and relationships

from ember-native-class-codemod.

pzuraq avatar pzuraq commented on May 24, 2024

I think #72 may help give some context here, we can now wrap all non-standard macros so we can transform classes we previously could not. In the future, this won't even be necessary - once emberjs/ember.js#17548 lands and decorators are supported in Ember itself, all current computed property macros will be decorators, so we can remove any wrapComputed calls.

In the meantime though, it is probably not ideal to have ember-data macros be wrapped each time, so I think we should add them to the transform.

from ember-native-class-codemod.

maxwondercorn avatar maxwondercorn commented on May 24, 2024

I see that Models are being converted in the current version but the attr transforms and options are removed from the decorators.

Never mind, I was using ember-es6-class-codemod. This works correctly in ember-native-class-codemod.

I think It is confusing when there are two different codemods that do effectively the same thing. One should be marked as deprecated.

Thanks for the great work on this

from ember-native-class-codemod.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.