Skip to content

Commit

Permalink
Simplify build process (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
Exelord authored Feb 18, 2018
1 parent f6e03f7 commit 4e6ff4d
Show file tree
Hide file tree
Showing 3 changed files with 434 additions and 640 deletions.
26 changes: 0 additions & 26 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,5 @@
'use strict';

const path = require('path');
const Funnel = require('broccoli-funnel');
const mergeTrees = require('broccoli-merge-trees');

module.exports = {
name: 'ember-initials',

included: function(app) {
this._super.included(app);

app.import('vendor/ember-initials/md5.js');
app.import('vendor/shims/md5.js', { type: 'vendor' });
},

md5Path() {
return path.join(this.app.project.nodeModulesPath, 'blueimp-md5', 'js');
},

treeForVendor(tree) {
let trees = [tree];

trees.push(new Funnel(this.md5Path(), {
destDir: 'ember-initials',
files: ['md5.js']
}));

return mergeTrees(trees);
}
}
Loading

0 comments on commit 4e6ff4d

Please sign in to comment.