Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16870] CLI: Expose build configuration via command line options

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsCLI
Labelscb-tooling
ReporterChris Barber
AssigneeChris Barber
Created2014-04-19T01:04:58.000+0000
Updated2016-09-14T22:58:52.000+0000

Description

This ticket is phase 3 of 3 phases: 1. Decouple settings from the deploy type and expose the defaults in an XML file that is in the SDK (TIMOB-12025) 2. Allow setting overrides in the tiapp.xml (TIMOB-16869) 3. Expose build configurations via command line options that allow selection of custom build configuration(this ticket) The new option will be called --build-configuration <value>. It is designed to mimic the deploy type.

Build configuration Resolution

The follow is the order in which the build configurations are merged: Read the global build configurations Merge custom build configurations from tiapp.xml into the global build configurations Debug log all overwritten values Define any new extended build configurations Debug log the new configuration and all overwritten values Use the --deploy-type, --build-configuration, or default deploy type to select which build-configuration to use Debug log which configuration and deploy type have been selected Merge build configuration specific settings, tags, etc into the tiapp.xml root Debug log what tiapp.xml values have been overwritten by the build configuration values The build will reference the tiapp.xml object as it always has, but now it has new options (i.e. minify-js, allow-debugging, etc)

Comments

No comments

JSON Source