Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

feat(nuxi): add support for custom templates for scaffolding. #3959

Closed
wants to merge 9 commits into from

Conversation

lazaroofarrill
Copy link

@lazaroofarrill lazaroofarrill commented Mar 29, 2022

πŸ”— Issue nuxt/nuxt.js#13552

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Aims to make the cli scaffolding more useful but allowing custom definitions.
Adds the possibility of extending nuxi add command with new templates.

npx nuxi add template custom-template creates the file templates/custom-template.mjs containing a skeleton for a template definition.

Custom templates with the same name of default templates will take precedence.

Part of roadmap in nuxt/nuxt.js#13552 .

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@netlify
Copy link

netlify bot commented Mar 29, 2022

βœ… Deploy Preview for nuxt3-docs canceled.

Name Link
πŸ”¨ Latest commit 7e668c9
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/62436a8dcb9e0b000919337b

@pi0
Copy link
Member

pi0 commented Mar 29, 2022

Thanks for the PR @lazaroofarrill but I think we need to follow roadmap and create templating utils first. Adding feature like this makes testing and maintenance hard for us.

I will initiate it right after RC. Contribution more than welcome into it πŸ’š

@pi0 pi0 closed this Mar 29, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants