8000 Tags · hongrib/design.md · GitHub
[go: up one dir, main page]

Skip to content

Tags

Tags

0.3.0

Toggle 0.3.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: add token-like-ignored lint rule for silently dropped frontmatt…

…er keys (google-labs-code#105)

Closes google-labs-code#100

Add a new `token-like-ignored` lint rule that warns when a top-level YAML
key is not part of the recognized export schema and its value looks like a
design-token map (hex colors, CSS dimensions, or typography property names).
These keys are silently dropped by `design.md export`, misleading users into
thinking their color palette or type scale was exported.

- Extend `ParsedDesignSystem` with `rawValues` so the parser carries all
  raw YAML values through to the model layer
- Extend `DesignSystemState` with `unknownKeyValues` populated by `ModelHandler`
- New rule `token-like-ignored` in `linter/rules/token-like-ignored.ts`
- 10 tests covering hex color maps, font maps, dimension maps, flat scalars,
  non-token objects, nested maps, and multi-key scenarios
- Register rule in `DEFAULT_RULE_DESCRIPTORS` and re-export from public API
- Update hardcoded rule-count assertions in `types.test.ts` and `spec.test.ts`

Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>

0.2.0

Toggle 0.2.0's commit message
release: 0.2.0

0.1.1

Toggle 0.1.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
docs: update README and spec generation (google-labs-code#12)

- Replace outdated tailwind command with export command in root README
- Add spec:gen script to packages/cli/package.json
- Fix path to repo root in generate.ts so it can find docs/spec.md
- Ignore smoke-test/ and *.tgz in packages/cli/.gitignore
- Note: packages/cli/README.md is generated from root README and ignored.

0.1.0

Toggle 0.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
chore: packaging for release (google-labs-code#11)

* chore: remove unused TUI dependencies

* fix: remove debug logging and add lazy-loaded config singleton

- Remove console.log/console.error from loadSpecConfig() that corrupted
  stdout JSON output for CLI and programmatic consumers
- Introduce getSpecConfig() lazy singleton to cache YAML file reads
- Add 3 new tests: no-stdout-pollution, lazy-load validity, cache identity

Fixes Critical Blockers google-labs-code#1 and google-labs-code#2 from pre-publish analysis.

* fix: address high-risk publishing issues

- Add engines field to package.json (node >= 18)
- Add prepublishOnly script to enforce build before publish
- Add Node.js smoke test to CI workflow
- Clean up unused SPEC_VERSION import in test

* fix: derive version from package.json and simplify spec.md resolution

Version:
- Create src/version.ts that reads ../package.json using import.meta.url
- Path is stable across source, bundle, installed, and npx contexts
  because npm always includes package.json in the published tarball
- Replace hardcoded '0.1.0' in index.ts with dynamic VERSION import
- Add 3 tests: matches package.json, valid semver, not fallback

spec.md path resolution:
- Reduce 5 shotgun candidate paths to 2 deterministic strategies:
  1. Bundle path: ./spec.md (build copies it alongside entry points)
  2. Dev path: ../../../../../docs/spec.md (relative to source)
- Add explicit specPath parameter for callers who know the path
- Update build script to copy spec.md to both dist/ and dist/linter/
- Add 3 tests: consistency, content length, explicit path contract

* fix: pre-publish hardening — 5 items

1. Move build-only deps to devDependencies (keep zod for type compat)
   - citty, mdast, remark-*, unified, unist-util-visit, yaml all bundled
   - Zero runtime require() calls to any npm dependency
2. Add 'designmd' bin alias for Windows shell compatibility
   - cmd.exe confuses .md extension with file association
3. Add ./package.json to exports map
   - Prevents ERR_PACKAGE_PATH_NOT_EXPORTED in strict ESM bundlers
4. Remove stale @types/react from devDependencies
5. Add tarball smoke test to CI workflow
   - Packs, installs in clean dir, runs CLI + programmatic import
   - Catches 'works in monorepo, breaks when installed' bugs
0