@kazee-ds/init 0.1.8 → 0.1.9
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 +4 -2
- package/package.json +1 -1
- package/src/content.mjs +2 -2
- package/templates/AGENTS.md +1 -1
- package/templates/consumer-lint.md +3 -3
package/README.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# @kazee-ds/init
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Version **0.1.9** pins runtime/styles **0.6.0** and lint **0.5.0**, with composition-aware agent templates. Verify publication of these prepared versions before using the registry command. Local commands target the checkout. See [release status](https://gitlab.com/kazee.indonesia/kazee-design-system/-/blob/main/docs/versions.md).
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Preview-first setup for an existing standalone React or Vue application. Preserve the application's framework, package manager and configuration. Earlier CLI releases targeted private GitLab.
|
|
6
|
+
|
|
7
|
+
From an existing application, preview with `npm exec --yes --package=@kazee-ds/init@0.1.9 -- kazee-init`; append `--apply` after reviewing the plan.
|
|
6
8
|
|
|
7
9
|
From the design-system checkout, run:
|
|
8
10
|
|
package/package.json
CHANGED
package/src/content.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { readFileSync } from 'node:fs';
|
|
2
2
|
|
|
3
|
-
export const RELEASE = Object.freeze({ framework: '0.
|
|
3
|
+
export const RELEASE = Object.freeze({ framework: '0.6.0', styles: '0.6.0', lint: '0.5.0' });
|
|
4
4
|
export const REGISTRY = 'https://registry.npmjs.org/';
|
|
5
5
|
const INIT_VERSION = JSON.parse(
|
|
6
6
|
readFileSync(new URL('../package.json', import.meta.url), 'utf8'),
|
|
@@ -15,7 +15,7 @@ export function managedRules(framework) {
|
|
|
15
15
|
).replaceAll('\r\n', '\n');
|
|
16
16
|
const other = framework === 'react' ? 'Vue' : 'React';
|
|
17
17
|
const filtered = template.replace(new RegExp(`## ${other} API\\n[\\s\\S]*?(?=\\n## |$)`), '');
|
|
18
|
-
return `${START}\n<!-- Template revision: 2026-10-
|
|
18
|
+
return `${START}\n<!-- Template revision: 2026-10-30; init ${INIT_VERSION}; ${framework} -->\n${filtered.trim()}\n${END}`;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export function installCommand(manager, framework) {
|
package/templates/AGENTS.md
CHANGED
|
@@ -22,7 +22,7 @@ MCP is a read-only reference, not an installer or validator. It needs no token a
|
|
|
22
22
|
- Import from `@kazee-ds/react` or `@kazee-ds/vue` public entry points. Do not copy package source into the application or import private build files.
|
|
23
23
|
- Do not bypass these components by importing React Aria or Reka UI directly to recreate their behavior. Keep unrelated existing integrations outside the task unchanged.
|
|
24
24
|
- Import `@kazee-ds/styles/index.css` once at the application's global CSS entry. It includes the tokens; do not add a duplicate token stylesheet.
|
|
25
|
-
-
|
|
25
|
+
- Check the installed version before styling. In versions that expose composition, pass Tailwind classes directly to public parts (for example Select.Trigger), use root className/style in React or class/style in Vue, and use the typed classNames map for compact APIs. Older versions may not forward these props. Do not target undocumented internal DOM selectors. Style application layout with application-owned wrappers.
|
|
26
26
|
- Common Button variants include `primary`, `secondary`, and `danger`; sizes are `sm`, `md`, and `lg`. Read the exact versioned contract for additional variants, icon-only and pending support. Defaults are `primary` and `md`; use `danger` for destructive actions.
|
|
27
27
|
|
|
28
28
|
## React API
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Consumer lint rules
|
|
2
2
|
|
|
3
|
-
[`@kazee-ds/eslint-config`](../packages/eslint-config) provides a reusable ESLint flat configuration.
|
|
3
|
+
[`@kazee-ds/eslint-config`](../packages/eslint-config) provides a reusable ESLint flat configuration. Prepared version `0.5.0` supports the `0.6.0` React/Vue/styles composition contract; tokens stay `0.4.4`. These versions are unpublished candidates. The preceding verified lint release is `0.4.2`. See the [version matrix](versions.md). The package targets ESLint 10 and Node 22.16 or later, with TypeScript declarations and no runtime dependencies. Adding `AGENTS.md` alone does not enable these checks.
|
|
4
4
|
|
|
5
5
|
## Rules
|
|
6
6
|
|
|
@@ -46,14 +46,14 @@ import { Button, Select } from '@kazee-ds/vue';
|
|
|
46
46
|
</template>
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
The rule rejects selected unsupported props. Coverage varies by component and version; consult installed public types rather than treating this rule as a complete API schema.
|
|
49
|
+
The rule rejects selected unsupported props. Coverage varies by component and version; consult installed public types rather than treating this rule as a complete API schema. The unpublished composition update allows root className/style (React), class/style (Vue), and typed classNames maps; earlier published versions can still reject these. Public compound parts accept their documented styling props. Framework callback, variant, accessible-name and import checks remain active. It reports diagnostics only; it does not autofix events, change application state, or rewrite imports.
|
|
50
50
|
|
|
51
51
|
## Enable in a consuming application
|
|
52
52
|
|
|
53
53
|
Configure public npm access without read credentials using the [installation guide](installation.md). Keep the application's existing ESLint configuration, parsers, plugins, package manager, and lockfile, then install:
|
|
54
54
|
|
|
55
55
|
```sh
|
|
56
|
-
npm install --save-dev --save-exact @kazee-ds/eslint-config@0.
|
|
56
|
+
npm install --save-dev --save-exact @kazee-ds/eslint-config@0.5.0
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
Merge the configuration object into the application's existing flat config, after its framework/parser setup:
|