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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Projx
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/create-projx)](https://www.npmjs.com/package/create-projx)
4
+ [![CI](https://github.com/ukanhaupa/projx/actions/workflows/ci.yml/badge.svg)](https://github.com/ukanhaupa/projx/actions/workflows/ci.yml)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](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, writes `.projx-component` markers, and generates only missing shared files. Existing files get a diff/overwrite/skip prompt.
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
- Creates a `projx/update-vX.X.X` branch with the latest template overlay. Your custom files are never deleted only template files are added or replaced. Merge with conflict resolution:
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
- git diff main...projx/update-v1.1.2 # review changes
90
- git checkout main && git merge --no-ff projx/update-v1.1.2 # merge with conflicts
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
- Git shows conflicts on files you customized (controllers, middleware, configs). You keep your code, accept template improvements.
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
+ [![Built with Projx](https://img.shields.io/badge/Built%20with-Projx-blue)](https://github.com/ukanhaupa/projx)
200
+ ```
201
+
181
202
  ## License
182
203
 
183
204
  MIT