@pawnjs/create
v0.1.0-alpha.5
Published
Creates a Pawn. project: bun create @pawnjs
Maintainers
Readme
@pawnjs/create
Creates a Pawn. project:
bun create @pawnjs my-scene # TypeScript and Vite
bun create @pawnjs my-scene --template react # with @pawnjs/reactYou get Vite and TypeScript, a cube to hover and click, and a test that
runs the scene headless with bun test. Then:
cd my-scene
bun install
bun run dev # also: build, preview, test, check-typesWithout a directory or template it asks for them. The project depends on
exactly the @pawnjs/* version of this one. bun create pawn does the
same through the short create-pawn.
From code: createProject({ directory, template, name }).
Templates live in templates/: shared/ goes into every project, then
the template's own directory over it. Files npm leaves out of tarballs
are stored with _ for the dot, as _gitignore.
Docs: Create a project.
MIT License.
