Skip to content

Commit 23b8452

Browse files
committed
feat(apply): add functions to copy missing spec-kit files
1 parent faaefc0 commit 23b8452

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

scripts/apply.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ set -euo pipefail
3737
# - repository-template skill
3838
# - copilot-instructions.md
3939
# - constitution.md
40+
# - .specify/scripts/bash
41+
# - .specify/templates
4042
# - adr-template.md
4143
# - docs/codebase-overview/ (with .gitignore)
4244
# - docs/prompt-reports/ (with .gitignore)
@@ -64,6 +66,8 @@ PROMPTS_DIR="${REPO_ROOT}/.github/prompts"
6466
SKILLS_DIR="${REPO_ROOT}/.github/skills"
6567
COPILOT_INSTRUCTIONS="${REPO_ROOT}/.github/copilot-instructions.md"
6668
CONSTITUTION="${REPO_ROOT}/.specify/memory/constitution.md"
69+
SPECIFY_SCRIPTS_BASH="${REPO_ROOT}/.specify/scripts/bash"
70+
SPECIFY_TEMPLATES="${REPO_ROOT}/.specify/templates"
6771
ADR_TEMPLATE="${REPO_ROOT}/docs/adr/adr-template.md"
6872
DOCS_CODEBASE_OVERVIEW="${REPO_ROOT}/docs/codebase-overview"
6973
DOCS_PROMPT_REPORTS="${REPO_ROOT}/docs/prompt-reports"
@@ -231,6 +235,8 @@ function main() {
231235
copy-skills "${destination}"
232236
copy-copilot-instructions "${destination}"
233237
copy-constitution "${destination}"
238+
copy-specify-scripts-bash "${destination}"
239+
copy-specify-templates "${destination}"
234240
copy-adr-template "${destination}"
235241
copy-docs-codebase-overview "${destination}"
236242
copy-docs-prompt-reports "${destination}"
@@ -479,6 +485,30 @@ function copy-constitution() {
479485
cp "${CONSTITUTION}" "${dest}/"
480486
}
481487

488+
# Copy .specify/scripts/bash directory to the destination.
489+
# Arguments (provided as function parameters):
490+
# $1=[destination directory path]
491+
function copy-specify-scripts-bash() {
492+
493+
local dest="$1/.specify/scripts/bash"
494+
mkdir -p "${dest}"
495+
496+
print-info "Copying .specify/scripts/bash to ${dest}"
497+
cp -R "${SPECIFY_SCRIPTS_BASH}/". "${dest}/"
498+
}
499+
500+
# Copy .specify/templates directory to the destination.
501+
# Arguments (provided as function parameters):
502+
# $1=[destination directory path]
503+
function copy-specify-templates() {
504+
505+
local dest="$1/.specify/templates"
506+
mkdir -p "${dest}"
507+
508+
print-info "Copying .specify/templates to ${dest}"
509+
cp -R "${SPECIFY_TEMPLATES}/". "${dest}/"
510+
}
511+
482512
# Copy adr-template.md to the destination.
483513
# Arguments (provided as function parameters):
484514
# $1=[destination directory path]

0 commit comments

Comments
 (0)