@sapphire-caitlyn/schema-kit-ng 0.0.0-stage → 0.0.1

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.
package/README.md CHANGED
@@ -1,3 +1,34 @@
1
- # Temporary Holding Version
1
+ # schema-kit (`@schema-kit/ng`)
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Lib de CRUD do backoffice: um `SchemaService` descreve a entidade, o `<schema-table>` faz a listagem e o
4
+ `<schema-view>` faz o criar/editar. Cada componente tem um README ao lado do código, em `src/lib/components/`.
5
+
6
+ ## Entry points
7
+
8
+ | Import | Conteúdo |
9
+ | --------------------- | ---------------------------------------------------------- |
10
+ | `@schema-kit/ng` | A lib (`src/public-api.ts`) |
11
+ | `@schema-kit/ng/helm` | Componentes Spartan (helm) embutidos na lib (`helm/index.ts`) |
12
+
13
+ No `front-backoffice` a app não usa o pacote: importa o código-fonte pelos aliases do `tsconfig.json` (`@schema-kit`
14
+ e `@schema-kit/ng/helm`), o que mantém o hot reload.
15
+
16
+ ## Build e publicação
17
+
18
+ Na raiz do `front-backoffice`:
19
+
20
+ ```bash
21
+ npm run build:lib # helm:sync + ng build schema-kit → dist/schema-kit
22
+ npm run publish:lib -- --dry-run # empacota sem publicar
23
+ npm run publish:lib # build:lib + npm publish ./dist/schema-kit
24
+ ```
25
+
26
+ Antes de publicar, suba a `version` neste `package.json`: o registry recusa uma versão já publicada.
27
+
28
+ ## Dependências
29
+
30
+ Pacote externo usado pela lib ou pelo helm vai neste `package.json`:
31
+
32
+ - em `peerDependencies`, quando a app deve fornecer uma cópia única (Angular, `@spartan-ng/brain`, embla, tanstack...);
33
+ - em `dependencies`, para utilitários sem estado (`clsx`, `tailwind-merge`...). Nesse caso liste também em
34
+ `allowedNonPeerDependencies` do `ng-package.json`, senão o build recusa.