@vttforge/cli 0.12.0 → 0.13.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/CHANGELOG.md +7 -0
- package/README.md +3 -3
- package/dist/bin.mjs +1246 -15
- package/dist/bin.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-CzzrhCN-.mjs → src-5a2deycw.mjs} +134 -7
- package/dist/src-5a2deycw.mjs.map +1 -0
- package/package.json +3 -1
- package/templates/module-js/package.json +1 -1
- package/templates/module-ts/package.json +1 -1
- package/templates/system-js/package.json +1 -1
- package/templates/system-ts/package.json +1 -1
- package/dist/src-CzzrhCN-.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @vttforge/cli
|
|
2
2
|
|
|
3
|
+
## 0.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- de3671e: `vttforge audit` rule `VTTF-AUDIT-020` (HIGH): a release workflow that zips the checkout of a project that builds to `dist/`, or builds and then zips the source tree. The published package has no entry file and no world starts on it, and nothing says so until a player installs it. `vttforge migrate` reports the same workflow as needing a decision, since the rewrite is what moves a project onto the build.
|
|
8
|
+
- 2a8e892: `vttforge migrate --sheets`: next to each Application v1 sheet class (`ActorSheet`, `ItemSheet`), write a file with the same class on `BaseActorSheet` / `BaseItemSheet`. `defaultOptions`, `tabs`, `dragDrop` and `template` become the V2 statics, `getData` becomes `_prepareContext`, each `html.find(sel).click(handler)` becomes an `actions` entry with the handler on the `(event, target)` signature, other events move to `_onRender`, the drop handlers take the resolved document, and the jQuery idioms with a DOM equivalent are rewritten. What cannot be decided is a `// TODO(migrate)` line, listed in the report. The templates the class names get the `data-action` and tab attributes the new class reads. Preview by default; `--write` writes the new files and the template edits and never touches the original class.
|
|
9
|
+
|
|
3
10
|
## 0.12.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ vttforge dev [--foundry-data <path>] [--port <n>]
|
|
|
15
15
|
vttforge build
|
|
16
16
|
vttforge lint [dir] [--fix] [--no-audit] [--strict]
|
|
17
17
|
vttforge audit [dir] [--json] [--strict]
|
|
18
|
-
vttforge migrate [dir] [--write] [--json]
|
|
18
|
+
vttforge migrate [dir] [--write] [--json] [--data-models] [--sheets]
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
**`init`** writes a runnable system or module into `<name>/` from one of four templates (`system-ts`, `system-js`, `module-ts`, `module-js`). It asks for what you did not pass, or takes defaults with `--yes`, so it works in CI. It detects the package manager that invoked it (`pnpm`, `npm`, `bun`, `yarn`), installs, and runs `git init`.
|
|
@@ -26,9 +26,9 @@ vttforge migrate [dir] [--write] [--json]
|
|
|
26
26
|
|
|
27
27
|
**`lint`** runs Biome, which ships with the CLI, over the project with a shipped config (a `biome.json` at the project root replaces it), then the audit. `--fix` writes the safe fixes and formats.
|
|
28
28
|
|
|
29
|
-
**`audit`** checks the manifest, the source and the templates against the v14 breakages that fail quietly: the `flags.hotReload` shape, the removed grid fields, the v12 `styles` shape, `HTMLField`/`FilePathField` paths missing from `documentTypes`, `TypeDataModel` without `prepareBaseData`, a bad `_addDataFieldMigrations` override, token attributes that do not point at a `{ value, max }` field, a sheet template that opens a `<form>` the sheet already is, a declared subtype with no name in any language file, a `template.json` that erases the metadata `system.json` declares for the same type, and the v13 code v14 broke or deprecated: bare `mergeObject`-style globals, `-=` update keys, `rollMode`, whole-array `CONFIG.statusEffects` assignment, `legacyTransferral`, numeric Active Effect modes
|
|
29
|
+
**`audit`** checks the manifest, the source and the templates against the v14 breakages that fail quietly: the `flags.hotReload` shape, the removed grid fields, the v12 `styles` shape, `HTMLField`/`FilePathField` paths missing from `documentTypes`, `TypeDataModel` without `prepareBaseData`, a bad `_addDataFieldMigrations` override, token attributes that do not point at a `{ value, max }` field, a sheet template that opens a `<form>` the sheet already is, a declared subtype with no name in any language file, a `template.json` that erases the metadata `system.json` declares for the same type, and the v13 code v14 broke or deprecated: bare `mergeObject`-style globals, `-=` update keys, `rollMode`, whole-array `CONFIG.statusEffects` assignment, `legacyTransferral`, numeric Active Effect modes, and a release workflow that zips the checkout of a project that builds to `dist/`. `--json` for machines; `--strict` exits non-zero on any finding rather than only on HIGH.
|
|
30
30
|
|
|
31
|
-
**`migrate`** rewrites a v13 project for v14: the removed globals, `-=` keys, `rollMode`, context-menu keys, numeric effect modes, whole-array `CONFIG.statusEffects`, `legacyTransferral`, the core-sheet unregister lines, and the manifest's `type` and `compatibility`. It reports by default and writes with `--write`; what it will not decide it lists as needing one.
|
|
31
|
+
**`migrate`** rewrites a v13 project for v14: the removed globals, `-=` keys, `rollMode`, context-menu keys, numeric effect modes, whole-array `CONFIG.statusEffects`, `legacyTransferral`, the core-sheet unregister lines, and the manifest's `type` and `compatibility`. It reports by default and writes with `--write`; what it will not decide it lists as needing one. `--data-models` writes a data model per `template.json` type; `--sheets` writes a V2 sheet file on the SDK bases next to each Application v1 sheet class, with the `data-action` attributes its templates need.
|
|
32
32
|
|
|
33
33
|
## As a library
|
|
34
34
|
|