Interfaces
NativeScriptConfig
NativeScriptConfig
interface NativeScriptConfig { android: IConfigAndroid; appPath: string; appResourcesPath: string; cli: IConfigCLI; cssParser: "rework" | "nativescript" | "css-tree"; hooks: IConfigHook[]; id: string; ignoredNativeDependencies: string[]; ios: IConfigIOS; main: string; overridePods: string; previewAppSchema: string; profiling: InstrumentationMode; shared: boolean; webpackConfigPath: string; }
Summary β
Properties β
android β
Android specific configurations
Various Android specific configurations including Android runtime flags.
appPath β
Path to the app source directory
This is often the
`src`
or `app`
directory however can be changed.appResourcesPath β
App_Resources path
This is often at the root or inside
`src`
or `app`
directory however can be anywhere.cli β
Set cli options
cssParser β
Set the default CSS parser that NativeScript will use.
Default: css-tree
hooks β
Set project persistent hooks to run
id β
App's bundle id
Used for both iOS and Android if they use the same bundle id. You can override per platform in the respective platform specific configurations.
ignoredNativeDependencies β
Optionally specify a list of npm package names for which you would like the NativeScript CLI to ignore when attaching native dependencies to the build
ios β
iOS specific configurations
Various iOS specific configurations including iOS runtime flags.
main β
App's main entry file - this setting overrides the value set in package.json
overridePods β
previewAppSchema β
profiling β
profiling?: InstrumentationMode
Enable profiling for the application. Default: no profiling
In most cases when profiling, you will want to use "timeline"
shared β
webpackConfigPath β
Custom webpack config path
The default is
`webpack.config.js`
in the root however you can use a custom name and place elsewhere.- Previous
- LoginResult
- Next
- NativeScriptError