start-express-react icon indicating copy to clipboard operation
start-express-react copied to clipboard

Add make:purge command to start a bare project

Open rocambille opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. At the moment, the framework always initializes with preinstalled modules and other stuff (user CRUD, item CRUD, authentication...). This is convenient for quick starts but limiting for developers who want a clean project base with only the core framework. Right now, removing modules requires manual cleanup of files and configurations.

Describe the solution you'd like Add a CLI command make:purge that removes all default modules and leaves only the framework core (React, Express, base structure).

  • make:purge → removes all modules (auth, user CRUD, item CRUD).
  • make:purge --keep-auth → keeps authentication + user CRUD, removes other modules (e.g., items).

This gives flexibility for developers who either want a fully clean slate or prefer to keep authentication in place.

Describe alternatives you've considered

  • Manual deletion of generated files and configurations (slow and error-prone).

Additional context The make:purge command would make it easier to start from a minimal project structure without unnecessary code. The --keep-auth option ensures developers can keep a secure base (auth + users) while still avoiding extra CRUD modules.

rocambille avatar Oct 04 '25 09:10 rocambille

Of course, the script should ask for confirmation before deleting files ;)

rocambille avatar Oct 04 '25 09:10 rocambille