-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Environment Variable alternative for --production #1729
Comments
Hey. I think ideally In that case you would just use For now CLI options are parsed separately from config options. |
Maybe you'd like to prepare PR for it + tests? Best for all commands. |
Hi, |
no progress has been done |
Bower is deprecated now, and in maintenance mode. Because of this we won't implement new features like this one. We recommend switching to Yarn or npm, and migrating with bower-away |
Proposal
Right now, a
--production
flag can be applied toinstall
andprune
, but there is no way to skipdevDependencies
installation with an environment variable. I'm interested in a feature similar to Bundler'sBUNDLE_WITHOUT
environment variable, which acts as an alternative to the CLI flag--without
. You can see this documented in their man page.Use Case
This would primarily be useful for server environments, where, ideally, the provisioning routine is controlled by environment variables rather than modifying a script per-environment, or the script detecting production vs. development and executing different commands for each.
Implementation
I'm interested in creating the pull request for this feature. The implementation would be fairly straightforward: the only considerations in my mind are:
BOWER_PRODUCTION
, perhaps? Does Bower have any other examples of env variables in use right now?The text was updated successfully, but these errors were encountered: