Skip to content

gepdev/generator-nuxt

Repository files navigation

Nuxt Yeoman Generator

This is a NuxtJS Yeoman Generator. It helps to quickly scaffold some of the NuxtJS elements.

Available generators:

  • pages

Requirements

Getting started

Install Yeoman

npm install -g yo

Link generator-nuxt npm module

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"

Use the generator

Pages Generator

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)

  1. nested pages
? Insert page path relative to the project including children pages /parent/child
  1. single page folder
? Insert page path relative to the project including children pages /mypage
  1. 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

About

Nuxt Yeoman Generator

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •