{"id":18581567,"url":"https://github.com/ember-codemods/ember-module-migrator","last_synced_at":"2026-01-12T05:48:15.583Z","repository":{"id":57224062,"uuid":"56717041","full_name":"ember-codemods/ember-module-migrator","owner":"ember-codemods","description":"Automated migration for new Ember application layout.","archived":false,"fork":false,"pushed_at":"2019-12-30T09:16:41.000Z","size":379,"stargazers_count":74,"open_issues_count":26,"forks_count":14,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-12-11T14:35:35.274Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ember-codemods.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-20T19:57:56.000Z","updated_at":"2024-09-02T16:19:27.000Z","dependencies_parsed_at":"2022-09-04T07:01:06.797Z","dependency_job_id":null,"html_url":"https://github.com/ember-codemods/ember-module-migrator","commit_stats":null,"previous_names":["rwjblue/ember-module-migrator"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/ember-codemods/ember-module-migrator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ember-codemods%2Fember-module-migrator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ember-codemods%2Fember-module-migrator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ember-codemods%2Fember-module-migrator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ember-codemods%2Fember-module-migrator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ember-codemods","download_url":"https://codeload.github.com/ember-codemods/ember-module-migrator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ember-codemods%2Fember-module-migrator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28335278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"online","status_checked_at":"2026-01-12T02:00:08.677Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T00:06:09.178Z","updated_at":"2026-01-12T05:48:15.567Z","avatar_url":"https://github.com/ember-codemods.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ember-module-migrator\n\nMigrates ember-cli projects to the newly proposed module format.\n\nThis migrator does not leave an application in a bootable state. See \"Usage\"\nfor instructions on how to manually update a migrated app to a bootable\nsetup.\n\nSee [emberjs/rfcs#143](https://github.com/emberjs/rfcs/pull/143) for details\non the design of this app layout.\n\n### Examples\n\nThese are examples of the migrator output on various apps:\n\n* [Ghost admin client](https://github.com/rwjblue/--ghost-modules-sample/tree/grouped-collections/src)\n* [Travis client](https://github.com/rwjblue/--travis-modules-sample/tree/modules/src)\n* [Migration of `ember new my-app`](https://github.com/rwjblue/--new-app-blueprint/tree/modules/src)\n\n### Usage\n\nTo run the migrator on your app:\n\n```sh\nnpm install -g ember-module-migrator jscodeshift\ncd your/project/path\nember-module-migrator\n```\n\nAfter running the migrator itself, you will need to update several files\nto boot an application in order to boot it.\n\n### Booting a migrated app\n\nThe best path forward is to run the\n[ember-octane-blueprint](https://github.com/ember-cli/ember-octane-blueprint)\non the converted app:\n\n```sh\n# This command will run the blueprint, but it requires Ember-CLI 2.14.\n#\n# You may want to manually update the following packages before running the\n# `ember init` command:\n#\n#   npm i ember-resolver@^4.3.0 ember-cli@github:ember-cli/ember-cli --save-dev\n#   npm uninstall ember-source --save\n#   bower install --save components/ember#canary\n#\n# If you are already running 2.14, you can jump right to the command:\nember init -b ember-octane-app-blueprint\n```\nAdditionally any component names not in a template are not recognized by the\nmigrator. For example if you have a computed property that returns the\nstring `\"widget/some-thing\"` using that string with the `{{component` helper\nwill now cause an error. You must convert these component named to not have `/`\ncharacters in their strings.\n\n### Running module unification with fallback to classic app layout\n\nIf an application cannot be converted all at once, or if your application is\ndependent upon addons that use `app/` to add files, you may want to use\na setup that falls back to `app/` after checking `src` and honors the `app/`\ndirectory for some files like initializers.\n\nTo do this use a fallback resolver in `src/resolver.js`:\n\n```js\nimport Resolver from 'ember-resolver/resolvers/fallback';\nimport buildResolverConfig from 'ember-resolver/ember-config';\nimport config from '../config/environment';\n\nlet moduleConfig = buildResolverConfig(config.modulePrefix);\n/*\n * If your application has custom types and collections, modify moduleConfig here\n * to add support for them.\n */\n\nexport default Resolver.extend({\n  config: moduleConfig\n});\n```\n\nIn `src/main.js` be sure to load initializers in the `app/` directory\n(possibly added by an addon) via:\n\n```js\n/*\n * This line should be added by the blueprint\n */\nloadInitializers(App, config.modulePrefix+'/src/init');\n\n/*\n * This line should be added to support `app/` directories\n */\nloadInitializers(App, config.modulePrefix);\n```\n\n### Running Tests\n\n * `npm run test`\n\nTo debug tests:\n\n  * All tests: `mocha --debug-brk --inspect test/**/*-test.js`\n  * A single test: `mocha --debug-brk --inspect test/**/*-test.js --grep test-helpers`\n\n### Important Notes\n\nKnown caveats:\n\n* Migrates only \"classic\" structured ember-cli apps at this point. We are\n  actively working on pods support.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fember-codemods%2Fember-module-migrator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fember-codemods%2Fember-module-migrator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fember-codemods%2Fember-module-migrator/lists"}