ember-modules-codemod icon indicating copy to clipboard operation
ember-modules-codemod copied to clipboard

Codemod to upgrade Ember apps to JavaScript (ES6) modules

Results 38 ember-modules-codemod issues
Sort by recently updated
recently updated
newest added

Bumps [tmp](https://github.com/raszi/node-tmp) from 0.1.0 to 0.2.1. Changelog Sourced from tmp's changelog. v0.2.1 (2020-04-28) :rocket: Enhancement #252 Closes #250: introduce tmpdir option for overriding the system tmp dir (@silkentrance) :house: Internal...

dependencies

DS.* should be transformed to the appropriate ember data modules

This codemod should transform all Ember globals to the new module form. However it logs Ember.Date in the Module Report as an unknown global, instead of transforming it.

Dynamic import docs: https://github.com/ef4/ember-auto-import#dynamic-import Produces the following error: ```shell ERR app\components\my-component.js Transformation error SyntaxError: 'import' and 'export' may only appear at the top level (15:4) at Parser.pp.raise (C:\Users\Benjamin\AppData\Roaming\npm\node_modules\ember-modules-codemod\node_modules\babel-core\node_modules\babylon\lib\parser\location.js:24:13) at Parser.pp.parseStatement...

The codemod rewrites: ```js import { createFromMirageModel } from 'direwolf/tests/helpers/create-from-mirage-model'; ``` as ```js import { createFromMirageModel } from 'direwolf/tests/helpers/creat } from-mirage-model'; ```

By default (e.g. no customized arguments) the codemod should process the following directories: * If in an addon (determined by `keywords` in `package.json`): * `addon`, `addon-test-support`, and `tests` * If...

The codemod inserts `import { htmlSafe } from '@ember/template'` but it should be from `@ember/string` There is a corresponding bug in the Ember API documentation where it still lists the...

This at the end: ``` (node:10972) [DEP0013] DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:10972) [DEP0013] DeprecationWarning: Calling an asynchronous function without callback is deprecated. ``` Windows 10...

Very minor, but the codemod turns ```js import { not, and, eq, or, array, instanceOf, conditional } from 'ember-awesome-macros'; ``` into ```js import { not, and, eq, or, array, instanceOf,...

The following import in tests: ```js import { durationFromNow } from '../../../helpers/duration-from-now'; ``` was translated to ```js import { durationFromNow } from '../../../helpers/duratio } from-now'; ``` Not a big deal...