Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 25, 2026

Converts single-package project to npm workspaces monorepo and adds comprehensive examples across multiple business domains.

Structure

Before:

src/
├── data/          # 2 objects (task, contact)
├── ui/            # 3 views
└── index.ts

After:

packages/
├── core/          # @objectstack-starter/core
│   └── src/       # Original task & contact objects
└── examples/      # @objectstack-starter/examples
    └── src/
        ├── data/  # 6 new objects across 3 domains
        ├── ui/    # 6 new views
        └── *-example.ts  # Runnable demos

New Examples

E-commerce: Product (SKU, pricing, inventory) + Order (status, payments)
Blog/CMS: BlogPost (content, publishing) + Author (social integration)
CRM: Account (company management) + Opportunity (sales pipeline with kanban)

Each domain includes:

  • Typed data objects following ObjectStack Data Protocol
  • Grid/Kanban views following UI Protocol
  • Runnable example with npm run example:<domain>

Usage

npm install          # Installs both packages
npm run build        # Builds workspace
npm run example:crm  # Runs CRM pipeline demo

Packages can be imported independently:

import { taskObject } from '@objectstack-starter/core';
import { productObject, opportunityKanbanView } from '@objectstack-starter/examples';
Original prompt

帮我把这个项目改成多包项目,增加更多的例子


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits January 25, 2026 07:46
…ensive examples

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor project to support multiple packages with examples Restructure as monorepo with multi-domain examples Jan 25, 2026
Copilot AI requested a review from hotlong January 25, 2026 07:50
@xuyushun441-sys xuyushun441-sys marked this pull request as ready for review January 25, 2026 09:56
@xuyushun441-sys xuyushun441-sys merged commit 18ab64f into main Jan 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants