Automated migration tool for converting Ember CLI projects to the new module unification layout.
Automated migration for new Ember application layout.
A codemod-cli project for converting Ember objects to es6 native classes
A codemod-cli project for converting Ember objects to es6 native classes
ember-qunit-codemod is a code transformation tool that automates the migration of Ember.js test files from the deprecated `moduleFor*` syntax to the modern `setupTest` syntax introduced by ember-qunit. This helps developers keep their test suites up-to-date with Ember's evolving testing APIs, reducing manual refactoring effort and ensuring compatibility with newer versions of the framework. ## Key Features * **Automated Syntax Conversion** — Transforms `moduleFor`, `moduleForComponent`, `moduleForModel`, and related syntax to the newer `setupTest` API. * **Integration with Other Codemods** — Can be used alongside ember-test-helpers-codemod for a comprehensive test migration. * **Command-Line Interface** — Provides easy-to-use CLI commands via npx or yarn for running transformations on specific files or glob patterns. * **Extensible Transform Architecture** — Built with a modular transform system, allowing for focused updates and contributions. ## Philosophy The project emphasizes automation and developer productivity by reducing the manual, error-prone work of updating test syntax, enabling teams to adopt modern Ember testing patterns with minimal disruption.
This codemod automates the migration of Ember.js codebases from using the `get` and `getProperties` helper functions to native ES5 getter dot notation, as proposed by RFC #281. It helps developers adopt modern JavaScript patterns while maintaining code functionality. ## Key Features - **`foo.get('bar')` → `foo.bar`** — Transforms method calls on `this`, `controller`, and `route` objects. - **`Ember.get(foo, 'bar')` → `foo.bar`** — Converts `Ember.get` or `get` imports when `this` is the first argument. - **Destructuring with `getProperties()`** — Replaces `getProperties` calls in destructuring assignments for simple property access. - **Selective Transformation** — Only applies changes where safe, preserving complex or nested path accesses. ## Philosophy The codemod follows Ember's official RFC to promote cleaner, more idiomatic JavaScript by reducing reliance on framework-specific accessor functions.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.