Limitation for posting links is a standard feature of discourse for new users who haven’t “been around the forum much” and should disappear with time.
Your :ui:app:predict:installDist task shouldn’t need to be different to the custom app example included in the project template, note the dependency on npmBuild task which will call the build script defined in your package.json and this should call the webpack build command and from there the ts-loader should compile your typescript code before it is bundled.
For typescript code to be compiled for all dependencies you need to ensure your dependencies are included in the tsconfig.json of your app in the references section you should reference each of your custom components.
NOTE: yarn install task should be automatically run by gradle