Skip to content

Adjust the level of customization for templates #170

@carletex

Description

@carletex

This is something we have been balancing out from the beginning with templates files (total customization VS being super strict). I think we should be more clear about what you can customize and what not.

(this conversation was sparked after #167 and similar issues).

An initial approximation:

  • We allow total configuration on config objects (tailwind, scaffold, harhat, etc). Ideally we will have a merge object system that allows you to tweak/extend/override any nested prop in the config object.
  • Index front-end page... maybe we should allow rewrite it completly? Or it might be too crazy? This could be an extra fullContent param (if set, it overrides the content of the Home: NextPage component), but you can still use the existing ones.
  • Main READMEs might be another good one too. Maybe we should allow change almost everything there?
  • We are restrictive (only thru templates args) with things that we don't want people to completly rewrite (e.g. Header.tsx)
  • We don't allow rewriting certain components / pages at all (everything that's not a template )

We also need to consider breaking changes (it might be fine for now if we have to rewrite some stuff on curated extensions).

These are some initial thoughts... very open. Maybe we could make a list grouping templates in categories (total customization vs param customization)

Let's discuss!

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions