Skip to content
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

Ability to change location of ~/.npm ~/.cache ~/.config and ~/.local to maven output directory #163

Open
dantran opened this issue Feb 21, 2015 · 5 comments

Comments

@dantran
Copy link

dantran commented Feb 21, 2015

Since this plugin is set up to be self contained ( ie not depend on global node and npm), it would be nice to be able to confgure those directories as well. Those are created by UI build stack

@eirslett
Copy link
Owner

What? Does npm really make all these?

@dantran
Copy link
Author

dantran commented Feb 21, 2015

~/.npm is the default of npm cache directory. on CI server, dont think we want to share this
.cache .local and .config are from bower.

user can change these locations using various command line settings and env variable.

Use
XDG_DATA_HOME=xxx to change ~/.local
XDG_CONFIG_HOME=xxx to change ~/.config

I think IF this plugin allows user to configure ENV vars, user can solve this on their own. However, it is even better if this can plugin can just abstract out all this settings

@eirslett
Copy link
Owner

Is it possible to configure it in .npmrc and .bowerrc, inside the project directory?

Den 21. feb. 2015 kl. 21.28 skrev Dan Tran notifications@github.com:

~/.npm is the default of npm cache directory. on CI server, dont think we want to share this
.cache .local and .config are from bower.

user can change these locations using various command line settings and env variable.

Use
XDG_DATA_HOME=xxx to change ~/.local
XDG_CONFIG_HOME=xxx to change ~/.config

I think this plugin allows user to configure ENV vars, user can solve this on their own. However, it is even better if this can plugin can just abstract out all this settings


Reply to this email directly or view it on GitHub.

@dantran
Copy link
Author

dantran commented Feb 21, 2015

yes, I can configure npm and bower cach dir using .npmrc and .bowerrc, but not with bower's .local and .config. I am currently using ENV instead

Also, I dont own the UI stack, i only own the Maven for releng, sometime it is very difficult to overwrite existing .npmrc at project level. having ENV support is a safe heaven for me

@dantran
Copy link
Author

dantran commented Feb 22, 2015

I post a questions at bower user group https://groups.google.com/forum/#!topic/twitter-bower/ot3R01Mnj70

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants