Skip to content

Instantly share code, notes, and snippets.

@makowskid
Last active November 2, 2024 05:15
Show Gist options
  • Select an option

  • Save makowskid/656fa2df0ae94cce277aea3705315c58 to your computer and use it in GitHub Desktop.

Select an option

Save makowskid/656fa2df0ae94cce277aea3705315c58 to your computer and use it in GitHub Desktop.
A collection of `repopack` commands tailored for different tech stacks

Repopack Commands for Various Tech Stacks

Repopack is a powerful tool that packages your entire repository into a single, AI-friendly file. Perfect for feeding your codebase to Large Language Models (LLMs) or other AI tools like Claude and ChatGPT, it simplifies the process of preparing your code for analysis.

In this document, I provide a collection of repopack commands tailored for different tech stacks commonly used in 2024. These commands will help you gather all the relevant source code files, configuration files, and scripts for your specific technology while keeping your repositories clean and tidy.

Commands for Different Tech Stacks

Flutter

repopack -o flutter.txt --include "**/*.dart,**/*.yaml,**/*.yml,**/*.json,**/*.md,**/*.txt,**/*.xml,**/*.sh,**/*.bash,**/*.gradle,**/*.properties,**/*.java,**/*.kt,**/*.swift,**/*.cpp,**/*.h,**/*.c,**/*.css,**/*.html,**/*.scss,**/*.less,**/*.js,**/*.ts,**/*.php,**/*.go,**/*.rb,**/*.pl" PROJECT_FOLDER

Laravel

repopack -o laravel.txt --include "**/*.php,**/*.blade.php,**/*.yaml,**/*.yml,**/*.json,**/*.md,**/*.txt,**/*.env,**/*.css,**/*.scss,**/*.js,**/*.ts,**/*.html,**/*.phpunit.xml,**/*.sh,**/*.bash,**/*.sql,**/*.xml,**/*.log" PROJECT_FOLDER

Symfony

repopack -o symfony.txt --include "**/*.php,**/*.twig,**/*.yaml,**/*.yml,**/*.json,**/*.md,**/*.txt,**/*.env,**/*.html,**/*.css,**/*.scss,**/*.js,**/*.sh,**/*.bash,**/*.sql,**/*.xml,**/*.lock" PROJECT_FOLDER

Node.js

repopack -o node.txt --include "**/*.js,**/*.ts,**/*.json,**/*.md,**/*.yaml,**/*.yml,**/*.txt,**/*.env,**/*.html,**/*.css,**/*.scss,**/*.less,**/*.sh,**/*.bash,**/*.sql,**/*.xml" PROJECT_FOLDER

Python

repopack -o python.txt --include "**/*.py,**/*.pyc,**/*.yaml,**/*.yml,**/*.json,**/*.md,**/*.txt,**/*.env,**/*.html,**/*.css,**/*.scss,**/*.sh,**/*.bash,**/*.sql,**/*.xml" PROJECT_FOLDER

.NET

repopack -o dotnet.txt --include "**/*.cs,**/*.csproj,**/*.sln,**/*.json,**/*.md,**/*.yaml,**/*.yml,**/*.txt,**/*.env,**/*.xml,**/*.html,**/*.css,**/*.scss,**/*.sh,**/*.bash,**/*.sql" PROJECT_FOLDER

WordPress

repopack -o wordpress.txt --include "**/*.php,**/*.html,**/*.css,**/*.scss,**/*.js,**/*.json,**/*.md,**/*.txt,**/*.xml,**/*.yaml,**/*.yml,**/*.sh,**/*.bash,**/*.sql,**/*.env" PROJECT_FOLDER

React

repopack -o react.txt --include "**/*.js,**/*.jsx,**/*.ts,**/*.tsx,**/*.json,**/*.md,**/*.css,**/*.scss,**/*.html,**/*.sh,**/*.bash" PROJECT_FOLDER

Angular

repopack -o angular.txt --include "**/*.ts,**/*.html,**/*.scss,**/*.css,**/*.json,**/*.md,**/*.sh,**/*.bash" PROJECT_FOLDER

Vue.js

repopack -o vue.txt --include "**/*.vue,**/*.js,**/*.ts,**/*.json,**/*.md,**/*.css,**/*.scss,**/*.html,**/*.sh,**/*.bash" PROJECT_FOLDER

Ruby on Rails

repopack -o rails.txt --include "**/*.rb,**/*.erb,**/*.yaml,**/*.yml,**/*.json,**/*.md,**/*.txt,**/*.html,**/*.css,**/*.scss,**/*.sh,**/*.bash,**/*.sql" PROJECT_FOLDER

Go

repopack -o go.txt --include "**/*.go,**/*.mod,**/*.sum,**/*.json,**/*.md,**/*.txt,**/*.sh,**/*.bash" PROJECT_FOLDER

Elixir (Phoenix Framework)

repopack -o elixir.txt --include "**/*.ex,**/*.exs,**/*.html.eex,**/*.json,**/*.md,**/*.txt,**/*.yaml,**/*.yml,**/*.sh,**/*.bash" PROJECT_FOLDER

Let's connect on X/Twitter on x.com/makowskid if you're interested in more content like this ๐Ÿš€


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment