-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor #2
Changes from all commits
65a0013
d56e280
6fc8277
17d076a
e3111b0
cc7340d
63f8859
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| --- | ||
| '@ciscode/ui-chart-kit': minor | ||
| --- | ||
|
|
||
| Initial release of @ciscode/ui-chart-kit v0.1.0. | ||
|
|
||
| - ChartDataPoint, ChartDataset, and ChartTheme type contracts | ||
| - buildChartConfig utility mapping typed data to Chart.js config | ||
| - BarChart component with stacked and horizontal support | ||
| - LineChart component with smooth curve support | ||
| - AreaChart component with fill at 20% opacity and stacked support | ||
| - All components responsive with configurable height |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "servers": { | ||
| "github": { | ||
| "command": "npx", | ||
| "args": ["-y", "@modelcontextprotocol/server-github"] | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,44 +1,170 @@ | ||||||
| # React TypeScript DeveloperKit (Template) | ||||||
| # @ciscode/ui-chart-kit | ||||||
|
|
||||||
| Template repository for building reusable React TypeScript **npm libraries** | ||||||
| (components + hooks + utilities). | ||||||
| Typed React chart components (Bar, Line, Area) built on Chart.js. | ||||||
| Pass data and a theme — get a fully configured, responsive chart. No raw Chart.js options required. | ||||||
|
|
||||||
| ## What you get | ||||||
| ## Installation | ||||||
|
|
||||||
| - ESM + CJS + Types build (tsup) | ||||||
| - Vitest testing | ||||||
| - ESLint + Prettier (flat config) | ||||||
| - Changesets (manual release flow, no automation PR) | ||||||
| - Husky (pre-commit + pre-push) | ||||||
| - Enforced public API via `src/index.ts` | ||||||
| - Dependency-free styling (Tailwind-compatible by convention only) | ||||||
| - `react` and `react-dom` as peerDependencies | ||||||
| ```bash | ||||||
| npm install @ciscode/ui-chart-kit | ||||||
| ``` | ||||||
|
|
||||||
| ## Package structure | ||||||
| ### Peer dependencies | ||||||
|
|
||||||
| - `src/components` – reusable UI components | ||||||
| - `src/hooks` – reusable React hooks | ||||||
| - `src/utils` – framework-agnostic utilities | ||||||
| - `src/index.ts` – **only public API** (no deep imports allowed) | ||||||
| | Package | Version | | ||||||
| | ----------- | ------- | | ||||||
| | `react` | ≥ 18 | | ||||||
| | `react-dom` | ≥ 18 | | ||||||
|
|
||||||
| Anything not exported from `src/index.ts` is considered private. | ||||||
| `chart.js` and `react-chartjs-2` are bundled — you do **not** need to install them separately. | ||||||
|
||||||
| `chart.js` and `react-chartjs-2` are bundled — you do **not** need to install them separately. | |
| `chart.js` and `react-chartjs-2` are installed automatically as dependencies — you do **not** need to install them separately. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding
.vscode/mcp.jsonhardcodes a local editor/MCP setup that runsnpx -y @modelcontextprotocol/server-github. Committing this can create an unexpected supply-chain execution path for anyone opening the workspace. Prefer documenting optional MCP setup in CONTRIBUTING/README and keeping editor-specific config out of the repo (or at least require explicit opt-in).