This is a NuxtJS Yeoman Generator. It helps to quickly scaffold some of the NuxtJS elements.
Available generators:
- pages
npm install -g yo
Since this generator is not yet available as a global npm module you have to symlink it as a local one. From the root of the generatr folder type:
npm link
or if you're using Yarn
yarn link
and in your project folder type:
yarn link "generator-nuxt"
This commands help you scaffold Nuxt pages
$ yo nuxt:pages
? Insert page path relative to the project including children pages
Now insert the structure of the pages to create (see examples below)
- nested pages
? Insert page path relative to the project including children pages /parent/child
- single page folder
? Insert page path relative to the project including children pages /mypage
- single page file
? Insert page path relative to the project including children pages mypage.vue
Now insert the folder name inside /pages where to save the pages
? Target path where the pages will be written myfolder