Skip to main content

Add the repository

The Ember API is published to GitHub Packages. You’ll need to authenticate with a GitHub personal access token that has the read:packages scope.

Add the dependency

Use compileOnly or provided. The API is bundled inside the running Ember plugin, so you don’t want a second copy inside your own jar.

Hello, Ember

Read the running Ember version:

Declare Ember as a dependency

Add Ember as a hard dependency of your plugin so it loads after Ember and Ember.instance is always available.