create-projx 1.2.0 → 1.3.0
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 +26 -5
- package/dist/index.js +474 -668
- package/package.json +13 -4
- package/src/templates/README.md.ejs +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Projx
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/create-projx)
|
|
4
|
+
[](https://github.com/ukanhaupa/projx/actions/workflows/ci.yml)
|
|
5
|
+
[](https://opensource.org/licenses/MIT)
|
|
6
|
+
|
|
3
7
|
Production-grade project scaffolder. Pick your stack, get a fully wired project with auth, database, CI/CD, and E2E tests — ready to deploy.
|
|
4
8
|
|
|
5
9
|
## The Problem
|
|
@@ -63,7 +67,7 @@ cd my-existing-app
|
|
|
63
67
|
npx create-projx init
|
|
64
68
|
```
|
|
65
69
|
|
|
66
|
-
Auto-detects components by scanning for `fastapi` in pyproject.toml, `react`/`fastify` in package.json, `flutter` in pubspec.yaml, and `.tf` files. Confirms each mapping,
|
|
70
|
+
Auto-detects components by scanning for `fastapi` in pyproject.toml, `react`/`fastify` in package.json, `flutter` in pubspec.yaml, and `.tf` files. Confirms each mapping, creates a `projx/baseline` branch with the template, and merges it — preserving all your existing code while establishing the ancestry link that makes future updates work.
|
|
67
71
|
|
|
68
72
|
### Add Components Later
|
|
69
73
|
|
|
@@ -83,14 +87,23 @@ cd my-app
|
|
|
83
87
|
npx create-projx@latest update
|
|
84
88
|
```
|
|
85
89
|
|
|
86
|
-
|
|
90
|
+
Uses a `projx/baseline` branch that tracks the raw template state. When you update, the baseline advances to the new template version and merges into your branch using git's three-way merge:
|
|
91
|
+
|
|
92
|
+
- **Files only the template changed** — auto-merged, no action needed
|
|
93
|
+
- **Files only you changed** — preserved, untouched
|
|
94
|
+
- **Files both sides changed** — git conflict, you resolve
|
|
87
95
|
|
|
88
96
|
```bash
|
|
89
|
-
|
|
90
|
-
git
|
|
97
|
+
# If conflicts occur:
|
|
98
|
+
git status # see conflicted files
|
|
99
|
+
# resolve conflicts in your editor
|
|
100
|
+
git add . && git commit # finish the merge
|
|
101
|
+
|
|
102
|
+
# Or abort:
|
|
103
|
+
git merge --abort
|
|
91
104
|
```
|
|
92
105
|
|
|
93
|
-
|
|
106
|
+
Your custom files (controllers, pages, middleware) are never deleted. Files you created that don't exist in the template are always preserved.
|
|
94
107
|
|
|
95
108
|
## Options
|
|
96
109
|
|
|
@@ -178,6 +191,14 @@ npm test # run tests
|
|
|
178
191
|
npm run build # build CLI
|
|
179
192
|
```
|
|
180
193
|
|
|
194
|
+
## Badge
|
|
195
|
+
|
|
196
|
+
Add this to your project's README:
|
|
197
|
+
|
|
198
|
+
```md
|
|
199
|
+
[](https://github.com/ukanhaupa/projx)
|
|
200
|
+
```
|
|
201
|
+
|
|
181
202
|
## License
|
|
182
203
|
|
|
183
204
|
MIT
|