feat: add project initialization script and template files with dynamic help table
- Added `init-project` script to setup new taskfile projects with templates - Created `.gitignore.template` and `AGENTS.md.template` for standardized project setup - Implemented dynamic help table generation in `help-table` function - Updated `library.md` and `task.template` to include new `init-project` command - Added `init-project` to taskfile help documentation - Improved AGENTS.md with comprehensive coding conventions and agent guidance
This commit is contained in:
10 files changed
+333
-212
No files matched your search
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
init-project() {
|
||||
echo "Init git directory."
|
||||
git init .
|
||||
|
||||
echo "Create taskfile directories."
|
||||
mkdir -p tmp .prompt
|
||||
|
||||
echo "Copy gitgnore template."
|
||||
cp "$HOME/taskfile.build/.gitignore.template" ./.gitignore
|
||||
|
||||
echo "Copy taskfile template."
|
||||
cp "$HOME/taskfile.build/task.template" ./task
|
||||
|
||||
echo "Copy AGENTS.md template."
|
||||
cp "$HOME/taskfile.build/AGENTS.md.template" ./AGENTS.md
|
||||
|
||||
echo "Touch default files."
|
||||
touch ./README.md ./.env
|
||||
|
||||
echo "Copy license file."
|
||||
cp "$HOME/taskfile.build/LICENSE" ./LICENSE
|
||||
}
|
||||
Reference in new issue
Block a user