expressots-cli icon indicating copy to clipboard operation
expressots-cli copied to clipboard

Create Remove functionality for Providers

Open rsaz opened this issue 2 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current behavior

Currently CLI is providing it's first provider which as @expressots/prisma or prisma provider. Prisma provider is added using the CLI command:

expressots add prisma

We need to add a command to remove the provider and undo all it's installation changes. Example:

expressots remove prisma

During the installation prisma does:

  • Install prisma client
  • Install prisma
  • Install @expressots/prisma
  • Install driver
  • Install repository pattern
  • Create a prisma folder
  • Add prisma folder location to the package.sjon
  • Add prisma provider configuration in the expressots.config.ts
  • Add prisma command in package.json to generate prisma models

Steps to reproduce

expressots add prisma

Expected behavior

Remove all components below:

  • Install prisma client
  • Install prisma
  • Install @expressots/prisma
  • Install driver
  • Install repository pattern
  • Create a prisma folder
  • Add prisma folder location to the package.sjon
  • Add prisma provider configuration in the expressots.config.ts
  • Add prisma command in package.json to generate prisma models

Package version

@expressots/cli 1.5.0

Node.js version

18

In which operating systems have you tested?

  • [X] macOS
  • [X] Windows
  • [X] Linux

Other

No response

rsaz avatar Oct 06 '23 07:10 rsaz