Outdated CLI Flags in Documentation for @nativescript/nx Version 20
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- typescript
- Lĩnh vực
- documentation
Hướng nghiên cứu
Xác định trang tài liệu chứa các ví dụ build cho Android và iOS, rồi so sánh chúng với ExecutorSchema, AndroidSchema và IosSchema phiên bản 20 được hiển thị trong issue. Cập nhật các ví dụ để sử dụng cú pháp tùy chọn lồng nhau, sau đó xác minh rằng cả hai lệnh đều phản ánh schema được tài liệu hóa và sử dụng cách viết copyTo nhất quán.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
After updating @nativescript/nx from version 18 to version 20, I noticed that the executor interface has changed, and some command-line flags are no longer recognized as before. Specifically, options like --aab, --key-store-path, and --provision are now nested under platform-specific objects (android, ios, etc.) and require a different syntax when used in build commands.
However, the current documentation still reflects the old interface, which can lead to confusion and build failures for developers upgrading to version 20.
Current Documentation Examples (Outdated):
For Android:
npx nx build <app-name> android --c=prod \
--aab \
--key-store-path=<path-to-your-keystore> \
--key-store-password=<your-key-store-password> \
--key-store-alias=<your-alias-name> \
--key-store-alias-password=<your-alias-password> \
--copyTo=./dist/build.aab
For IOS:
npx nx build <app-name> ios --c=prod \
--provision <provisioning-profile-name> \
--copy-to ./dist/build.ipa
Issue:
With the updated executor schema in version 20, these flags are nested inside of android and IOS object:
export interface ExecutorSchema extends BaseSchema, BuildSchema, DebugSchema, PrepareSchema, RunSchema, TestSchema {
android: AndroidSchema;
ios: IosSchema;
visionos: visionOSSchema;
}
export interface AndroidSchema {
aab: boolean;
keyStoreAlias: string;
keyStoreAliasPassword: string;
keyStorePassword: string;
keyStorePath: string;
xmlUpdates: Record<string, any>;
}
export interface IosSchema {
plistUpdates: Record<string, any>;
provision: string;
}
Proposed Documentation Update:
For Android:
npx nx build <app-name> android --c=prod \
--android.aab=true \
--android.keyStorePath=<path-to-your-keystore> \
--android.keyStorePassword=<your-key-store-password> \
--android.keyStoreAlias=<your-alias-name> \
--android.keyStoreAliasPassword=<your-alias-password> \
--copyTo=./dist/build.aab
For iOS:
npx nx build <app-name> ios --c=prod \
--ios.provision=<provisioning-profile-name> \
--copyTo=./dist/build.ipa
- Ngôn ngữ chính
- TypeScript
- Star
- 68
- Fork
- 15
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của NativeScript/nx
-
Add support for "nx publish" Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
NativeScript/nx#88 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
NativeScript/nx#84 · 3 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
NativeScript/nx#78 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
NativeScript/nx#76 ·
-
answered question
NativeScript/nx#74 · 3 bình luận · 1 người được giao ·
Tất cả issue của NativeScript/nx
Issue tương tự
-
Type/Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
OpenNSW/nsw-srilanka#497 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
0xMiden/bridge-portal#132 ·
-
react-doctor severity:warning tech-debt
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
digidem/comapeo-cloud-app#403 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100