Home

Issue: 679

Idea/Suggestion: Nuxt CLI command for generating pages/components

[issue link]

This is just an idea to see what the team behind Nuxt think (not sure if this is the best place for it):

It could be really convenient to add an extra command to the nuxt cli tool to generate new pages/components? I find myself doing this a lot and at the moment it’s basically copying and pasting the script, template and style tags from another file and emptying it out. It could also take preferences about languages (pug, sass, etc), and even layouts and store modules, etc. E.g.:

nuxt create component my-component-name
nuxt create page my-page-name --sass

Would you be open to reviewing a PR to implement this, or do you think it’s not appropriate to go into this project?

This question is available on Nuxt.js community (#c586)