What is @ember/optional-features?
@ember/optional-features is an npm package that allows Ember.js developers to enable or disable optional features in their Ember applications. This package provides a way to manage feature flags for various experimental or legacy features, making it easier to adopt new features or phase out old ones.
What are @ember/optional-features's main functionalities?
Enable/Disable Optional Features
This feature allows you to enable specific optional features in your Ember application. For example, you can enable the 'application-template-wrapper' feature using the command provided.
{"command":"ember feature:enable <feature-name>","example":"ember feature:enable application-template-wrapper"}
List Available Features
This feature lists all the optional features available for your Ember application. It helps you see which features are enabled or disabled.
{"command":"ember feature:list"}
Disable Optional Features
This feature allows you to disable specific optional features in your Ember application. For example, you can disable the 'application-template-wrapper' feature using the command provided.
{"command":"ember feature:disable <feature-name>","example":"ember feature:disable application-template-wrapper"}
Other packages similar to @ember/optional-features
ember-feature-controls
ember-feature-controls is another package for managing feature flags in Ember applications. It provides a simple API for defining and checking feature flags. Similar to ember-cli-feature-flags, it offers more flexibility for custom feature management compared to @ember/optional-features, which is specifically designed for managing Ember's built-in optional features.
@ember/optional-features
This README outlines the details of collaborating on this Ember addon.
Installation
git clone <repository-url>
this repositorycd @ember/optional-features
yarn install
Running
Running Tests
yarn test
(Runs ember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
Building
For more information on using ember-cli, visit https://ember-cli.com/.