ember-addon.js
function EmberAddon() {
    var args = [];
    var options = {};
    console.log("Addon init")

    for (var i = 0, l = arguments.length; i < l; i++) {
        args.push(arguments[i]);
    }

    if (args.length === 1) {
        options = args[0];
    } else if (args.length > 1) {
        args.reverse();
        options = defaults.apply(null, args);
    }

    process.env.EMBER_ADDON_ENV = process.env.EMBER_ADDON_ENV || 'development';

    this.appConstructor(defaults(options, {
        name: 'dummy',
        configPath: './tests/dummy/config/environment',
        trees: {
            app: 'tests/dummy/app',
            styles: 'tests/dummy/app/styles',
            templates: 'tests/dummy/app/templates',
            public: 'tests/dummy/public',
            tests: new Funnel('tests', {
                exclude: [ /^dummy/ ]
            })
        },
        jshintrc: {
            tests: './tests',
            app: './tests/dummy'
        },
    }));
}
function EmberAddon() {
    var args = [];
    var options = {};
    console.log("Addon init")

    for (var i = 0, l = arguments.length; i < l; i++) {
        args.push(arguments[i]);
    }

    if (args.length === 1) {
        options = args[0];
    } else if (args.length > 1) {
        args.reverse();
        options = defaults.apply(null, args);
    }

    process.env.EMBER_ADDON_ENV = process.env.EMBER_ADDON_ENV || 'development';

    this.appConstructor(defaults(options, {
        name: 'dummy',
        configPath: './tests/dummy/config/environment',
        trees: {
            app: 'tests/dummy/app',
            styles: 'tests/dummy/app/styles',
            templates: 'tests/dummy/app/templates',
            public: 'tests/dummy/public',
            tests: new Funnel('tests', {
                exclude: [ /^dummy/ ]
            })
        },
        jshintrc: {
            tests: './tests',
            app: './tests/dummy'
        },
    }));
}
function EmberAddon ( ) { var args = [ ] ; var options = { } ; console . log ( "Addon init" ) for ( var i = 0 , l = arguments . length ; i < l ; i ++ ) { args . push ( arguments [ i ] ) ; } if ( args . length === 1 ) { options = args [ 0 ] ; } else if ( args . length > 1 ) { args . reverse ( ) ; options = defaults . apply ( null , args ) ; } process . env . EMBER_ADDON_ENV = process . env . EMBER_ADDON_ENV || 'development' ; this . appConstructor ( defaults ( options , { name : 'dummy' , configPath : './tests/dummy/config/environment' , trees : { app : 'tests/dummy/app' , styles : 'tests/dummy/app/styles' , templates : 'tests/dummy/app/templates' , public : 'tests/dummy/public' , tests : new Funnel ( 'tests' , { exclude : [ / ^dummy / ] } ) } , jshintrc : { tests : './tests' , app : './tests/dummy' } , } ) ) ; }
EmberAddon is used during addon development.

@class EmberAddon
@extends EmberApp
@constructor
@param options
EmberAddon is used during addon development .