Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Maintainers
1
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

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc