You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[12 — Bump Version and Create PR](#12--bump-version-and-create-pr)
28
+
-[13 — Add Translations](#13--add-translations)
19
29
20
30
## Adding New Templates
21
31
@@ -93,7 +103,22 @@ text_to_video_wan-1.webp
93
103
94
104
Then move the renamed files to your templates folder.
95
105
96
-
### 7 — Add Entry to `index.json`
106
+
### 7 — Assign Bundle & Sync Assets
107
+
108
+
Each template lives in one bundle (`media-image`, `media-video`, etc.). Update
109
+
[`bundles.json`](bundles.json) with the template ID so the correct media package ships it.
110
+
After editing `templates/` or `bundles.json`, regenerate the manifest and copy assets into
111
+
the package directories:
112
+
113
+
```bash
114
+
python scripts/sync_bundles.py
115
+
# or via Nx
116
+
npm run sync
117
+
```
118
+
119
+
This step must be run before committing; CI will fail if the manifest/bundles are out of sync.
120
+
121
+
### 8 — Add Entry to `index.json`
97
122
98
123
There's an [`index.json`](templates/index.json) file in the templates folder which is where template configurations are set. You will need to add your template to this file, using the fields outlined below:
99
124
@@ -166,7 +191,7 @@ Now you can start ComfyUI (or refresh browser if already running) and test that
166
191
>
167
192
> Make sure to use double-quotes `"` instead of single-quotes `'` when adding things to json files
168
193
169
-
### 8 — Embed Models
194
+
### 9 — Embed Models
170
195
171
196
Now we need to embed metadata for any models the template workflow uses. This way, the user can download and run the workflow without ever leaving ComfyUI.
172
197
@@ -296,7 +321,7 @@ You can find the `hash` and `hash_type` for a model on huggingface (see below)or
296
321
>
297
322
> Ensure that the filename being downloaded from the links matches the filenames in the `widgets_values` exactly.
298
323
299
-
### 9 — Embed Node Versions (optional)
324
+
### 10 — Embed Node Versions (optional)
300
325
301
326
If your template requires a specific version of Comfy or a custom node, you can specify that using the same process as with models.
302
327
@@ -330,7 +355,7 @@ The Wan 2.1 workflow requires the SaveWEBM node which wasn't fully supported unt
330
355
331
356
This can help diagnose issues when others run the workflow and ensure the workflow is more reproducible.
332
357
333
-
### 10 — Add Documentation Nodes (optional)
358
+
### 11 — Add Documentation Nodes (optional)
334
359
335
360
If your template corresponds with a page on https://github.com/comfyanonymous/ComfyUI_examples, https://docs.comfy.org/custom-nodes/workflow_templates, etc., you can add a `MarkdownNote` node with links:
336
361
@@ -346,7 +371,22 @@ Raw markdown used:
346
371
> [Wan 2.1 Tutorial - docs.comfy.org](https://docs.comfy.org/tutorials/video/wan/wan-video) — Explanation of concepts and step-by-step tutorial
347
372
```
348
373
349
-
### 11 — Bump Version and Create PR
374
+
### 12 — Bump Version and Create PR
375
+
376
+
Run the automated version helper before opening your PR. It looks at the latest git tag
377
+
and bumps only the packages that changed (plus updates dependency pins):
Then run the full validation script (which regenerates manifests, runs lint/tests, and
385
+
builds wheels):
386
+
387
+
```bash
388
+
./run_full_validation.sh
389
+
```
350
390
351
391
1. Fully test the workflow: delete the models, input images, etc. and try it as a new user would. Ensure the process has no hiccups and you can generate the thumbnail image on the first execution (if applicable).
352
392
2. Create a fork of https://github.com/Comfy-Org/workflow_templates (or just checkout a new branch if you are a Comfy-Org collaborator)
@@ -361,7 +401,7 @@ Here is the PR I made for the Wan template: https://github.com/Comfy-Org/workflo
361
401
362
402
Once the PR is merged, if you followed step 6 correctly, a new version will be published to the [comfyui-workflow-templates PyPi package](https://pypi.org/project/comfyui-workflow-templates).
363
403
364
-
### 12 — Add Translations
404
+
### 13 — Add Translations
365
405
366
406
Make a PR in https://github.com/Comfy-Org/ComfyUI_frontend adding the mapping from your template filename (without extension) to the English display name title. The mapping goes in [`ComfyUI_frontend/src/locales/en/main.json`](https://github.com/Comfy-Org/ComfyUI_frontend/blob/9f0abac57ba0d5752c51198bf8a075b8336fdda1/src/locales/en/main.json#L480-L487).
0 commit comments