@promakeai/cli 0.5.5 → 0.5.7
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 +71 -71
- package/dist/index.js +251 -251
- package/dist/registry/about-page.json +3 -3
- package/dist/registry/about-section.json +4 -4
- package/dist/registry/animations.json +2 -2
- package/dist/registry/announcement-bar.json +4 -4
- package/dist/registry/api.json +1 -1
- package/dist/registry/auth-core.json +3 -3
- package/dist/registry/bento-grid-section.json +4 -4
- package/dist/registry/blog-core.json +5 -5
- package/dist/registry/blog-list-page.json +4 -4
- package/dist/registry/blog-section.json +4 -4
- package/dist/registry/cards-carousel-section.json +4 -4
- package/dist/registry/cart-drawer.json +4 -4
- package/dist/registry/cart-page.json +4 -4
- package/dist/registry/case-study-page.json +3 -3
- package/dist/registry/category-section.json +4 -4
- package/dist/registry/checkout-page.json +4 -4
- package/dist/registry/coming-soon-page-minimal.json +4 -4
- package/dist/registry/coming-soon-page.json +4 -4
- package/dist/registry/contact-info-grid.json +4 -4
- package/dist/registry/contact-page-centered.json +4 -4
- package/dist/registry/contact-page-map-overlay.json +3 -3
- package/dist/registry/contact-page-map-split.json +3 -3
- package/dist/registry/contact-page-split.json +4 -4
- package/dist/registry/contact-page.json +4 -4
- package/dist/registry/content-section.json +4 -4
- package/dist/registry/cookie-consent.json +4 -4
- package/dist/registry/cookies-page.json +3 -3
- package/dist/registry/cta-section.json +3 -3
- package/dist/registry/ecommerce-core.json +8 -8
- package/dist/registry/empty-page.json +3 -3
- package/dist/registry/faq-categorized.json +4 -4
- package/dist/registry/faq-simple.json +4 -4
- package/dist/registry/favorites-blog-block.json +1 -1
- package/dist/registry/favorites-blog-page.json +4 -4
- package/dist/registry/favorites-ecommerce-block.json +1 -1
- package/dist/registry/favorites-ecommerce-page.json +4 -4
- package/dist/registry/feature-section.json +3 -3
- package/dist/registry/featured-products.json +4 -4
- package/dist/registry/footer-detailed.json +4 -4
- package/dist/registry/footer-minimal.json +3 -3
- package/dist/registry/footer.json +3 -3
- package/dist/registry/forgot-password-page-split.json +4 -4
- package/dist/registry/forgot-password-page.json +4 -4
- package/dist/registry/google-adsense.json +4 -4
- package/dist/registry/google-map.json +2 -2
- package/dist/registry/header-centered-pill.json +4 -4
- package/dist/registry/header-ecommerce.json +4 -4
- package/dist/registry/header-mega.json +4 -4
- package/dist/registry/header-minimal.json +4 -4
- package/dist/registry/header-simple.json +3 -3
- package/dist/registry/hero-carousel.json +3 -3
- package/dist/registry/hero-cta.json +4 -4
- package/dist/registry/hero-gradient.json +4 -4
- package/dist/registry/hero-grid.json +4 -4
- package/dist/registry/hero-profile.json +3 -3
- package/dist/registry/hero.json +3 -3
- package/dist/registry/index.json +103 -103
- package/dist/registry/landing-page-app.json +3 -3
- package/dist/registry/landing-page-saas.json +3 -3
- package/dist/registry/login-page-split.json +4 -4
- package/dist/registry/login-page.json +4 -4
- package/dist/registry/logo-cloud.json +4 -4
- package/dist/registry/masonry-grid.json +3 -3
- package/dist/registry/my-orders-page.json +4 -4
- package/dist/registry/newsletter-section.json +4 -4
- package/dist/registry/order-card-compact.json +1 -1
- package/dist/registry/order-confirmation-page.json +4 -4
- package/dist/registry/order-detail-block.json +1 -1
- package/dist/registry/orders-list-block.json +1 -1
- package/dist/registry/payment-success-block.json +2 -2
- package/dist/registry/portfolio-page.json +4 -4
- package/dist/registry/post-card.json +4 -4
- package/dist/registry/post-detail-block.json +2 -2
- package/dist/registry/post-detail-page.json +4 -4
- package/dist/registry/pricing-card.json +3 -3
- package/dist/registry/pricing-page.json +4 -4
- package/dist/registry/pricing-section.json +4 -4
- package/dist/registry/privacy-page.json +3 -3
- package/dist/registry/product-card-detailed.json +4 -4
- package/dist/registry/product-card-hover.json +4 -4
- package/dist/registry/product-card.json +4 -4
- package/dist/registry/product-detail-block.json +2 -2
- package/dist/registry/product-detail-page.json +4 -4
- package/dist/registry/product-detail-section.json +4 -4
- package/dist/registry/product-quick-view.json +4 -4
- package/dist/registry/products-page.json +4 -4
- package/dist/registry/reading-progress.json +4 -4
- package/dist/registry/register-page-split.json +4 -4
- package/dist/registry/register-page.json +4 -4
- package/dist/registry/related-posts-block.json +1 -1
- package/dist/registry/related-products-block.json +2 -2
- package/dist/registry/reset-password-page-split.json +4 -4
- package/dist/registry/reset-password-page.json +4 -4
- package/dist/registry/service-card.json +1 -1
- package/dist/registry/share-buttons.json +4 -4
- package/dist/registry/skill-card.json +1 -1
- package/dist/registry/team-page.json +4 -4
- package/dist/registry/terms-page.json +3 -3
- package/dist/registry/testimonials-carousel.json +4 -4
- package/dist/registry/testimonials-grid.json +4 -4
- package/dist/registry/timeline-section.json +4 -4
- package/dist/registry/video-hero.json +4 -4
- package/dist/registry/youtube-embed.json +4 -4
- package/package.json +56 -56
- package/template/.env +6 -6
- package/template/README.md +54 -54
- package/template/eslint.config.js +41 -41
- package/template/package.json +95 -95
- package/template/public/_redirects +1 -1
- package/template/public/robots.txt +14 -14
- package/template/scripts/init-db.ts +18 -18
- package/template/src/App.tsx +19 -19
- package/template/src/components/FormField.tsx +48 -48
- package/template/src/components/FormFileInput.tsx +75 -75
- package/template/src/components/GoogleAnalytics.tsx +34 -34
- package/template/src/components/LanguageSwitcher.tsx +53 -53
- package/template/src/{PasswordInput.tsx → components/PasswordInput.tsx} +60 -60
- package/template/src/components/ScriptInjector.tsx +62 -62
- package/template/src/components/Stack.tsx +39 -39
- package/template/src/constants/constants.json +67 -67
- package/template/src/db/index.ts +20 -20
- package/template/src/db/provider.tsx +78 -78
- package/template/src/db/schema.json +258 -258
- package/template/src/db/types.ts +195 -195
- package/template/src/hooks/use-debounced-value.ts +12 -12
- package/template/src/lang/index.ts +90 -90
- package/template/src/lib/api.ts +345 -345
- package/template/src/lib/env.ts +19 -19
- package/template/src/router.tsx +14 -14
- package/template/src/vite-env.d.ts +1 -1
- package/template/vite.config.ts +64 -64
package/README.md
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
# @promakeai/cli
|
|
2
|
-
|
|
3
|
-
Modular React template CLI (like shadcn/ui). Create React projects and add feature modules incrementally. Copies code directly into projects rather than installing as dependencies.
|
|
4
|
-
|
|
5
|
-
## Quick Start
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
# Install globally
|
|
9
|
-
npm install -g @promakeai/cli
|
|
10
|
-
|
|
11
|
-
# Create a new project
|
|
12
|
-
promake create my-app --preset ecommerce --pm bun
|
|
13
|
-
|
|
14
|
-
# Add modules to existing project
|
|
15
|
-
promake add hero product-card
|
|
16
|
-
|
|
17
|
-
# Theme customization
|
|
18
|
-
promake theme --preset blue --radius medium
|
|
19
|
-
|
|
20
|
-
# Health check
|
|
21
|
-
promake doctor
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## Commands
|
|
25
|
-
|
|
26
|
-
| Command | Description |
|
|
27
|
-
|---------|-------------|
|
|
28
|
-
| `promake create <name>` | Scaffold a new React project |
|
|
29
|
-
| `promake add <items...>` | Add modules, components, or pages |
|
|
30
|
-
| `promake remove <modules...>` | Remove installed modules |
|
|
31
|
-
| `promake sync` | Install missing modules from promake.json |
|
|
32
|
-
| `promake theme` | Configure theme (colors, radius, fonts) |
|
|
33
|
-
| `promake list` | Browse available modules |
|
|
34
|
-
| `promake doctor` | Analyze project for issues |
|
|
35
|
-
| `promake init` | Initialize promake.json |
|
|
36
|
-
| `promake zip / unzip` | Archive utilities |
|
|
37
|
-
|
|
38
|
-
## Documentation
|
|
39
|
-
|
|
40
|
-
- **[Docs Index](./docs/index.md)** - Full documentation hub
|
|
41
|
-
- **[Workflow Guide](./docs/workflow.md)** - Branching, versioning & publish workflow
|
|
42
|
-
- **[AI Agent Guide](./docs/ai-agent-guide.md)** - Integrating modules with DB + i18n
|
|
43
|
-
|
|
44
|
-
## Data Layer
|
|
45
|
-
|
|
46
|
-
Projects generated by Promake include `@promakeai/dbreact` with a JSON schema
|
|
47
|
-
(`src/db/schema.json`) and a prebuilt SQLite database (`public/data/database.db`).
|
|
48
|
-
Use `@/db` hooks (`useDbList`, `useDbGet`, etc.) for data access.
|
|
49
|
-
|
|
50
|
-
## Development
|
|
51
|
-
|
|
52
|
-
```bash
|
|
53
|
-
# Install dependencies
|
|
54
|
-
bun install
|
|
55
|
-
|
|
56
|
-
# Run from source
|
|
57
|
-
bun run dev
|
|
58
|
-
|
|
59
|
-
# Build
|
|
60
|
-
bun run build
|
|
61
|
-
|
|
62
|
-
# Test
|
|
63
|
-
bun test
|
|
64
|
-
|
|
65
|
-
# Type check
|
|
66
|
-
bun run typecheck
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
## License
|
|
70
|
-
|
|
71
|
-
MIT
|
|
1
|
+
# @promakeai/cli
|
|
2
|
+
|
|
3
|
+
Modular React template CLI (like shadcn/ui). Create React projects and add feature modules incrementally. Copies code directly into projects rather than installing as dependencies.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# Install globally
|
|
9
|
+
npm install -g @promakeai/cli
|
|
10
|
+
|
|
11
|
+
# Create a new project
|
|
12
|
+
promake create my-app --preset ecommerce --pm bun
|
|
13
|
+
|
|
14
|
+
# Add modules to existing project
|
|
15
|
+
promake add hero product-card
|
|
16
|
+
|
|
17
|
+
# Theme customization
|
|
18
|
+
promake theme --preset blue --radius medium
|
|
19
|
+
|
|
20
|
+
# Health check
|
|
21
|
+
promake doctor
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Commands
|
|
25
|
+
|
|
26
|
+
| Command | Description |
|
|
27
|
+
|---------|-------------|
|
|
28
|
+
| `promake create <name>` | Scaffold a new React project |
|
|
29
|
+
| `promake add <items...>` | Add modules, components, or pages |
|
|
30
|
+
| `promake remove <modules...>` | Remove installed modules |
|
|
31
|
+
| `promake sync` | Install missing modules from promake.json |
|
|
32
|
+
| `promake theme` | Configure theme (colors, radius, fonts) |
|
|
33
|
+
| `promake list` | Browse available modules |
|
|
34
|
+
| `promake doctor` | Analyze project for issues |
|
|
35
|
+
| `promake init` | Initialize promake.json |
|
|
36
|
+
| `promake zip / unzip` | Archive utilities |
|
|
37
|
+
|
|
38
|
+
## Documentation
|
|
39
|
+
|
|
40
|
+
- **[Docs Index](./docs/index.md)** - Full documentation hub
|
|
41
|
+
- **[Workflow Guide](./docs/workflow.md)** - Branching, versioning & publish workflow
|
|
42
|
+
- **[AI Agent Guide](./docs/ai-agent-guide.md)** - Integrating modules with DB + i18n
|
|
43
|
+
|
|
44
|
+
## Data Layer
|
|
45
|
+
|
|
46
|
+
Projects generated by Promake include `@promakeai/dbreact` with a JSON schema
|
|
47
|
+
(`src/db/schema.json`) and a prebuilt SQLite database (`public/data/database.db`).
|
|
48
|
+
Use `@/db` hooks (`useDbList`, `useDbGet`, etc.) for data access.
|
|
49
|
+
|
|
50
|
+
## Development
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
# Install dependencies
|
|
54
|
+
bun install
|
|
55
|
+
|
|
56
|
+
# Run from source
|
|
57
|
+
bun run dev
|
|
58
|
+
|
|
59
|
+
# Build
|
|
60
|
+
bun run build
|
|
61
|
+
|
|
62
|
+
# Test
|
|
63
|
+
bun test
|
|
64
|
+
|
|
65
|
+
# Type check
|
|
66
|
+
bun run typecheck
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## License
|
|
70
|
+
|
|
71
|
+
MIT
|