oneie 3.6.7 → 3.6.11
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/.claude/agents/agent-backend.md +83 -0
- package/.claude/agents/agent-designer.md +97 -0
- package/.claude/agents/agent-director.md +118 -7
- package/.claude/agents/agent-documenter.md +93 -0
- package/.claude/agents/agent-frontend.md +96 -0
- package/.claude/agents/agent-ops.md +182 -25
- package/.claude/agents/agent-problem-solver.md +166 -0
- package/.claude/agents/agent-quality.md +127 -0
- package/.claude/commands/build.md +293 -0
- package/.claude/commands/cascade.md +231 -127
- package/.claude/commands/mcp-toggle.md +93 -0
- package/.claude/commands/one.md +198 -116
- package/.claude/commands/plan.md +394 -80
- package/.claude/commands/release.md +41 -19
- package/.claude/commands/server.md +2 -0
- package/.claude/hooks/root-cleanup.py +75 -0
- package/.claude/skills/INDEX.md +523 -0
- package/.claude/skills/REGISTRY.md +529 -0
- package/.claude/skills/agent-backend-create-mutation.md +319 -0
- package/.claude/skills/agent-designer-create-wireframe.md +341 -0
- package/.claude/skills/agent-frontend-create-page.md +413 -0
- package/.claude/skills/agents/README.md +238 -0
- package/dist/clone-web.js +1 -1
- package/dist/clone-web.js.map +1 -1
- package/folders.yaml +1 -1
- package/one/.obsidian/workspace.json +38 -38
- package/one/connections/api/queries-reference.md +842 -0
- package/one/connections/api-reference.md +1011 -0
- package/one/connections/integration-examples.md +875 -0
- package/one/connections/integration-guide.md +869 -0
- package/one/connections/integration-phase2.md +736 -0
- package/one/events/API_ROUTES_FIXES_SUMMARY.md +262 -0
- package/one/events/ASTRO-INTEGRATION-EXAMPLES.md +636 -0
- package/one/events/BEFORE_AFTER_COMPARISON.md +960 -0
- package/one/events/CONNECTIONS_DEMO.md +501 -0
- package/one/events/DELIVERABLES.md +432 -0
- package/one/events/DEMO-GROUPS-PAGE.md +392 -0
- package/one/events/DEMO-TESTING-SUMMARY.md +518 -0
- package/one/events/DEMO_COMPONENTS.md +487 -0
- package/one/events/DEMO_HOOKS_INDEX.md +334 -0
- package/one/events/DEMO_INFRASTRUCTURE.md +905 -0
- package/one/events/DEMO_INFRASTRUCTURE_SUMMARY.md +570 -0
- package/one/events/DEMO_INTEGRATION_CHECKLIST.md +431 -0
- package/one/events/DEMO_QUICK_REFERENCE.md +441 -0
- package/one/events/DEMO_SETUP.md +476 -0
- package/one/events/EFFECT_TS_API_PATTERN.md +478 -0
- package/one/events/GROUPS_DEMO_IMPLEMENTATION.md +414 -0
- package/one/events/HOOKS-DEMO.md +441 -0
- package/one/events/ONTOLOGY-HOOKS-README.md +700 -0
- package/one/events/ONTOLOGY-INTEGRATION-MANIFEST.md +365 -0
- package/one/events/QA-CHECKLIST.md +674 -0
- package/one/events/QUICK-START-ONTOLOGY.md +408 -0
- package/one/events/SEARCH_DEMO_CODE_REFERENCE.md +639 -0
- package/one/events/SEARCH_DEMO_DELIVERY.md +415 -0
- package/one/events/SEARCH_DEMO_SUMMARY.md +303 -0
- package/one/events/SEARCH_DEMO_VISUAL_GUIDE.md +381 -0
- package/one/events/TEST-PLAN-INDEX.md +346 -0
- package/one/events/TEST-PLAN.md +1417 -0
- package/one/events/TESTING-DELIVERY.txt +372 -0
- package/one/events/TRANSITIONS-QUICK-START.md +141 -0
- package/one/events/TYPESCRIPT_FIXES.md +152 -0
- package/one/events/TYPESCRIPT_FIXES_COMPLETE.txt +412 -0
- package/one/events/TYPESCRIPT_FIXES_INDEX.md +341 -0
- package/one/events/VIEW-TRANSITIONS.md +428 -0
- package/one/events/backend-integration-tests.md +606 -0
- package/one/events/backend-structure-diagram.txt +393 -0
- package/one/events/backend-structure-summary.txt +269 -0
- package/one/events/cloudflare-pages-infrastructure-setup.md +264 -0
- package/one/events/convex-analysis-index.md +304 -0
- package/one/events/convex-structure-analysis.md +700 -0
- package/one/events/design-spec-complete.md +208 -0
- package/one/events/ontology-test-examples.md +562 -0
- package/one/events/phase1-backend-implementation-complete.md +518 -0
- package/one/events/test-dashboard.md +345 -0
- package/one/events/test-index.md +361 -0
- package/one/events/test-report-ontology.md +582 -0
- package/one/events/testing-summary.md +344 -0
- package/one/groups/features.md +2878 -0
- package/one/groups/strategy copy.md +869 -0
- package/one/knowledge/backend-api-reference.md +710 -0
- package/one/knowledge/documentation-summary.md +285 -0
- package/one/knowledge/lessons-learned.md +294 -4
- package/one/knowledge/ontology-visual-guide.md +360 -0
- package/one/knowledge/ontology.md +9 -17
- package/one/things/demo-accessibility-animations.md +999 -0
- package/one/things/demo-components.md +1304 -0
- package/one/things/demo-design-summary.md +629 -0
- package/one/things/demo-design-system.md +919 -0
- package/one/things/demo-page-layouts.md +989 -0
- package/one/things/designs/accessibility-audit.md +790 -0
- package/one/things/designs/component-specifications.md +757 -0
- package/one/things/designs/design-overview.md +318 -0
- package/one/things/designs/design-tokens.md +414 -0
- package/one/things/designs/wireframes-dashboard.md +653 -0
- package/one/things/docs/api-requests.md +923 -0
- package/one/things/features/0 All Features.md +2 -0
- package/one/things/implementation/backend-guide.md +412 -0
- package/one/things/plans/2-backend-agnostic-frontend.md +11 -8
- package/one/things/plans/ai-elements.md +1259 -0
- package/one/things/plans/ai-integration.md +947 -0
- package/one/things/plans/ai-sdk.md +761 -0
- package/one/things/plans/app.md +1 -1
- package/one/things/plans/architecture-summary.md +283 -0
- package/one/things/plans/async-ai-agents.md +215 -0
- package/one/things/plans/backend-agnostic-frontend.md +11 -6
- package/one/things/plans/backend-cleanup-quickstart.md +346 -0
- package/one/things/plans/backend-ontology-conformance.md +416 -0
- package/one/things/plans/backend-status.md +541 -0
- package/one/things/plans/backend-structure.md +799 -0
- package/one/things/plans/backend-target-structure.md +438 -0
- package/one/things/plans/backend.md +1133 -0
- package/one/things/plans/better-auth-any-backend.md +11 -11
- package/one/things/plans/cli-updates-required.md +280 -0
- package/one/things/plans/complete-step-by-step.md +1302 -0
- package/one/things/plans/convex-agents.md +1005 -0
- package/one/things/plans/deployment-architecture.md +426 -0
- package/one/things/plans/development-plan.md +1220 -0
- package/one/things/plans/effect.md +808 -48
- package/one/things/plans/integrate-frontend-and-backend.md +579 -0
- package/one/things/plans/mcp-clear-context-prompt.md +60 -0
- package/one/things/plans/mcp-simple.md +228 -0
- package/one/things/plans/one.md +8 -7
- package/one/things/plans/ontology-6-dimensions.md +20 -14
- package/one/things/plans/quick-wins.md +1273 -0
- package/one/things/plans/readme-backend-cleanup.md +361 -0
- package/one/things/plans/separate-demo.md +830 -0
- package/one/things/plans/separate.md +3 -3
- package/one/things/plans/sequence.md +1897 -0
- package/one/things/plans/sync-checklist.md +321 -0
- package/one/things/plans/unified-implementation-plan.md +3 -3
- package/one/things/plans/update-demos.md +513 -0
- package/package.json +1 -1
- package/.claude/agents/backend-specialist.md +0 -169
- package/.claude/agents/designer.md +0 -216
- package/.claude/agents/frontend-specialist.md +0 -236
- package/.claude/commands/done.md +0 -35
- package/.claude/commands/infer.md +0 -138
- package/.claude/commands/next.md +0 -53
- package/.claude/commands/one copy.md +0 -565
- package/.claude/commands/one-template.md +0 -106
- package/.claude/commands/one-v1.md +0 -609
- package/.claude/hooks/__pycache__/knowledge-post.cpython-313.pyc +0 -0
- package/.claude/hooks/__pycache__/knowledge-pre.cpython-313.pyc +0 -0
- package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
- package/one/groups/nine-padel-customers.md +0 -138
- package/one/groups/nine-padel-data-structure.md +0 -167
- package/one/groups/nine-padel-ontology-specification.md +0 -359
- package/one/groups/nine-padel-ontology.md +0 -143
- package/one/groups/nine-padel-strategy.md +0 -234
- package/one/groups/nine-padel.md +0 -211
- package/one/groups/nine-padle-contents.baked.md +0 -1252
- package/one/groups/nine-padle-contents.md +0 -6
- package/one/things/features/1-1-agent-prompts/design.md +0 -470
- package/one/things/features/1-1-agent-prompts/tests.md +0 -264
- package/one/things/features/1-2-yaml-orchestrator/design.md +0 -497
- package/one/things/features/1-2-yaml-orchestrator/tests.md +0 -227
- package/one/things/features/1-3-event-coordination/design.md +0 -544
- package/one/things/features/1-3-event-coordination/tests.md +0 -223
- package/one/things/features/1-4-knowledge-management/design.md +0 -609
- package/one/things/features/1-4-knowledge-management/tests.md +0 -195
- package/one/things/features/1-5-quality-loops/design.md +0 -797
- package/one/things/features/1-5-quality-loops/tests.md +0 -212
- package/one/things/features/1-6-numbering-structure/design.md +0 -610
- package/one/things/features/1-6-numbering-structure/tests.md +0 -213
- package/one/things/features/dataprovider-interface/1-tests.md +0 -1522
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
# ONE Platform Deployment Architecture
|
|
2
|
+
|
|
3
|
+
## Current vs. New Architecture
|
|
4
|
+
|
|
5
|
+
### Current Architecture (Single Deployment)
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
9
|
+
│ /web (development) │
|
|
10
|
+
│ - Full features │
|
|
11
|
+
│ - localhost:4321 │
|
|
12
|
+
└──────────────────┬──────────────────────────────────────────┘
|
|
13
|
+
│
|
|
14
|
+
↓ rsync
|
|
15
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
16
|
+
│ apps/one/web │
|
|
17
|
+
│ - Assembly for deployment │
|
|
18
|
+
└──────────────────┬──────────────────────────────────────────┘
|
|
19
|
+
│
|
|
20
|
+
↓ wrangler deploy
|
|
21
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
22
|
+
│ Cloudflare Pages: web.one.ie │
|
|
23
|
+
│ - Single deployment │
|
|
24
|
+
│ - Everything goes here │
|
|
25
|
+
└─────────────────────────────────────────────────────────────┘
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**Problem:** Development code deployed directly to production
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
### New Architecture (Multi-Target Deployment)
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
┌──────────────────────────────────────────────────────────────┐
|
|
36
|
+
│ /web (DEVELOPMENT) │
|
|
37
|
+
│ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ │
|
|
38
|
+
│ - Single source of truth │
|
|
39
|
+
│ - Full ONE Platform features │
|
|
40
|
+
│ - All admin tools and experimental features │
|
|
41
|
+
│ - Development environment (.env.local) │
|
|
42
|
+
│ - Test: bun run dev (localhost:4321) │
|
|
43
|
+
└────────────────────┬─────────────────────────────────────────┘
|
|
44
|
+
│
|
|
45
|
+
┌───────────┴───────────┐
|
|
46
|
+
↓ ↓
|
|
47
|
+
┌─────────────────────┐ ┌──────────────────────┐
|
|
48
|
+
│ TARGET 1: MAIN │ │ TARGET 2: DEMO │
|
|
49
|
+
│ ━━━━━━━━━━━━━━━━━ │ │ ━━━━━━━━━━━━━━━━━━ │
|
|
50
|
+
│ apps/oneie/web │ │ apps/one/web │
|
|
51
|
+
│ (.env.main) │ │ (.env.demo) │
|
|
52
|
+
│ │ │ │
|
|
53
|
+
│ Features: │ │ Features: │
|
|
54
|
+
│ ✅ Full platform │ │ ⬜ Starter template │
|
|
55
|
+
│ ✅ Marketing │ │ ⬜ Minimal UI │
|
|
56
|
+
│ ✅ Backend ON │ │ ⬜ Backend OFF │
|
|
57
|
+
│ ⬜ Admin tools OFF │ │ ⬜ No admin │
|
|
58
|
+
└─────────┬───────────┘ └──────────┬───────────┘
|
|
59
|
+
│ │
|
|
60
|
+
↓ ↓
|
|
61
|
+
┌───────────────────┐ ┌────────────────────────────────┐
|
|
62
|
+
│ Cloudflare: oneie│ │ Cloudflare: one │
|
|
63
|
+
│ ━━━━━━━━━━━━━━━ │ │ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ │
|
|
64
|
+
│ one.ie │ │ demo.one.ie │
|
|
65
|
+
│ (main website) │ │ (live demo) │
|
|
66
|
+
└───────────────────┘ └─────────────┬──────────────────┘
|
|
67
|
+
│
|
|
68
|
+
↓ git push
|
|
69
|
+
┌──────────────────────────────────┐
|
|
70
|
+
│ GitHub: one-ie/one │
|
|
71
|
+
│ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ │
|
|
72
|
+
│ Starter template repo │
|
|
73
|
+
└─────────────┬────────────────────┘
|
|
74
|
+
│
|
|
75
|
+
↓
|
|
76
|
+
┌──────────────────────────────────┐
|
|
77
|
+
│ npm: oneie package │
|
|
78
|
+
│ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ │
|
|
79
|
+
│ npx oneie │
|
|
80
|
+
│ Downloads from one-ie/one │
|
|
81
|
+
└──────────────────────────────────┘
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## The Three Outputs
|
|
87
|
+
|
|
88
|
+
### 1. Main Website (one.ie)
|
|
89
|
+
|
|
90
|
+
**Purpose:** Full platform + marketing
|
|
91
|
+
|
|
92
|
+
**Source:** `/web`, `/one`, `/.claude` → `apps/oneie/` → `one-ie/oneie` → Cloudflare `oneie`
|
|
93
|
+
|
|
94
|
+
**Environment:** `.env.main`
|
|
95
|
+
```bash
|
|
96
|
+
ORG_NAME=one
|
|
97
|
+
ORG_WEBSITE=https://one.ie
|
|
98
|
+
ONE_BACKEND=on
|
|
99
|
+
ENABLE_ADMIN_FEATURES=false
|
|
100
|
+
SHOW_FULL_NAVIGATION=true
|
|
101
|
+
SITE_TYPE=main
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
**Features:**
|
|
105
|
+
- ✅ Complete navigation
|
|
106
|
+
- ✅ All marketing pages
|
|
107
|
+
- ✅ Backend integration (Convex)
|
|
108
|
+
- ✅ Authentication
|
|
109
|
+
- ⬜ Admin panel (not exposed to public)
|
|
110
|
+
- ⬜ Experimental features
|
|
111
|
+
|
|
112
|
+
**Audience:** Public visitors, potential customers
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
### 2. Demo Website (demo.one.ie)
|
|
117
|
+
|
|
118
|
+
**Purpose:** Live starter template
|
|
119
|
+
|
|
120
|
+
**Source:** `/web`, `/one`, `/.claude` → `apps/one/` → `one-ie/one` → Cloudflare `one`
|
|
121
|
+
|
|
122
|
+
**Environment:** `.env.demo`
|
|
123
|
+
```bash
|
|
124
|
+
ORG_NAME=one
|
|
125
|
+
ORG_WEBSITE=https://demo.one.ie
|
|
126
|
+
ONE_BACKEND=off
|
|
127
|
+
ENABLE_ADMIN_FEATURES=false
|
|
128
|
+
SHOW_FULL_NAVIGATION=false
|
|
129
|
+
SITE_TYPE=demo
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
**Features:**
|
|
133
|
+
- ✅ Minimal navigation (Blog + License only)
|
|
134
|
+
- ✅ GetStartedPrompt component
|
|
135
|
+
- ⬜ Backend disabled (frontend-only)
|
|
136
|
+
- ⬜ No authentication required
|
|
137
|
+
- ⬜ Clean starter experience
|
|
138
|
+
|
|
139
|
+
**Audience:**
|
|
140
|
+
- Developers visiting to see the demo
|
|
141
|
+
- Users who want to try before downloading
|
|
142
|
+
- Matches exactly what they'll get from `npx oneie`
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
### 3. Downloadable (npx oneie)
|
|
147
|
+
|
|
148
|
+
**Purpose:** Local development starter
|
|
149
|
+
|
|
150
|
+
**Source:** `one-ie/one` repository
|
|
151
|
+
|
|
152
|
+
**Distribution:**
|
|
153
|
+
1. **Via npm:** `npx oneie` clones entire `one-ie/one` repo
|
|
154
|
+
2. **Via git:** `git clone one-ie/one`
|
|
155
|
+
|
|
156
|
+
**What users get:**
|
|
157
|
+
- `web/` - Complete website code (same as demo.one.ie)
|
|
158
|
+
- `one/` - Full documentation
|
|
159
|
+
- `.claude/` - Claude configuration
|
|
160
|
+
- Complete starter kit with all resources
|
|
161
|
+
|
|
162
|
+
**Same as:** demo.one.ie (plus docs and Claude config)
|
|
163
|
+
|
|
164
|
+
**Audience:** Developers starting new projects
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
## Release Workflow
|
|
169
|
+
|
|
170
|
+
### Development Workflow
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
# 1. Develop with full features
|
|
174
|
+
cd /web
|
|
175
|
+
bun run dev
|
|
176
|
+
# → localhost:4321 with full ONE Platform
|
|
177
|
+
|
|
178
|
+
# 2. Make changes
|
|
179
|
+
# Edit components, add features, etc.
|
|
180
|
+
|
|
181
|
+
# 3. Test locally with different configs
|
|
182
|
+
cp .env.main .env.local
|
|
183
|
+
bun run build && bun run preview
|
|
184
|
+
# → Test main site experience
|
|
185
|
+
|
|
186
|
+
cp .env.demo .env.local
|
|
187
|
+
bun run build && bun run preview
|
|
188
|
+
# → Test demo/starter experience
|
|
189
|
+
|
|
190
|
+
# 4. Commit changes
|
|
191
|
+
git add .
|
|
192
|
+
git commit -m "feat: new feature"
|
|
193
|
+
git push
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Release Workflow
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
# From workspace root
|
|
200
|
+
|
|
201
|
+
# Option A: Release main site only
|
|
202
|
+
./scripts/release.sh patch main
|
|
203
|
+
# → Syncs /web, /one, /.claude to apps/oneie/
|
|
204
|
+
# → Pushes apps/oneie/ to one-ie/oneie
|
|
205
|
+
# → Builds apps/oneie/web with .env.main
|
|
206
|
+
# → Deploys to one.ie
|
|
207
|
+
|
|
208
|
+
# Option B: Release demo site only
|
|
209
|
+
./scripts/release.sh patch demo
|
|
210
|
+
# → Syncs /web, /one, /.claude to apps/one/
|
|
211
|
+
# → Pushes apps/one/ to one-ie/one
|
|
212
|
+
# → Builds apps/one/web with .env.demo
|
|
213
|
+
# → Deploys to demo.one.ie
|
|
214
|
+
# → Users can clone via npx oneie
|
|
215
|
+
|
|
216
|
+
# Option C: Release both (recommended)
|
|
217
|
+
./scripts/release.sh patch main && ./scripts/release.sh patch demo
|
|
218
|
+
# → Updates both deployments
|
|
219
|
+
# → Main: one-ie/oneie → one.ie
|
|
220
|
+
# → Demo: one-ie/one → demo.one.ie + npx oneie
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
## Directory Structure
|
|
226
|
+
|
|
227
|
+
```
|
|
228
|
+
ONE/ # Local workspace
|
|
229
|
+
│
|
|
230
|
+
├── web/ # Development website (single source of truth)
|
|
231
|
+
│ ├── .env.local # Development config (full features)
|
|
232
|
+
│ ├── .env.main # Main site config (for one.ie)
|
|
233
|
+
│ ├── .env.demo # Demo config (for demo.one.ie)
|
|
234
|
+
│ ├── src/
|
|
235
|
+
│ │ ├── config/
|
|
236
|
+
│ │ │ └── features.ts # Feature flags
|
|
237
|
+
│ │ ├── components/
|
|
238
|
+
│ │ ├── pages/
|
|
239
|
+
│ │ └── ...
|
|
240
|
+
│ └── package.json
|
|
241
|
+
│
|
|
242
|
+
├── one/ # Documentation (single source of truth)
|
|
243
|
+
│ ├── things/
|
|
244
|
+
│ ├── connections/
|
|
245
|
+
│ ├── events/
|
|
246
|
+
│ ├── knowledge/
|
|
247
|
+
│ └── ...
|
|
248
|
+
│
|
|
249
|
+
├── .claude/ # Claude config (single source of truth)
|
|
250
|
+
│ ├── agents/
|
|
251
|
+
│ ├── commands/
|
|
252
|
+
│ └── hooks/
|
|
253
|
+
│
|
|
254
|
+
├── apps/ # Assembly targets
|
|
255
|
+
│ ├── oneie/ # Main site (full structure)
|
|
256
|
+
│ │ ├── web/ # Synced from /web
|
|
257
|
+
│ │ ├── one/ # Synced from /one
|
|
258
|
+
│ │ ├── .claude/ # Synced from /.claude
|
|
259
|
+
│ │ └── package.json
|
|
260
|
+
│ │ → Pushed to one-ie/oneie → Deployed to one.ie
|
|
261
|
+
│ │
|
|
262
|
+
│ └── one/ # Demo site (full structure)
|
|
263
|
+
│ ├── web/ # Synced from /web
|
|
264
|
+
│ ├── one/ # Synced from /one
|
|
265
|
+
│ ├── .claude/ # Synced from /.claude
|
|
266
|
+
│ └── package.json
|
|
267
|
+
│ → Pushed to one-ie/one → Deployed to demo.one.ie
|
|
268
|
+
│
|
|
269
|
+
├── cli/ # npm package
|
|
270
|
+
│ └── index.js # Downloads entire one-ie/one repo
|
|
271
|
+
│
|
|
272
|
+
└── scripts/
|
|
273
|
+
└── release.sh # Multi-target release script
|
|
274
|
+
|
|
275
|
+
GitHub Repositories (full structure):
|
|
276
|
+
|
|
277
|
+
one-ie/oneie/ # Main site repo
|
|
278
|
+
├── web/ # Website code
|
|
279
|
+
├── one/ # Documentation
|
|
280
|
+
└── .claude/ # Claude config
|
|
281
|
+
|
|
282
|
+
one-ie/one/ # Demo/starter repo (what npx oneie clones)
|
|
283
|
+
├── web/ # Website code
|
|
284
|
+
├── one/ # Documentation
|
|
285
|
+
└── .claude/ # Claude config
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
---
|
|
289
|
+
|
|
290
|
+
## Key Benefits
|
|
291
|
+
|
|
292
|
+
### ✅ Single Codebase
|
|
293
|
+
- Develop in one place (`/web`)
|
|
294
|
+
- No duplicate code to maintain
|
|
295
|
+
- Changes propagate to both sites
|
|
296
|
+
|
|
297
|
+
### ✅ Environment-Based
|
|
298
|
+
- Simple `.env` files control features
|
|
299
|
+
- No complex build configuration
|
|
300
|
+
- Easy to test both versions locally
|
|
301
|
+
|
|
302
|
+
### ✅ Clean Separation
|
|
303
|
+
- Main site has full features
|
|
304
|
+
- Demo site is minimal starter
|
|
305
|
+
- No development artifacts in production
|
|
306
|
+
|
|
307
|
+
### ✅ Consistent User Experience
|
|
308
|
+
- `npx oneie` downloads exact same code as web.one.ie
|
|
309
|
+
- Users can try online before downloading
|
|
310
|
+
- No surprises when they clone locally
|
|
311
|
+
|
|
312
|
+
### ✅ Independent Deployments
|
|
313
|
+
- Deploy main site without affecting demo
|
|
314
|
+
- Update demo without touching main site
|
|
315
|
+
- Test in production safely
|
|
316
|
+
|
|
317
|
+
### ✅ Version Control
|
|
318
|
+
- Each site tracks its own history
|
|
319
|
+
- `one-ie/one` for main site
|
|
320
|
+
- `one-ie/oneie` for demo/starter
|
|
321
|
+
- Clean git history per deployment
|
|
322
|
+
|
|
323
|
+
---
|
|
324
|
+
|
|
325
|
+
## Comparison to Current Setup
|
|
326
|
+
|
|
327
|
+
| Aspect | Before | After |
|
|
328
|
+
|--------|--------|-------|
|
|
329
|
+
| **Development** | `/web` | `/web` (unchanged) |
|
|
330
|
+
| **Main Site** | ❌ N/A | ✅ `one.ie` (full platform) |
|
|
331
|
+
| **Demo Site** | ❌ N/A or mixed | ✅ `demo.one.ie` (starter only) |
|
|
332
|
+
| **Downloadable** | ❌ Mixed with main | ✅ `one-ie/one` (clean starter) |
|
|
333
|
+
| **Deployments** | 1 (everything) | 2 (main + demo) |
|
|
334
|
+
| **Repositories** | 1 (`one-ie/one`) | 2 (`one-ie/one` + `one-ie/oneie`) |
|
|
335
|
+
| **Cloudflare** | 1 project | 2 projects (`oneie` + `one`) |
|
|
336
|
+
| **Feature Control** | ❌ No separation | ✅ Environment flags |
|
|
337
|
+
| **CLI Downloads** | Mixed content | Clean starter template |
|
|
338
|
+
|
|
339
|
+
---
|
|
340
|
+
|
|
341
|
+
## Implementation Checklist
|
|
342
|
+
|
|
343
|
+
### Phase 1: Setup (Week 1)
|
|
344
|
+
- [ ] Create `web/.env.main` with main site config
|
|
345
|
+
- [ ] Create `web/.env.demo` with demo config
|
|
346
|
+
- [ ] Create `web/src/config/features.ts` with feature flags
|
|
347
|
+
- [ ] Test both builds locally
|
|
348
|
+
|
|
349
|
+
### Phase 2: Infrastructure (Week 2)
|
|
350
|
+
- [ ] Create GitHub repository: `one-ie/oneie` (main site)
|
|
351
|
+
- [ ] `one-ie/one` already exists (demo/starter)
|
|
352
|
+
- [ ] Create Cloudflare project: `oneie` (for one.ie)
|
|
353
|
+
- [ ] Create Cloudflare project: `one` (for demo.one.ie)
|
|
354
|
+
- [ ] Configure custom domains
|
|
355
|
+
|
|
356
|
+
### Phase 3: Release Script (Week 3)
|
|
357
|
+
- [ ] Update `scripts/release.sh` with multi-target support
|
|
358
|
+
- [ ] Add logic to sync to `apps/oneie/`
|
|
359
|
+
- [ ] Add logic to push to `one-ie/oneie`
|
|
360
|
+
- [ ] Test sync without deployment
|
|
361
|
+
|
|
362
|
+
### Phase 4: Components (Week 3)
|
|
363
|
+
- [ ] Update components to use feature flags
|
|
364
|
+
- [ ] Gate admin features
|
|
365
|
+
- [ ] Simplify navigation for demo
|
|
366
|
+
- [ ] Test both versions
|
|
367
|
+
|
|
368
|
+
### Phase 5: Deploy (Week 4)
|
|
369
|
+
- [ ] Deploy main site: `./scripts/release.sh patch main`
|
|
370
|
+
- [ ] Verify one.ie works correctly
|
|
371
|
+
- [ ] Deploy demo site: `./scripts/release.sh patch demo`
|
|
372
|
+
- [ ] Verify demo.one.ie works correctly
|
|
373
|
+
- [ ] Verify `one-ie/one` repo updated
|
|
374
|
+
|
|
375
|
+
### Phase 6: CLI (Week 4)
|
|
376
|
+
- [ ] Update CLI to download from `one-ie/one`
|
|
377
|
+
- [ ] Test `npx oneie` downloads correct version
|
|
378
|
+
- [ ] Verify downloaded code matches demo.one.ie
|
|
379
|
+
|
|
380
|
+
---
|
|
381
|
+
|
|
382
|
+
## Quick Reference
|
|
383
|
+
|
|
384
|
+
**Develop:**
|
|
385
|
+
```bash
|
|
386
|
+
cd web && bun run dev
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
**Test main site build:**
|
|
390
|
+
```bash
|
|
391
|
+
cp web/.env.main web/.env.local && cd web && bun run build
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
**Test demo build:**
|
|
395
|
+
```bash
|
|
396
|
+
cp web/.env.demo web/.env.local && cd web && bun run build
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
**Deploy main site:**
|
|
400
|
+
```bash
|
|
401
|
+
./scripts/release.sh patch main
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
**Deploy demo site:**
|
|
405
|
+
```bash
|
|
406
|
+
./scripts/release.sh patch demo
|
|
407
|
+
```
|
|
408
|
+
|
|
409
|
+
**Deploy both:**
|
|
410
|
+
```bash
|
|
411
|
+
./scripts/release.sh patch main && ./scripts/release.sh patch demo
|
|
412
|
+
```
|
|
413
|
+
|
|
414
|
+
**URLs:**
|
|
415
|
+
- Main: https://one.ie
|
|
416
|
+
- Demo: https://demo.one.ie
|
|
417
|
+
- CLI: npx oneie (downloads from one-ie/one)
|
|
418
|
+
|
|
419
|
+
**Repositories:**
|
|
420
|
+
- Main: https://github.com/one-ie/oneie (main website)
|
|
421
|
+
- Demo: https://github.com/one-ie/one (starter template)
|
|
422
|
+
- CLI: https://github.com/one-ie/cli (downloads from one-ie/one)
|
|
423
|
+
|
|
424
|
+
---
|
|
425
|
+
|
|
426
|
+
**Result:** Clean separation between development, main site, and demo/starter template with single codebase.
|