Skip to content

Commit

Permalink
Removing blueprint and moving dependencies to npm.
Browse files Browse the repository at this point in the history
  • Loading branch information
Garrett Murphey committed Jun 24, 2017
1 parent a3ff91e commit 7c7d38c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 25 deletions.
18 changes: 0 additions & 18 deletions blueprints/ember-hifi/index.js

This file was deleted.

2 changes: 0 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"name": "ember-hifi",
"dependencies": {
"howler.js": "howler#^2.0.0",
"hls.js": "^0.6.1",
"remarkable": "^1.7.1",
"highlightjs": "^9.10.0"
}
Expand Down
18 changes: 14 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,33 @@
/* eslint-env node */
'use strict';

var path = require('path');

module.exports = {
name: 'ember-hifi',
included(app, parentAddon) {
this._super.included.apply(this, arguments);
var target = parentAddon || app;
var paths = {
howler: path.dirname(require.resolve('howler')),
hls: path.dirname(require.resolve('hls.js'))
};

while (target.app && !target.bowerDirectory) {
target = target.app;
}

target.import(target.bowerDirectory + '/howler.js/dist/howler.js');
target.import('vendor/howler.js');
target.import({
development: path.join(paths.howler, 'howler.js'),
production: path.join(paths.howler, 'howler.min.js')
});

target.import({
development: target.bowerDirectory + '/hls.js/dist/hls.js',
production: target.bowerDirectory + '/hls.js/dist/hls.min.js'
development: path.join(paths.hls, 'hls.js'),
production: path.join(paths.hls, 'hls.min.js')
});

target.import('vendor/howler.js');
target.import('vendor/hls.js');
},

Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@
"dependencies": {
"ember-cli-babel": "^5.1.7",
"ember-getowner-polyfill": "^1.0.1",
"ember-poll": "^1.0.1"
"ember-poll": "^1.0.1",
"hls.js": "^0.7.9",
"howler": "^2.0.4"
},
"ember-addon": {
"configPath": "tests/dummy/config"
Expand Down

0 comments on commit 7c7d38c

Please sign in to comment.