@fluid-app/fluid-cli-theme-dev 0.1.849 → 0.1.851

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.
@@ -98,7 +98,7 @@ my-theme/
98
98
 
99
99
  ## Directory & file structure — validate first
100
100
 
101
- Before reading any Liquid, walk the repo root. `fluid theme lint --json` checks schema JSON and section references, warns about routed page types with no template (`target.kind: "template"`), and checks `members_sites.json` the way the server does on import (`target.kind: "member_manifest"`, with the JSON path in `target.pointer`). It doesn't enforce the rest of the layout. The reviewer does.
101
+ Before reading any Liquid, walk the repo root. `fluid theme lint --json` checks schema JSON and section references, warns about routed page types with no template (`target.kind: "template"`), checks `members_sites.json` the way the server does on import (`target.kind: "member_manifest"`, with the JSON path in `target.pointer`), and warns about translations the Page Editor can't show: keys that aren't two-part `group.key`, and settings that put other text or HTML around a `t` tag. It doesn't enforce the rest of the layout. The reviewer does.
102
102
 
103
103
  A valid theme is recognized by the presence of an `assets/` or `config/` directory. In practice every published theme has `assets/`, `config/`, `layouts/`, and the page-type and section folders below.
104
104
 
@@ -694,6 +694,7 @@ When reviewing any theme file, run through this in order. Anything unchecked is
694
694
  - [ ] No `asset_url` inside a `for` loop
695
695
  - [ ] All `for`/`if` in markup context use `{%-` / `-%}` whitespace control
696
696
  - [ ] `{% if %}` / `{% endif %}` (and `for`/`case`/`capture`) tags balance — `fluid theme lint` reports any that don't
697
+ - [ ] Translation keys are `group.key`, and a translated setting's whole value is one `{{ 'group.key' | t }}` tag with any HTML kept in the locale value — `fluid theme lint` warns otherwise, because the Page Editor can't show those settings
697
698
 
698
699
  **Variable scope**
699
700
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-app/fluid-cli-theme-dev",
3
- "version": "0.1.849",
3
+ "version": "0.1.851",
4
4
  "description": "Fluid CLI plugin for theme developer workflows — dev server, push, pull, init, crawl, compare",
5
5
  "files": [
6
6
  "dist",
@@ -21,7 +21,7 @@
21
21
  "access": "public"
22
22
  },
23
23
  "dependencies": {
24
- "@fluid-app/fluid-cli": "0.1.510",
24
+ "@fluid-app/fluid-cli": "0.1.512",
25
25
  "chalk": "^5.6.2",
26
26
  "chokidar": "^4.0.0",
27
27
  "commander": "^12.0.0",