create-x4 1.0.0 → 1.0.5
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 +54 -0
- package/dist/add-CDYQXQ73.mjs +1246 -0
- package/dist/chunk-2A4FL2KN.mjs +861 -0
- package/dist/index.mjs +5905 -6646
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -42,6 +42,7 @@ Arguments:
|
|
|
42
42
|
Options:
|
|
43
43
|
-s, --scope <scope> npm scope for packages (default: @{project-name})
|
|
44
44
|
--bundle-id <id> Reverse-domain prefix (default: com.{project-name})
|
|
45
|
+
--mobile-name <name> Mobile app name (default: main)
|
|
45
46
|
--no-mobile Exclude Expo mobile app
|
|
46
47
|
--no-desktop Exclude Electron desktop app
|
|
47
48
|
--no-marketing Exclude marketing site
|
|
@@ -56,6 +57,24 @@ Options:
|
|
|
56
57
|
-h, --help Print help
|
|
57
58
|
```
|
|
58
59
|
|
|
60
|
+
## Presets
|
|
61
|
+
|
|
62
|
+
Skip the wizard with a preset:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
# SaaS — Web + API + AI (most common)
|
|
66
|
+
bunx create-x4 my-app --preset saas --yes
|
|
67
|
+
|
|
68
|
+
# Full stack — everything included
|
|
69
|
+
bunx create-x4 my-app --preset full-stack --yes
|
|
70
|
+
|
|
71
|
+
# Landing page — Web + API + Marketing
|
|
72
|
+
bunx create-x4 my-app --preset landing --yes
|
|
73
|
+
|
|
74
|
+
# API only — Hono + tRPC server
|
|
75
|
+
bunx create-x4 my-app --preset api-only --yes
|
|
76
|
+
```
|
|
77
|
+
|
|
59
78
|
## Examples
|
|
60
79
|
|
|
61
80
|
Create with a custom npm scope:
|
|
@@ -76,6 +95,41 @@ Skip dependency installation:
|
|
|
76
95
|
bunx create-x4 my-app --no-install
|
|
77
96
|
```
|
|
78
97
|
|
|
98
|
+
Custom mobile app name:
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
bunx create-x4 my-app --mobile-name consumer
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## Adding Apps to an Existing Monorepo
|
|
105
|
+
|
|
106
|
+
Use `create-x4 add` to scaffold additional mobile or web apps into an existing x4 monorepo.
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
# Add a new mobile app
|
|
110
|
+
bunx create-x4 add mobile-app --name admin
|
|
111
|
+
|
|
112
|
+
# Add a new web app
|
|
113
|
+
bunx create-x4 add web-app --name portal
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Run from anywhere inside the monorepo. The command auto-detects the root, scope, and bundle ID.
|
|
117
|
+
|
|
118
|
+
### Options
|
|
119
|
+
|
|
120
|
+
```
|
|
121
|
+
Usage: create-x4 add <template> [options]
|
|
122
|
+
|
|
123
|
+
Templates:
|
|
124
|
+
mobile-app Expo + React Native app
|
|
125
|
+
web-app Next.js 15 app
|
|
126
|
+
|
|
127
|
+
Options:
|
|
128
|
+
--name <name> App name (kebab-case)
|
|
129
|
+
--bundle-id <id> Override bundle ID prefix (mobile only)
|
|
130
|
+
--no-install Skip dependency installation
|
|
131
|
+
```
|
|
132
|
+
|
|
79
133
|
## License
|
|
80
134
|
|
|
81
135
|
MIT
|