@storifycli/cli 0.1.0 → 0.1.1
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/README.md +0 -43
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,33 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Unified CLI for developing, validating, packaging, and uploading Storify themes.
|
|
4
4
|
|
|
5
|
-
**Documentation:**
|
|
6
|
-
|
|
7
|
-
- **External developers:** [docs/theme-developer-guide/13-CLI-DEV-PREVIEW.md](../../docs/theme-developer-guide/13-CLI-DEV-PREVIEW.md)
|
|
8
|
-
- **Internal / platform team:** [docs/theme/STORIFY_CLI_DEV_PREVIEW.md](../../docs/theme/STORIFY_CLI_DEV_PREVIEW.md)
|
|
9
5
|
|
|
10
6
|
---
|
|
11
7
|
|
|
12
|
-
## Quick start
|
|
13
|
-
|
|
14
|
-
```bash
|
|
15
|
-
# 1. Build CLI (once per clone / after CLI changes)
|
|
16
|
-
cd packages/storify-cli && npm install && npm run build
|
|
17
|
-
|
|
18
|
-
# 2. Start platform services (separate terminals)
|
|
19
|
-
cd shared/backend && npm run dev # :3001
|
|
20
|
-
cd shared/storefront && npm run dev # :3004
|
|
21
|
-
cd shared/admin-central && npm run dev # :3003 (optional)
|
|
22
|
-
|
|
23
|
-
# 3. Develop theme with live storefront preview
|
|
24
|
-
cd themes/storify-templatesrap
|
|
25
|
-
npm install
|
|
26
|
-
npm run dev
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
Follow prompts: **email → password → choose store** (first run only).
|
|
30
|
-
|
|
31
|
-
---
|
|
32
8
|
|
|
33
9
|
## Install
|
|
34
10
|
|
|
@@ -121,15 +97,6 @@ storify theme dev --port 3000
|
|
|
121
97
|
|
|
122
98
|
**Startup order:** Vite starts first → dev-link PATCH → preview URLs printed.
|
|
123
99
|
|
|
124
|
-
**Preview URLs:**
|
|
125
|
-
|
|
126
|
-
| Label | Example |
|
|
127
|
-
|-------|---------|
|
|
128
|
-
| Storefront | `http://localhost:3004/demo-dev-store/` |
|
|
129
|
-
| Theme (Vite) | `http://localhost:3006` |
|
|
130
|
-
| Admin editor | `http://localhost:3003/demo-dev-store/admin/theme/edit` |
|
|
131
|
-
|
|
132
|
-
On Ctrl+C, dev link is disabled automatically.
|
|
133
100
|
|
|
134
101
|
---
|
|
135
102
|
|
|
@@ -144,13 +111,3 @@ storify theme pack
|
|
|
144
111
|
storify theme upload
|
|
145
112
|
```
|
|
146
113
|
|
|
147
|
-
---
|
|
148
|
-
|
|
149
|
-
## Development
|
|
150
|
-
|
|
151
|
-
```bash
|
|
152
|
-
cd packages/storify-cli
|
|
153
|
-
npm run dev # run CLI via tsx (development)
|
|
154
|
-
npm run build # tsup → dist/cli.js
|
|
155
|
-
npm run typecheck
|
|
156
|
-
```
|