Thor is a powerful project scaffolding tool that helps you quickly create and manage project templates.
- 🚀 Quick project initialization
- 📦 Multiple template support
- 🔧 Customizable templates
- 🎯 Git integration
- 🎨 Code formatting
- 🛠 Multi-editor support (VSCode, Cursor)
brew install thorgit clone https://github.com/chenxingqiang/thor.git
cd thor
make installCreate a new React project:
thor init react my-appCreate a new component:
thor create component Button.tsx -t reactGenerate a .gitignore file:
thor git ignore nodeList available templates:
thor template listCreate a new template:
thor template create my-template -t projectInstall template from repository:
thor template install https://github.com/user/templateThor can be configured through ~/.config/thor/config:
# Editor preferences
PREFERRED_EDITOR="cursor" # or "code", "vim"
# Template settings
DEFAULT_TEMPLATE="react"
CUSTOM_TEMPLATES_DIR="$HOME/.thor/templates"- React (TypeScript + Tailwind)
- Next.js
- Vue
- Node.js
- React Components
- Vue Components
- Various .gitignore templates
Please see CONTRIBUTING.md for details.
This project is licensed under the MIT License - see the LICENSE file for details.