@cknow/nuxt-modular

Nuxt modular management

Usage no npm install needed!

<script type="module">
  import cknowNuxtModular from 'https://cdn.skypack.dev/@cknow/nuxt-modular';
</script>

README

Nuxt Modular

NPM Version Downloads MIT License

Build Status Build status Coverage Status

Code Climate Test Coverage Issue Count

Dependencies Status devDependencies Status peerDependencies Status

Semantic Release Average time to resolve an issue Percentage of issues still open Gitter

Nuxt modular management

Install

npm install --save @cknow/nuxt-modular

Add @cknow/nuxt-modular to modules section of nuxt.config.js:

{
    modules: [
        '@cknow/nuxt-modular'
    ]
}

Usage

This module allows you to build your app in modules. By default the folders within modular will be considered modules and within each module you can use the same root structure, that is, your module can contain layouts, middleware, plugins, pages, static, store.

Ex:

modular
    example1
        pages
            index.vue
    example2
        pages
            index.vue
pages
    index.vue

You should be able to access this:

/ -> pages/index.vue
/example1 -> modular/example1/pages/index.vue
/example2 -> modular/example2/pages/index.vue