{"size": 713, "ext": "js", "max_stars_repo_path": "index.js", "max_stars_repo_name": "tylerturdenpants/ember-cached-shoe", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "index.js", "max_issues_repo_name": "tylerturdenpants/ember-cached-shoe", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "index.js", "max_forks_repo_name": "tylerturdenpants/ember-cached-shoe", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.7631578947, "max_line_length": 52, "alphanum_fraction": 0.5315568022}
/* eslint-env node */
'use strict';
const Webpack = require('broccoli-webpack')
const PackOpts = {
  entry: 'b2a',
  output: {
    filename: 'b2a.js',
    library: 'b2a',
    libraryTarget: 'umd'
  }
};
const transformAMD = (name) => ({
  using: [{ transformation: 'amd', as: name }]
});

module.exports = {
  name: 'ember-cached-shoe',

  options: {
    nodeAssets: {
      'b2a': {
        vendor: {
          srcDir:   'lib',
          include: ['index.js'],
          processTree(input) {
            return  new Webpack([input], PackOpts)
          }
        }
      }
    }
  },

  included(app) {
    this._super.included.apply(this, arguments)
    app.import('vendor/b2a.js', transformAMD('b2a'))
  },
};
