Skip to content

🚀 Feature: Add CLI prompt for removing parts of the template #694

Closed
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Bug Report Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have pulled the latest main branch of the repository.
  • I have searched for related issues and found none that matched my issue.

Overview

Right now, there are two CLI flags for opting out of part of the package:

https://github.com/JoshuaKGoldberg/template-typescript-node-package/blob/edd4d8fdccc44ae77dd8a6c15b6d5cf26024f80a/docs/Migration.md#L35-L36

Additionally:

https://github.com/JoshuaKGoldberg/template-typescript-node-package/blob/edd4d8fdccc44ae77dd8a6c15b6d5cf26024f80a/docs/Migration.md#L49

I think that before this package gets targeted as a more broadly used builder (#671), it should become easier to exclude parts of the template. I'm thinking of standardizing them as --exclude-*.

Existing ones would become:

  • --exclude-contributors
  • --exclude-releases
  • --exclude-tests

New ones:

  • --exclude-lint-json (within ESLint)
  • --exclude-lint-knip
  • --exclude-lint-md
  • --exclude-lint-perfectionist (within ESLint)
  • --exclude-lint-yml (within ESLint)
  • --exclude-lint-packages
  • --exclude-lint-package
  • --exclude-lint-spelling

Metadata

Metadata

Labels

status: accepting prsPlease, send a pull request to resolve this!type: featureNew enhancement or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions