Files
docs/projects/template-sync-strategy/canons/reference/cheatsheet.md
S.Gromov bdb99ade62
All checks were successful
CI/CD Pipeline / build (push) Successful in 39s
CI/CD Pipeline / docker (push) Successful in 1m30s
CI/CD Pipeline / deploy (push) Successful in 8s
refactor: перенести сборку в проекты
- перенесены каноны и VitePress-конфиги в projects/<slug>

- добавлены корневой и проектные build.ts для сборки артефактов

- добавлены shared-библиотеки сборки в projects/_shared/lib

- обновлены CI, Dockerfile, package.json, gitignore и README

- удалена сборка frontend-агента
2026-05-22 19:07:10 +03:00

1.5 KiB
Raw Blame History

title, description
title description
Памятка Короткий набор команд для регулярного обновления приложения от шаблона.

Памятка

Рабочая схема:

templates/master -> template -> sync/* -> master

Обновить template

В репозитории приложения:

git switch template
git pull --ff-only
git push

Это подтягивает свежий шаблон из templates/master и пушит его в origin/template.

Создать ветку обновления

git fetch origin
git switch -c sync/update-template-vX origin/master
git merge origin/template

Если есть конфликты, решить их в этой же ветке:

git add .
git commit

Запушить sync-ветку

git push -u origin sync/update-template-vX

Влить через UI

Создать PR/MR:

source: sync/update-template-vX
target: master

Важно:

squash = off

Проверка

git --no-pager log --oneline --graph --decorate --all --max-count=30

Суть процесса

  1. Обновить template из templates/master.
  2. Создать sync/* от origin/master.
  3. Влить origin/template в sync/*.
  4. Решить конфликты, если есть.
  5. Запушить sync/*.
  6. Через UI влить sync/* -> master.