This yeoman generator helps set up a library. The library is designed as a monorepo that is expected to contain several independent but related packages.
The generator includes a child generator that helps generate a Fastify plugin as one such package in the library.
- app: sets up a new library as a monorepo
- fastify-plugin: sets up a fastify plugin within the monorepo
To install yo
globally, run:
npm install -g yo
To install this generator globally, run:
npm install -g generator-12deg-library
Run the following command and follow the prompts to generate your monorepo setup:
yo 12deg-library
This command will create a directory with the name you provide as Package name
.
To generate only the fastify plugin, use:
yo 12deg-library:fastify-plugin
This will create the fastify plugin setup without the rest of the monorepo structure.