To verify the generator before publishing:
- Run
npm packin this repository to produce a tarball (for examplecreate-tinker-stack-0.2.8.tgz). - Run the generator from this repository, passing a target directory as a positional argument:
npx --yes create-tinker-stack@file://$(pwd)/create-tinker-stack-0.2.8.tgz my-projectThis scaffolds a clean starter into ./my-project.
Pass --with-example to also generate the react-router example, or name a specific example with --example:
# Default example (react-router)
npx --yes create-tinker-stack@file://$(pwd)/create-tinker-stack-0.2.8.tgz my-project --with-example
# Named example
npx --yes create-tinker-stack@file://$(pwd)/create-tinker-stack-0.2.8.tgz my-project --example react-routerThe example is placed in my-project/examples/react-router/ and is independent of the root workspace.
$(pwd)must be run from the repository root where the tarball was produced.npm createdoes not currently supportfile:specifiers, sonpxmust be used.- Omit the target directory argument to scaffold into the current working directory.