Socket
Book a DemoInstallSign in
Socket

ember-cli-awesome-resolver

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-awesome-resolver

Awesome resolver for ember-cli projects

2.0.1
Source
npmnpm
Version published
Weekly downloads
1
Maintainers
2
Weekly downloads
 
Created
Source

ember-cli-awesome-resolver Build-StatusGitHub version Dependency Status

This resolver allows to use any amd module namespace defined in the configuration file.

Information

NPM

Packageember-cli-awesome-resolver
DescriptionEmber-cli awesome resolver
Node Version>= 0.10

Installation

  • ember install ember-cli-awesome-resolver

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

// 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
    }
    ...

Running

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://www.ember-cli.com/.

Keywords

ember-addon

FAQs

Package last updated on 01 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.