To verify the generator before publishing:
- Run
npm packin this repository to produce a tarball (for examplecreate-tinker-stack-0.2.11.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.11.tgz my-projectThis scaffolds a clean starter into ./my-project with the example bundles.
The generator prompts for the app title. To run fully non-interactive (for scripts and CI), pass the title as a flag:
npx --yes create-tinker-stack@file://$(pwd)/create-tinker-stack-0.2.11.tgz --title "My Project" my-projectSetting the CI environment variable also skips the prompt and falls back to the title Demo Title.
The 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.