Outdated CLI Flags in Documentation for @nativescript/nx Version 20
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 45/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- typescript
调研方向
找到包含 Android 和 iOS 构建示例的文档页面,并将它们与 issue 中显示的版本 20 ExecutorSchema、AndroidSchema 和 IosSchema 进行比较。更新示例以使用嵌套选项语法,然后验证两个命令都符合文档所述的 schema,并使用一致的 copyTo 拼写。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- TypeScript
- 星标
- 68
- 派生
- 15
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NativeScript/nx 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 65/100
NativeScript/nx#88 ·
-
难度 3/5 1-2 天 新手友好度 30/100
NativeScript/nx#84 · 3 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
NativeScript/nx#78 ·
-
难度 4/5 3-5 天 新手友好度 35/100
NativeScript/nx#76 ·
-
answered question
NativeScript/nx#74 · 3 条评论 · 已指派 1 人 ·
相似的 Issue
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 1/5 1 小时以内 新手友好度 85/100
-
Mend: dependency security vulnerability untriaged
难度 2/5 1-3 小时 新手友好度 70/100