@motor-hero/ui-kit 0.5.1 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +38 -1
  2. package/package.json +7 -2
package/README.md CHANGED
@@ -47,6 +47,43 @@ function App() {
47
47
 
48
48
  ```bash
49
49
  npm run build # Build da library
50
- npm run docs:dev # Dev server da documentação
50
+ npm run docs:dev # Dev server da documentação (playground ao vivo dos componentes)
51
51
  npm run docs:build # Build estático da documentação
52
52
  ```
53
+
54
+ ### Testando o kit em outro projeto
55
+
56
+ Antes de publicar, dá para testar os componentes como dependência real de outro app:
57
+
58
+ ```bash
59
+ # Opção A — npm link (ao vivo)
60
+ # no motor-hero-ui-kit:
61
+ npm run build && npm link && npm run dev
62
+ # no OUTRO projeto:
63
+ npm link @motor-hero/ui-kit
64
+ ```
65
+
66
+ ```bash
67
+ # Opção B — npm pack (mais fiel ao publish)
68
+ # no motor-hero-ui-kit:
69
+ npm run build && npm pack # gera motor-hero-ui-kit-0.5.1.tgz
70
+ # no OUTRO projeto:
71
+ npm install ../motor-hero-ui-kit/motor-hero-ui-kit-0.5.1.tgz
72
+ ```
73
+
74
+ Detalhes (peerDeps do React, unlink etc.) em [CONTRIBUTING.md](./CONTRIBUTING.md).
75
+
76
+ ## Versionamento e Releases
77
+
78
+ As versões e o publish no npm são **automatizados** — você não edita a versão à mão nem cria tags.
79
+ A versão é derivada das mensagens de commit ([Conventional Commits](https://www.conventionalcommits.org)):
80
+
81
+ | Commit | Bump | A partir de `0.5.1` → |
82
+ |---|---|---|
83
+ | `fix:` | patch | `0.5.2` |
84
+ | `feat:` | minor | `0.6.0` |
85
+ | `feat!:` / `BREAKING CHANGE:` | minor (permanece em `0.x`) | `0.6.0` |
86
+
87
+ Ao fazer merge na `main`, o **release-please** abre um PR de release com a versão e o `CHANGELOG`
88
+ prontos; ao **fazer merge desse PR**, a tag, a GitHub Release e o `npm publish` acontecem
89
+ automaticamente. Guia completo em [CONTRIBUTING.md](./CONTRIBUTING.md).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@motor-hero/ui-kit",
3
- "version": "0.5.1",
3
+ "version": "0.7.0",
4
4
  "description": "Componentes React reutilizáveis para o ecossistema MotorHero — shadcn/ui + Tailwind CSS v4",
5
5
  "author": "MotorHero",
6
6
  "license": "UNLICENSED",
@@ -44,7 +44,8 @@
44
44
  "lint": "tsc --noEmit",
45
45
  "docs:dev": "vite --config docs/vite.config.ts",
46
46
  "docs:build": "vite build --config docs/vite.config.ts",
47
- "prepublishOnly": "npm run build"
47
+ "prepublishOnly": "npm run build",
48
+ "prepare": "husky"
48
49
  },
49
50
  "peerDependencies": {
50
51
  "clsx": "^2.0.0",
@@ -61,12 +62,16 @@
61
62
  "sonner": "^2.0.7"
62
63
  },
63
64
  "devDependencies": {
65
+ "@commitlint/cli": "^20.5.3",
66
+ "@commitlint/config-conventional": "^20.5.3",
64
67
  "@tailwindcss/vite": "^4.3.0",
68
+ "@types/node": "^25.9.1",
65
69
  "@types/react": "^19.0.0",
66
70
  "@types/react-dom": "^19.0.0",
67
71
  "@vitejs/plugin-react-swc": "^3.11.0",
68
72
  "clsx": "^2.0.0",
69
73
  "highlight.js": "^11.11.1",
74
+ "husky": "^9.1.7",
70
75
  "lucide-react": "^1.17.0",
71
76
  "react": "^19.0.0",
72
77
  "react-dom": "^19.0.0",