Skip to content

Commit 1abdd50

Browse files
committed
feat: add Tailwind plugin and selective component imports
- Add Tailwind CSS plugin at @nexcraft/forge/plugin with semantic utilities and design tokens - Add selective component imports for tree-shaking: button, input, checkbox, select, alert, card, modal - Create comprehensive documentation for both features - Update package.json exports with new import paths
1 parent 37d18e0 commit 1abdd50

15 files changed

Lines changed: 1936 additions & 4 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Changesets Release (Manual Stub)
2+
3+
on:
4+
# Manual trigger to test or run Changesets publish
5+
workflow_dispatch:
6+
# Optional: enable automatic publish on main once Changesets is set up
7+
# push:
8+
# branches: [ main ]
9+
10+
permissions:
11+
contents: write
12+
packages: write
13+
14+
jobs:
15+
release:
16+
name: Publish Changed Packages via Changesets
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Setup Node
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 20
28+
registry-url: https://registry.npmjs.org
29+
30+
- name: Install dependencies
31+
run: npm ci
32+
33+
- name: Build (workspaces or single)
34+
run: |
35+
npm run build --workspaces || npm run build
36+
37+
- name: Publish with Changesets
38+
env:
39+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
40+
run: npx changeset publish
41+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Storybook AI Panel (Placeholder)
2+
3+
This directory will contain a local Storybook addon that renders entries from for the active component, with copyable Web/React/SSR examples.
4+
5+
Enable later by adding the addon path to once implemented.

ai-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"manifestVersion": "1.0.0",
33
"package": "@nexcraft/forge",
4-
"generatedAt": "2025-09-12T03:59:36.252Z",
4+
"generatedAt": "2025-09-14T02:19:32.237Z",
55
"components": []
66
}

ai-tools/react/.gitkeep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

docs/ai-manifest.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# AI Manifest
2+
3+
The AI Manifest (ai-manifest.json) is a machine-readable index of Forge components used by AI tools to generate correct, accessible, and performant code.
4+
5+
## Contents
6+
- Components: tag, category, props (type/required/default), events (name/detail), slots
7+
- A11y patterns and design token references
8+
- Examples: Web Components, React, SSR fallback
9+
10+
## Build & Location
11+
- Generated during npm run build by scripts/generate-ai-manifest.js
12+
- Output: ai-manifest.json (repo root) and dist/ai-manifest.json
13+
14+
## Validation
15+
- Run npm run validate:ai for basic shape validation
16+
- CI can enforce schema checks once stricter validation is added
17+
18+
## Contributing
19+
- Add or update examples under docs/components/<component>.md or examples/<tag>/
20+
- Keep prop types/enums accurate via TypeScript declarations; the generator prefers dist/*.d.ts
21+
- For SSR, ensure ADR-018 fallback patterns are included in examples

0 commit comments

Comments
 (0)