fastify-swc-typescript-server-bootstrap-cli
v1.0.1
Published
A CLI tool for bootstrapping Fastify SWC server projects.
Downloads
11
Readme
Fastify SWC Server Bootstrap CLI Tool
Overview
This CLI tool streamlines the creation of new server projects using Fastify with SWC and Jest.
Install globally
npm
npm i -g fastify-swc-typescript-server-bootstrap-cli
Usage
After installation, bootstrap a new Fastify SWC server project using the command:
fastify-swc-server [project-name]
Replace [project-name]
with the name you wish to give to your new project. This command will create a new directory with the specified name, clone the Fastify SWC server setup, and configure the project accordingly.
Example
To create a new project named my-server-app
, run:
fastify-swc-server my-server-app
What it Does Currently
- Clones a Fastify SWC server template from this repository.
- Removes the original
.git
directory from the cloned repository and initializes a new git repository, allowing for a clean version control start. - Updates the
package.json
with the specified project name and clears the author field. - Implements a testing suite using Mocha and Chai, integrating Husky as a pre-commit hook, ensuring that all tests must pass successfully before changes can be committed.
- More customizations to be added...