Closed
Description
A new requirement is that every flag with a value must be separated with an =
to ensure any flags which should never be duplicated are properly deduped (in event it was accidentally added twice):
Case 1
- BAD
nx build nativescript-app:android:prod --uglify --key-store-path upload-keystore.jks --key-store-password xxxxxx --key-store-alias xxx --key-store-alias-password xxxxxxx --skip-nx-cache --aab
- GOOD
nx build nativescript-app:android:prod --uglify --key-store-path=upload-keystore.jks --key-store-password=xxxxxx --key-store-alias=xxx --key-store-alias-password=xxxxxxx --skip-nx-cache --aab
Notice the usage of =
between key/values.
Case 2
If you notice your build command turning into nx run
or ns debug
in a CI Pipeline you may need to use an alternate format, for example:
- Potentially problematic depending on pipeline setup:
nx build nativescript-app:ios:prod
――――――――――――――――――――――――
Running NativeScript CLI within apps/nativescript-app/
ns debug ios --no-hmr --env.uglify --env.production --for-device --release
Wait what?! Notice the nx build
turned into ns debug
- that's not what we want.
- Solution:
nx run nativescript-app:build:prod --platform=ios
――――――――――――――――――――――――
Running NativeScript CLI within apps/nativescript-app/
ns build ios --no-hmr --env.uglify --env.production --for-device --release
There we go, it properly builds now.