https://github.com/bbvaengineering/ember-cli-awesome-resolver
Awesome resolver for ember-cli
https://github.com/bbvaengineering/ember-cli-awesome-resolver
ember-addon ember-cli-addon resolver
Last synced: 10 days ago
JSON representation
Awesome resolver for ember-cli
- Host: GitHub
- URL: https://github.com/bbvaengineering/ember-cli-awesome-resolver
- Owner: BBVAEngineering
- License: mit
- Created: 2016-04-29T08:53:52.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T15:07:02.000Z (about 3 years ago)
- Last Synced: 2025-10-05T23:05:46.497Z (8 months ago)
- Topics: ember-addon, ember-cli-addon, resolver
- Language: JavaScript
- Size: 3.43 MB
- Stars: 0
- Watchers: 10
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ember-cli-awesome-resolver
[](https://travis-ci.org/BBVAEngineering/ember-cli-awesome-resolver)
[](https://badge.fury.io/gh/BBVAEngineering%2Fember-cli-awesome-resolver)
[](https://badge.fury.io/js/ember-cli-awesome-resolver)
[](https://david-dm.org/BBVAEngineering/ember-cli-awesome-resolver)
This resolver allows to use any amd module namespace defined in the configuration file.
## Information
[](https://nodei.co/npm/ember-cli-awesome-resolver/)
Packageember-cli-awesome-resolver
Description
Ember-cli awesome resolver
Node Version
>= 0.10
## Installation
- `ember install ember-cli-awesome-resolver`
## Contributing
## Usage
- Define an array with the namespaces to use in `config/environment.js`
- Import the resolver in `app/app.js` and create an instance passing the namespaces and the modules configuration
- Use the resolver when creating the ember application
### Example
```javascript
// app/app.js
import AwesomeResolverMixin from 'ember-cli-awesome-resolver/mixins/awesome-resolver';
import config from './config/environment';
const Resolver = Ember.Resolver.extend(AwesomeResolverMixin, {
moduleBasedResolver: true,
namespaces: config.namespaces,
pluralizedTypes: {
config: 'config'
}
});
const App = Ember.Application.extend({
Resolver,
rootElement: '#app',
modulePrefix: config.modulePrefix,
ready() {
// Set app to ready.
this.set('isReady', true);
}
});
export default App;
// config/environment.js
module.exports = function(environment) {
var ENV = {
namespaces: ['mynamespace', 'anothernamespace', ...],
APP: {
// Here you can pass flags/options to your application instance
// when it is created
}
...
```
## Contribute
If you want to contribute to this addon, please read the [CONTRIBUTING.md](CONTRIBUTING.md).
## Versioning
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/BBVAEngineering/ember-cli-awesome-resolver/tags).
## Authors
See the list of [contributors](https://github.com/BBVAEngineering/ember-cli-awesome-resolver/contributors) who participated in this project.
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details