create-projx 1.3.6 → 1.4.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.
Files changed (3) hide show
  1. package/README.md +40 -0
  2. package/dist/index.js +1750 -91
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -126,6 +126,11 @@ npx create-projx <name> [options]
126
126
  npx create-projx init
127
127
  npx create-projx add <components...>
128
128
  npx create-projx update
129
+ npx create-projx diff
130
+ npx create-projx pin <patterns...>
131
+ npx create-projx unpin <patterns...>
132
+ npx create-projx pin --list
133
+ npx create-projx doctor [--fix]
129
134
 
130
135
  --components <list> Comma-separated: fastapi,fastify,frontend,mobile,e2e,infra
131
136
  --no-git Skip git init
@@ -134,6 +139,41 @@ npx create-projx update
134
139
  -h, --help Show help
135
140
  ```
136
141
 
142
+ ### Preview Changes
143
+
144
+ See what `update` would change before applying:
145
+
146
+ ```bash
147
+ cd my-app
148
+ npx create-projx diff
149
+ ```
150
+
151
+ Shows file-by-file analysis: clean updates, files needing merge, user-only changes, and skipped files.
152
+
153
+ ### Pin / Unpin Files
154
+
155
+ Skip files from future template updates without editing JSON:
156
+
157
+ ```bash
158
+ npx create-projx pin backend/pyproject.toml # skip this file
159
+ npx create-projx pin "backend/src/**" # skip with glob
160
+ npx create-projx unpin backend/pyproject.toml # allow updates again
161
+ npx create-projx pin --list # show all pinned files
162
+ ```
163
+
164
+ Files inside a component directory are added to that component's `.projx-component` skip list. Root-level files are added to `.projx` skip.
165
+
166
+ ### Health Check
167
+
168
+ Diagnose issues with your projx setup:
169
+
170
+ ```bash
171
+ npx create-projx doctor # check everything
172
+ npx create-projx doctor --fix # auto-fix what's possible
173
+ ```
174
+
175
+ Checks: config validity, component markers, baseline ref, stale worktrees, skip pattern coverage.
176
+
137
177
  ## Rename Component Directories
138
178
 
139
179
  Rename `fastapi/` to `backend/`? Just rename the folder — the `.projx-component` marker file moves with it. The `update` command auto-discovers where each component lives by scanning for these markers. No config changes needed.