mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
feat(config): embed options for existing platform host projects (#10568)
This commit is contained in:
@ -173,6 +173,28 @@ interface IConfigHook {
|
|||||||
script: string;
|
script: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface IConfigEmbedProps {
|
||||||
|
/**
|
||||||
|
* Relative path to the platform host project directory.
|
||||||
|
*/
|
||||||
|
hostProjectPath?: string;
|
||||||
|
/**
|
||||||
|
* (Android only) Optional custom module name.
|
||||||
|
*/
|
||||||
|
hostProjectModuleName?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface IConfigEmbed extends IConfigEmbedProps {
|
||||||
|
/**
|
||||||
|
* iOS specific embed configurations
|
||||||
|
*/
|
||||||
|
ios?: IConfigEmbedProps;
|
||||||
|
/**
|
||||||
|
* Android specific embed configurations
|
||||||
|
*/
|
||||||
|
android?: IConfigEmbedProps;
|
||||||
|
}
|
||||||
|
|
||||||
export interface NativeScriptConfig {
|
export interface NativeScriptConfig {
|
||||||
/**
|
/**
|
||||||
* App's bundle id
|
* App's bundle id
|
||||||
@ -202,6 +224,10 @@ export interface NativeScriptConfig {
|
|||||||
* You can override that to use a name of your choice by setting this.
|
* You can override that to use a name of your choice by setting this.
|
||||||
*/
|
*/
|
||||||
projectName?: string;
|
projectName?: string;
|
||||||
|
/**
|
||||||
|
* For embedding into existing platform host projects.
|
||||||
|
*/
|
||||||
|
embed?: IConfigEmbed;
|
||||||
/**
|
/**
|
||||||
* Custom webpack config path
|
* Custom webpack config path
|
||||||
* The default is `webpack.config.js` in the root however you can use a custom name and place elsewhere.
|
* The default is `webpack.config.js` in the root however you can use a custom name and place elsewhere.
|
||||||
|
Reference in New Issue
Block a user