node.js - Should dependencies be installed with bower or broccoli in ember app? -
i'm new js package managers , build tools seems bit confusing me.
i've set new ember app , want add dependencies (foundation) in recommended/conventional way. there seem 2 ways of adding project, using bower or broccoli.
this page recommends using broccoli:
if want use .scss version of foundation, should first configure project use broccoli-sass with: npm install --save-dev broccoli-sass , rename app/styles/app.css app/styles/app.scss. can install foundation using bower with: bower install --save-dev foundation now, inside app/styles/app.scss, can import foundation styles with: @import 'bower_components/foundation/scss/normalize'; @import 'bower_components/foundation/scss/foundation';
whereas this recommends using bower.
$> bower install --save bootstrap afterwards add following 2 lines ember-cli-builds.js (or brocfile.js if using older version of ember.js): app.import(app.bowerdirectory + '/bootstrap/dist/js/bootstrap.js'); app.import(app.bowerdirectory + '/bootstrap/dist/css/bootstrap.css');
could shed light on difference between these , 1 better/recommended way?
official ember-cli documentation recommends use bower: "ember cli uses bower dependency management"
Comments
Post a Comment