Skip to content

@fiorejs/create 2.0.0

Choose a tag to compare

@vrtexe vrtexe released this 16 Nov 16:17
· 1 commit to main since this release

@fiorejs/create 2 scaffolds apps on fiore 2: fiorejs, @fiorejs/jsx and @fiorejs/signals 2.0.0. The command line options are unchanged.

Changes

  • Dependencies: generated apps install fiorejs, @fiorejs/jsx and @fiorejs/signals at ^2.0.0.
  • Templates use the 2.0 API: builders (li.props({ ... }).create(...)) in the DOM templates, and in the signals templates todos.for((todo) => todo.id).map(TodoItem) for the list, todo.done.computed(...) and left.computed(...) for derived text and classes, and classList for conditional classes. A function is never a live value in fiore 2, so no template uses a bare getter.
  • No-build template: the import map points at the installed 2.0 packages in node_modules, so npm install is the only step before opening the page.

Run it with npm create @fiorejs@latest. Every combination of template, JSX, signals, linter and formatter was installed, type-checked, built, linted and format-checked against the 2.0 packages before this release.