Creates enumerators for Ember projects.
Install this addon via ember-cli:
ember install ember-cli-enums
Use the following command to create a new enumerator:
ember g enum <name>
It creates it in the folder enum/
with the following structure:
export default Object.freeze([
{
// example of an element of the enumerator
label: 'Label',
value: 'value',
},
]);
git clone <repository-url>
this repositorycd ember-cli-enums
npm install
ember serve
- Visit your app at http://localhost:4200.
npm test
(Runsember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit https://ember-cli.com/.