create-weft
v0.1.6
Published
npm create weft — a weft application, with a page you can open.
Maintainers
Readme
create-weft
A new weft application, with a page you can open.
npm create weft@latest my-app
pnpm create weft my-app
yarn create weft my-app
bun create weft my-appcd my-app
npm install
npm run dev # http://localhost:3000Templates
| | |
| ----------------- | ---------------------------------------------------------------------------------------------- |
| app (default) | A layout, three routes, a fragment with its own CSS, a slot, and a real mutation you can press |
| minimal | One route, and nothing else |
npm create weft my-app -- --template minimalAlready inside a project? The framework's own CLI scaffolds too: npx weft create my-app.
What it writes
Every file is one the framework will actually read, and each says what it is for. The page it produces is a real page: it renders through the kernel, its CSS is linked the way a component's CSS is linked, and its buttons dispatch a real intent that also works with JavaScript switched off. A scaffold whose output is a placeholder teaches nothing about the framework it is scaffolding.
A non-empty target directory is refused rather than merged — E_NOT_EMPTY, naming what is in the
way.
This package is a shim, deliberately. The templates and the scaffolder live in the @weftjs/core package
itself, because a scaffold that ships its own copy of them is a scaffold that will generate an
application the framework has stopped supporting.
License
MIT
