Repository navigation
@fiorejs/create 2.0.0
@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/jsxand@fiorejs/signalsat^2.0.0. - Templates use the 2.0 API: builders (
li.props({ ... }).create(...)) in the DOM templates, and in the signals templatestodos.for((todo) => todo.id).map(TodoItem)for the list,todo.done.computed(...)andleft.computed(...)for derived text and classes, andclassListfor 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, sonpm installis 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.