There are two major approaches you can take to converting to Octane.
The first (and officially recommended) path is to upgrade to a version supporting Octane and then begin converting your apps and add-ons to using Octane idioms and features.
The second path is to progressively adopt Octane features as incremental upgrades unlock them. This requires more work in scheduling and keeping everyone in sync on what features they can and cannot use, but even so it works better for some teams—especially teams with very large apps where waiting for the full availability could delay Octane adoption by months or quarters.
You can choose whichever works well for your team!
The first phase of the Octane upgrade is to update to an Ember version that supports Octane. This may be a large effort, which is why it's contained in its own phase.
The second phase
Install @glimmer/component
and @glimmer/tracking
if they weren't already installed:
ember install @glimmer/component@^1.0.0
ember install @glimmer/tracking@^1.0.0
Toggle all of the Octane Mode features:
ember install @ember/optional-features
ember feature:disable jquery-integration
ember feature:disable application-template-wrapper
ember feature:enable template-only-glimmer-components
ember feature:enable default-async-observers
Enable the Octane Edition by setting it in package.json
:
{
"ember": {
"edition": "octane"
}
}
You can run these codemods to jump start converting your codebase to the new idioms introduced in Octane.