Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ember-codemods/ember-3x-codemods
A Codemod with a collection of transforms to address Ember 3.x deprecations
https://github.com/ember-codemods/ember-3x-codemods
codemod codemods deprecations ember emberjs jscodeshift
Last synced: 23 days ago
JSON representation
A Codemod with a collection of transforms to address Ember 3.x deprecations
- Host: GitHub
- URL: https://github.com/ember-codemods/ember-3x-codemods
- Owner: ember-codemods
- Created: 2019-04-24T14:31:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-01T01:03:26.000Z (about 1 year ago)
- Last Synced: 2024-05-01T21:22:10.694Z (6 months ago)
- Topics: codemod, codemods, deprecations, ember, emberjs, jscodeshift
- Language: JavaScript
- Size: 588 KB
- Stars: 14
- Watchers: 3
- Forks: 8
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ember-3x-codemods
[![Build Status](https://travis-ci.org/ember-codemods/ember-3x-codemods.svg?branch=master)](https://travis-ci.org/ember-codemods/ember-3x-codemods)
[![Coverage Status](https://coveralls.io/repos/github/ember-codemods/ember-3x-codemods/badge.svg?branch=master)](https://coveralls.io/github/ember-codemods/ember-3x-codemods?branch=master)
[![npm version](http://img.shields.io/npm/v/ember-3x-codemods.svg?style=flat)](https://npmjs.org/package/ember-3x-codemods "View this project on npm")
[![dependencies Status](https://david-dm.org/ember-codemods/ember-3x-codemods/status.svg)](https://david-dm.org/ember-codemods/ember-3x-codemods)
[![devDependencies Status](https://david-dm.org/ember-codemods/ember-3x-codemods/dev-status.svg)](https://david-dm.org/ember-codemods/ember-3x-codemods?type=dev)A [jscodeshift](https://github.com/facebook/jscodeshift) Codemod with a collection of transforms to address the list of [deprecations](https://deprecations.emberjs.com/v3.x) introduced to Ember during the 3.x cycle
To run a specific codemod from this project, you would run the following:
```
npx ember-3x-codemods path/of/files/ or/some**/*glob.js# or
yarn global add ember-3x-codemods
ember-3x-codemods path/of/files/ or/some**/*glob.js
```## Transforms
### Deprecations & Transforms
| Introduced in | id | Transform |
| ------------- | -- | --------- |
| 3.1 | use-notifypropertychange... | [notify-property-change](https://github.com/ember-codemods/ember-3x-codemods/tree/master/transforms/notify-property-change) |
| 3.3 | jquery-event| [jquery-event](https://github.com/ember-codemods/ember-3x-codemods/tree/master/transforms/jquery-event) |
| 3.3 | jquery-event| [ember-jquery-legacy](https://github.com/ember-codemods/ember-3x-codemods/tree/master/transforms/ember-jquery-legacy) |
| 3.6 | ember-polyfills.deprecate-merge | [ deprecate-merge ](https://github.com/ember-codemods/ember-3x-codemods/tree/master/transforms/deprecate-merge) |
| 3.6 | deprecate-router-events| [ deprecate-router-events ](https://github.com/ember-codemods/ember-3x-codemods/tree/master/transforms/deprecate-router-events) |
| 3.6 | array.new-array-wrapper | [ new-array-wrapper ](https://github.com/ember-codemods/ember-3x-codemods/tree/master/transforms/new-array-wrapper) |
| 3.6 | array.new-array-wrapper | [ array-wrapper ](https://github.com/ember-codemods/ember-3x-codemods/tree/master/transforms/array-wrapper) |
| 3.6 | object.new-constructor | [ object-new-constructor ](https://github.com/ember-codemods/ember-3x-codemods/tree/master/transforms/object-new-constructor) |
| 3.9 | computed-property.property | [ cp-property ](https://github.com/ember-codemods/ember-3x-codemods/tree/master/transforms/cp-property) |
| 3.9 | computed-property.volatile | [ cp-volatile ](https://github.com/ember-codemods/ember-3x-codemods/tree/master/transforms/cp-volatile) |
| 3.9 | computed-property.property | [ cp-property-map ](https://github.com/ember-codemods/ember-3x-codemods/tree/master/transforms/cp-property-map) |
| 3.9 | jquery-apis| [ jquery-apis ](https://github.com/ember-codemods/ember-3x-codemods/tree/master/transforms/jquery-apis) |
| 3.10 | application-controller.router-properties| [ app-controller-router-props ](https://github.com/ember-codemods/ember-3x-codemods/tree/master/transforms/app-controller-router-props) |
| 3.11 | function-prototype-extensions.observes | [ fpe-observes ](https://github.com/ember-codemods/ember-3x-codemods/tree/master/transforms/fpe-observes) |
| 3.11 | function-prototype-extensions.on | [ fpe-on ](https://github.com/ember-codemods/ember-3x-codemods/tree/master/transforms/fpe-on) |
| 3.11 | function-prototype-extensions.property | [ fpe-computed ](https://github.com/ember-codemods/ember-3x-codemods/tree/master/transforms/fpe-computed) |For more details, please visit the main Ember 3.x [deprecations](https://deprecations.emberjs.com/v3.x) page
## Contributing
### Installation
* clone the repo
* change into the repo directory
* `yarn`### Running tests
* `yarn test`
### Update Documentation
* `yarn update-docs`