Code Monkey home page Code Monkey logo

ember-3x-codemods's Introduction

ember-3x-codemods

Build Status Coverage Status npm version dependencies Status devDependencies Status

A jscodeshift Codemod with a collection of transforms to address the list of deprecations introduced to Ember during the 3.x cycle

Usage

To run a specific codemod from this project, you can:

Easily run the codemod on your project using the Intuita VS Code extension:

Open in Intuita

To learn more about using the extension, read the docs here. If you encounter any issues, please let us know.

Alternatively, you can run the codemod with jscodeshift CLI:

npx ember-3x-codemods <TRANSFORM NAME> path/of/files/ or/some**/*glob.js

# or

yarn global add ember-3x-codemods
ember-3x-codemods <TRANSFORM NAME> path/of/files/ or/some**/*glob.js

Transforms

Deprecations & Transforms

Introduced in id Transform
3.1 use-notifypropertychange... notify-property-change
3.3 jquery-event jquery-event
3.3 jquery-event ember-jquery-legacy
3.6 ember-polyfills.deprecate-merge deprecate-merge
3.6 deprecate-router-events deprecate-router-events
3.6 array.new-array-wrapper new-array-wrapper
3.6 array.new-array-wrapper array-wrapper
3.6 object.new-constructor object-new-constructor
3.9 computed-property.property cp-property
3.9 computed-property.volatile cp-volatile
3.9 computed-property.property cp-property-map
3.9 jquery-apis jquery-apis
3.10 application-controller.router-properties app-controller-router-props
3.11 function-prototype-extensions.observes fpe-observes
3.11 function-prototype-extensions.on fpe-on
3.11 function-prototype-extensions.property fpe-computed

For more details, please visit the main Ember 3.x deprecations page

Contributing

Installation

  • clone the repo
  • change into the repo directory
  • yarn

Running tests

  • yarn test

Update Documentation

  • yarn update-docs

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.