From 5d22cf4948e5497d86bc25c5b638281b899f82cb Mon Sep 17 00:00:00 2001 From: Ilya Mukhortov Date: Sun, 25 Oct 2026 10:50:59 +1000 Subject: [PATCH] Install from git: README, repository field, .gitignore Co-Authored-By: Claude Opus 5.5 --- .gitignore | 2 ++ README.md | 12 ++++++++++++ package.json | 4 ++++ 3 files changed, 18 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fd4f2b0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +.DS_Store diff --git a/README.md b/README.md index f65fd1d..7140ae4 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,18 @@ src/styles.css тема (токены, шрифты, тёмный режим) Пакет поставляется исходниками (без сборки): TS/TSX компилирует бандлер приложения. +## Установка + +Пакет ставится прямо из git, версии — теги `vX.Y.Z`: + +```bash +npm i "git+https://git.med-logic.ru/medlogic/medkit.git#semver:^0.1.0" +``` + +`package-lock.json` фиксирует коммит; обновиться до свежего тега — `npm update @medkit/ui`. В medicine-ui kit подключён git-submodule в `packages/medkit` (npm workspace) — правки видны сразу. + +Выпуск версии: поднять `version` в `package.json`, закоммитить, `git tag vX.Y.Z && git push --follow-tags`. + ## Подключение ```tsx diff --git a/package.json b/package.json index 28671e6..3e55182 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,10 @@ "version": "0.1.0", "private": true, "description": "Medkit — UI kit МИС «Медицина»: React 19 + Tailwind 4 + Radix (shadcn/ui)", + "repository": { + "type": "git", + "url": "git+https://git.med-logic.ru/medlogic/medkit.git" + }, "type": "module", "sideEffects": [ "*.css"