forked from NativeScript/nativescript-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.ts
55 lines (53 loc) · 2.11 KB
/
options.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import * as commonOptionsLibPath from "./common/options";
export class Options extends commonOptionsLibPath.OptionsBase {
constructor($errors: IErrors,
$staticConfig: IStaticConfig,
$hostInfo: IHostInfo,
$settingsService: ISettingsService) {
super({
ipa: { type: OptionType.String },
frameworkPath: { type: OptionType.String },
frameworkName: { type: OptionType.String },
framework: { type: OptionType.String },
frameworkVersion: { type: OptionType.String },
forDevice: { type: OptionType.Boolean },
provision: { type: OptionType.Object },
client: { type: OptionType.Boolean, default: true },
env: { type: OptionType.Object },
production: { type: OptionType.Boolean },
debugTransport: { type: OptionType.Boolean },
keyStorePath: { type: OptionType.String },
keyStorePassword: { type: OptionType.String, },
keyStoreAlias: { type: OptionType.String },
keyStoreAliasPassword: { type: OptionType.String },
ignoreScripts: { type: OptionType.Boolean },
disableNpmInstall: { type: OptionType.Boolean },
compileSdk: { type: OptionType.Number },
port: { type: OptionType.Number },
copyTo: { type: OptionType.String },
platformTemplate: { type: OptionType.String },
ng: { type: OptionType.Boolean },
tsc: { type: OptionType.Boolean },
androidTypings: { type: OptionType.Boolean },
bundle: { type: OptionType.String },
all: { type: OptionType.Boolean },
teamId: { type: OptionType.Object },
syncAllFiles: { type: OptionType.Boolean, default: false },
liveEdit: { type: OptionType.Boolean },
chrome: { type: OptionType.Boolean },
inspector: { type: OptionType.Boolean },
clean: { type: OptionType.Boolean },
watch: { type: OptionType.Boolean, default: true },
background: { type: OptionType.String },
username: { type: OptionType.String },
pluginName: { type: OptionType.String }
},
$errors, $staticConfig, $settingsService);
const that = (<any>this);
// if justlaunch is set, it takes precedence over the --watch flag and the default true value
if (that.justlaunch) {
that.watch = false;
}
}
}
$injector.register("options", Options);