Repository navigation
Expand file tree
/
Copy pathinstall.yaml
More file actions
63 lines (63 loc) · 2.81 KB
/
Copy pathinstall.yaml
File metadata and controls
63 lines (63 loc) · 2.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: canvas-migration
project_files:
- config.canvas-migration.yaml
- commands/nodejs/clone
- commands/host/canvas-bootstrap
- web-build/Dockerfile.canvas-migration
- website-to-components
- .claude/skills/website-to-components
- .claude/skills/website-to-components-multipage
- .claude/skills/migration-component-authoring
- .claude/skills/migration-create-component
- .claude/skills/migration-stories
- .claude/skills/acquia-source-setup
- .claude/skills/acquia-source-docs-explorer
- .claude/skills/typography-audit
- .claude/skills/webpage-sections-splitter
- evals
global_files: []
pre_install_actions: []
post_install_actions:
- |
#ddev-description:Move website-to-components from .ddev to project root
if [ -d "${DDEV_APPROOT}/.ddev/website-to-components" ]; then
cp -r "${DDEV_APPROOT}/.ddev/website-to-components" "${DDEV_APPROOT}/"
rm -rf "${DDEV_APPROOT}/.ddev/website-to-components"
fi
- |
#ddev-description:Move Claude skills from .ddev to project root
if [ -d "${DDEV_APPROOT}/.ddev/.claude" ]; then
mkdir -p "${DDEV_APPROOT}/.claude/skills"
cp -r "${DDEV_APPROOT}/.ddev/.claude/skills/." "${DDEV_APPROOT}/.claude/skills/"
rm -rf "${DDEV_APPROOT}/.ddev/.claude"
fi
- |
#ddev-description:Move skill evals from .ddev to project root
if [ -d "${DDEV_APPROOT}/.ddev/evals" ]; then
mkdir -p "${DDEV_APPROOT}/evals"
cp -r "${DDEV_APPROOT}/.ddev/evals/." "${DDEV_APPROOT}/evals/"
rm -rf "${DDEV_APPROOT}/.ddev/evals"
fi
- "echo ''"
- "echo 'Canvas Migration addon installed.'"
- "echo 'Run: ddev restart'"
- "echo 'First, bootstrap local permissions (idempotent): ddev canvas-bootstrap'"
- "echo 'Then use: ddev clone https://your-site.com'"
- "echo 'Whole-site scope (--scope site) reads sitemap.xml and auto-validates URLs over HTTP.'"
- "echo 'Validation checks HTTP 200, no redirects, no noindex, and canonical self-reference.'"
- "echo 'Falls back to menu-reachable discovery if no sitemap found. No external dependency required.'"
- "echo 'Skill evals installed to evals/; they wire onto the ai_best_practices harness on ddev restart (if the module is installed). See evals/README.md.'"
removal_actions:
- |
#ddev-description:Remove the eval->skills symlink wired into ai_best_practices
# Host action: DDEV_APPROOT is reliable, DDEV_DOCROOT may be unset, so try the
# default docroot first and otherwise locate the vendored module by glob.
for ABP in \
"${DDEV_APPROOT}/${DDEV_DOCROOT:-web}/vendor/drupal/ai_best_practices" \
"${DDEV_APPROOT}"/*/vendor/drupal/ai_best_practices \
"${DDEV_APPROOT}/vendor/drupal/ai_best_practices"; do
if [ -L "${ABP}/.claude/skills" ]; then
rm -f "${ABP}/.claude/skills"
rmdir "${ABP}/.claude" 2>/dev/null || true
fi
done