Skip to content

Commit

Permalink
Make the build work.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanhammond committed Nov 30, 2016
1 parent 7b42950 commit f3ee405
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* jshint node: true */
'use strict';
var stew = require('broccoli-stew');
var path = require('path');

var paths = {};
var absolutePaths = {};
Expand Down Expand Up @@ -32,16 +33,21 @@ module.exports = {
paths: paths,
absolutePaths: absolutePaths,
treeForVendor: function() {

var jqueryPath = path.dirname(require.resolve('jquery/package.json'));
var jquery = stew.find(jqueryPath + '/dist', {
destDir: 'ember/jquery',
files: [ 'jquery.js' ]
});

var ember = stew.find(__dirname + '/dist', {
destDir: 'ember',
files: [
'ember-runtime.js',
'ember-template-compiler.js',
'ember-testing.js',
'ember.debug.js',
'ember.min.js',
'ember.prod.js',
'jquery/jquery.js'
'ember.prod.js'
]
});

Expand All @@ -52,7 +58,8 @@ module.exports = {

return stew.find([
ember,
shims
shims,
jquery
]);
}
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"glimmer-engine": "^0.19.2",
"glob": "^5.0.13",
"html-differ": "^1.3.4",
"jquery": "^3.1.1",
"mocha": "^2.4.5",
"qunit-extras": "^1.5.0",
"qunit-phantomjs-runner": "^2.2.0",
Expand All @@ -67,6 +66,7 @@
"ember-cli-string-utils": "^1.0.0",
"ember-cli-test-info": "^1.0.0",
"ember-cli-valid-component-name": "^1.0.0",
"jquery": "^3.1.1",
"rsvp": "^3.3.3",
"simple-dom": "^0.3.0"
},
Expand Down

0 comments on commit f3ee405

Please sign in to comment.