Git Product home page Git Product logo

Comments (3)

ssutar avatar ssutar commented on May 23, 2024

Thanks @pzuraq !

@scalvert and I were discussing about this. We were thinking about making this configurable to make it easier to roll out on a large codebase.

Specifically we were thinking to have an ability transform only specific object like services or controllers. This way users can run the codemods in iterations. For example, services in the first pass. controllers in another.

Additionally we were thinking about having options to exclude/include certain objects - like target objects which does not have any decorators.

Would love to hear your thoughts!

from ember-native-class-codemod.

pzuraq avatar pzuraq commented on May 23, 2024

Hmm, I wonder if we should have it be scoped by identifier, or by file path. Would it make sense to want to convert half of a file?

For instance, if we ran the codemod on just Controller then only half of this example would be converted:

const UtilityClass = EmberObject.extend({
  // ...
});

export default Controller.extend({
  // ...uses utility class 
});

Would that be more desirable, or would it be better to convert the entire file at once and allow users to scope by saying --include '/app/controllers/**/*'

For decorators vs. not-decorators, completely agree. This would essentially be the difference between stage-3+ and stage-2+, and could probably be a command line option (with the default being stage-3+).

from ember-native-class-codemod.

ssutar avatar ssutar commented on May 23, 2024

#12

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.