fastify-swc-typescript-server-bootstrap-cli

1.0.1 • Public • Published

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

/fastify-swc-typescript-server-bootstrap-cli/

    Package Sidebar

    Install

    npm i fastify-swc-typescript-server-bootstrap-cli

    Weekly Downloads

    3

    Version

    1.0.1

    License

    none

    Unpacked Size

    7.14 kB

    Total Files

    5

    Last publish

    Collaborators

    • rootedjs