Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 1.17 KB

File metadata and controls

34 lines (21 loc) · 1.17 KB

Local testing

To verify the generator before publishing:

  1. Run npm pack in this repository to produce a tarball (for example create-tinker-stack-0.2.8.tgz).
  2. 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-project

This scaffolds a clean starter into ./my-project.

With the example bundle

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-router

The example is placed in my-project/examples/react-router/ and is independent of the root workspace.

Notes

  • $(pwd) must be run from the repository root where the tarball was produced.
  • npm create does not currently support file: specifiers, so npx must be used.
  • Omit the target directory argument to scaffold into the current working directory.