-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ember-cli does not respect bower_directory
environment variable
#6290
Comments
Related:
@orf would you be willing to write a solution following the recommendations and discussion we've had on this topic in the past? The area where this would be implemented is here: ember-cli/lib/models/project.js Lines 69 to 91 in 2bce175
|
Yes I would be willing to try, there is a 'bower-config' package that we On 22 Sep 2016 18:18, "Nathan Hammond" notifications@github.com wrote:
|
The discussion was with regards to node_modules in the aforelinked issues, but will also apply to bower_components. Let me know if you want help, you can find me and others who can help guide in #dev-ember-cli in the Ember Community Slack. |
Oh, I just read your comment and realized what you meant. I've made a MR that uses I can just add an explicit environment variable |
I did this in this commit: https://github.com/orf/ember-cli/commit/8a0c3b0031999b2338751425f4003ec3d27387a8 Let me know which you want, I can close my existing MR and make this one instead. |
Hi @nathanhammond, which one of the commits would you like me to make a MR for? I've made #6292, but if you're concerned about nested projects I was thinking that perhaps ember-cli could detect this case? I.e if there is a project inside Or maybe this is too complex, we should just have an explicit environment variable as in https://github.com/orf/ember-cli/commit/8a0c3b0031999b2338751425f4003ec3d27387a8 |
Thank you for the original report for everyone involved in the discussion. Given that Bower itself is deprecated this does no longer seem relevant. If you feel otherwise please re-open the issue! |
I'm currently in docker hell, and I need to have my npm and bower packages in the directory above my app code. If my app is in
/usr/code/app
I need my bower_components to be in/usr/code/bower_components
.Bower lets you specify a
bower_directory
environment variable, and if I set this to../bower_components
thenbower
works just fine. Howeverember-cli
seems to ignore this and only looks inside the.bowerrc
file, but only in the current directory and not in any parent directories.Pretty much it would be great if ember-cli could respect the config rules described here: https://bower.io/docs/config/
Output from
ember version --verbose && npm --version
:The text was updated successfully, but these errors were encountered: