Getting Started

Examples for:
Gradle + Kotlin Maven + Java

This tutorial will get you up and running with Typeflows in under 5 minutes. You’ll install Typeflows and start implementing Configuration-as-Code for your repository.

Prerequisites

An existing project Git repo with a project setup for your build system of choice.

Step 1: Install Typeflows

Add Typeflows to your build system, including the GitHub and LLM modules:

Better Experience in Landscape Mode

The code examples look much better when viewed horizontally. Please rotate your device for the best experience!

Or view on a larger screen to see the code!

Step 2: Create Source Folder

Create a Typeflows configuration directory:

Better Experience in Landscape Mode

The code examples look much better when viewed horizontally. Please rotate your device for the best experience!

Or view on a larger screen to see the code!

Step 3: Add Your First Managed Files

Let’s start with an AGENTS.md file and a Dependabot configuration. Create your source files:

Better Experience in Landscape Mode

The code examples look much better when viewed horizontally. Please rotate your device for the best experience!

Or view on a larger screen to see the code!

Step 4: Run Typeflows Export

Running the export task will export all of the configuration files defined in your Typeflows class:

Better Experience in Landscape Mode

The code examples look much better when viewed horizontally. Please rotate your device for the best experience!

Or view on a larger screen to see the code!

Step 5: Verify Output

Typeflows will create the necessary directories and files in your .github/ folder. Check that your ‘AGENTS.md’ and .github/dependabot.yml files have been created:

Better Experience in Landscape Mode

The code examples look much better when viewed horizontally. Please rotate your device for the best experience!

Or view on a larger screen to see the code!

Conclusion

Your AGENTS.md and Dependabot configuration are now managed by Typeflows, giving you:

  • Type safety - No more YAML syntax errors
  • IDE support - Autocomplete and validation
  • Dynamic construction - Use loops, conditionals, and functions to build complex configurations
  • Composability - Content (Markdown, YAML etc) can be composed from independently controlled parts
  • Reusability - Share configurations across projects

Your Typeflows class is now the single source of truth for your GitHub configuration. Any changes you make here will be reflected in your repository folder when you run the export process.

But this is just the beginning, as Typeflows can manage your entire repository setup, including workflows, version files and more!