README
TGT - Target
The target tool is used to facilitate branding apps across multiple platforms. The concept is to have the apps use local brand data which shouldn't change for the brand once it is created, but lets the app get dynamic app config data from Firebase and dynamic images from an S3 bucket. The local data should only be the minimum necessary to set up services and know what brand info to use. The Firebase data should be any config data that is dynamic in the app, like colors, fonts, ui element sizes, image names, etc. The config's image names should point to files stored on the bucket.
The tool is meant to accomplish a few main goals :
- Download and keep app repo branches up to date locally in the folder
- Move brand files in the app repos
- Build one or all brands for needed platforms
- Set the Firebase data for brands
- Set Firebase data for the map layers
- Manage production vs staging data on Firebase and S3
- Upload brand files to S3 bucket
To do so, a tgtconfig.json file is read to know what branding actions are needed. The file's object has four parts.
- repos: An array where each item represents a repo to clone for the app, and each item is an array with three strings. The first string is the repo name and the second the branch to checkout, and the third the repo url to clone.