@reflow-js/templates
v0.1.0
Published
Project scaffolding templates consumed by @reflow-js/cli
Readme
@reflow-js/templates
Project scaffolding templates consumed by @reflow-js/cli.
Each folder is a self-contained scaffold copied verbatim (with {{name}}
substitution) when a user runs reflow generate mfe:
| Folder | Template (--template / --css) | Ships tests |
|--------|-----------------------------------|:-----------:|
| mfe | core (native) | ✅ jest smoke test |
| mfe-react | react | ⬜ planned |
| mfe-react-tailwind | react + --css tailwind | ⬜ planned |
| mfe-angular | angular | ⬜ planned |
| mfe-vue | vue | ⬜ planned |
The CLI wires the jest toolchain (test script + devDependencies) into a generated
project only when its scaffold ships at least one *.test.* file — so a template without
tests never produces a failing npm test. Adding a test file to any folder above
auto-enables jest for that template; no CLI change needed.
This package is data-only: it ships no runtime code. The CLI resolves it via
require.resolve('@reflow-js/templates/package.json') and falls back to the sibling
package during monorepo development.
