Trying to figure out how use app-scripts to build for different environments android apps. Probably not as hard as I’m making it.
Set up this
ionic cordova build android -dev
works fine.
If I try my custom one
ionic cordova build android -test
Can’t get it to run.
Tried to set this up in the package.json (I get this isn’t for test, just a proof it will build an apk)
“buildapp:dev”: “MY_ENV=dev IONIC_PLATFORM=cordova IONIC_TARGET=android ionic-app-scripts build”,
When I run
npm run buildapp:dev
just does a normal build, no android or cordova build.
I know
ionic cordova build android -test
is hitting package.json how to pass values around seems lost (or really confusing).