Skip to content

v1.0.4

Choose a tag to compare

@github-actions github-actions released this 05 Jul 17:37

🐛 Fixes — @weave-framework/nx generators

  • nx g @weave-framework/nx:application (and :library) no longer crash at the end with "task is not a
    function"
    .
    The generators returned the project-root string; Nx calls a generator's return value as a task
    callback, so a non-function threw. They now return the install task (a callback).
  • Generated projects get their @weave-framework/* dependencies. The scaffold imports runtime (and, for
    apps, the full router/store/forms/i18n/data set) plus the cli dev dependency — the generators now add
    them to package.json (mirroring create-weave) and install them.
  • The scaffolded .html templates keep their Weave {{ }} bindings. formatFiles (Prettier) was mangling
    on:click={{ inc }} into on:click="{{" inc }}; templates are now written after formatting so they survive
    verbatim.