nxext / nx-extensions-ionic

Nx Extension for Ionic
MIT License
33 stars 9 forks source link

Capacitor | Angular: Add Environment Options to Pass to Capacitor Command. #3

Open tommyc38 opened 1 year ago

tommyc38 commented 1 year ago

Is your feature request related to a problem? Please describe. I need to be able to run different builds of iOS/Android dynmaically. In order to do that I need to be able to pass environement variables to the capacitor command. See the capacitor docs describing this here.

Describe the solution you'd like I would like a new option, env, which would be a string that would be executed before the npx command (e.g. 'NODE_ENV=dev OTHER_VAR=FOO').

Describe alternatives you've considered I can't think of any other way.

Additional context N/A