How to include foundation javascript using ember-cli


I have just managed to include foundation sass using ember-cli. I am now trying to get foundation.js to be added to final vendor.js through the asset pipeline. I have installed foundation as a bower component. I am adding following to ember-cli-build.js file but my vendor.js does not contain anything related to foundation.js


Is there any other setting I need to do in order to make the above three files bundle into vendor.js?


This seems to be working now after running ember build. I still do not understand though why? When I run ember server does it not internally run ember build?