Socket
Book a DemoInstallSign in
Socket

@davestewart/area-51

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@davestewart/area-51

Area package example for Nuxt Areas

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

Area 51

Nuxt Areas external area demo

Area 51

Overview

Nuxt Areas is a Nuxt module that enables you to structure your Nuxt site by "area":

+- src
    +- areas
        +- products
        |   +- ...
        +- users
            +- components
            +- pages
            +- store

In addition to local folders, Areas lets you include external areas via path or NPM module.

This is an installable demo module to show you how it works.

Usage

In your Nuxt project, install Nuxt Areas and this package:

npm i nuxt-areas davestewart/area-51

If you don't have a project set up, you can use the main Nuxt Areas Demo.

In your project's nuxt.config.js set up Areas as a build module, and configure Areas to load the demo area:

export default {
  buildModules: [
    'nuxt-areas',
  ],

  areas: {
    external: [
      {
        src: 'area-51',         // package name 
        route: '/fifty-one',    // route you want to view the pages on
        namespace: 'fiftyOne'   // namespace the store will be registered on
      },
    ]
  }
}

Assuming you set up Nuxt Areas OK, everything should run.

To view the installed area in your browser:

  • run the project via npm run dev
  • navigate to http://localhost:3000/fifty-one (or equivalent)

Keywords

nuxt

FAQs

Package last updated on 17 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.