Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

@whppt/layouts

Package Overview
Dependencies
3
Maintainers
5
Versions
12
Issues
File Explorer

Advanced tools

@whppt/layouts

Whppt layouts plugin.

    1.0.3latest

Version published
Maintainers
5
Yearly downloads
2,287
increased by0.18%

Weekly downloads

Changelog

Source

1.0.3 (2022-05-09)

Bug Fixes

  • dont register components in module. register in plugin (6185adb)

Readme

Source

@whppt/layouts

npm version npm downloads Github Actions CI Codecov License

A layout plugin for @whppt/nuxt. Implement configurable layouts in seconds.

📖 Release Notes

Table of Contents

Features

Usage

  1. Add @whppt/layouts dependency to your project
yarn add @whppt/layouts # or npm install @whppt/layouts
  1. Add @whppt/layouts to the modules section of nuxt.config.js
{ modules: [ // Simple usage '@whppt/layouts', // With options ['@whppt/layouts', { /* module options */ }] ] }
  1. create a nuxt plugin, eg. ~/plugins/layouts.js
import Vue from 'vue' import layouts from '@whppt/layouts' Vue.use(layouts)
  1. Make a few updates to your ~/nuxt.config.js file.
export default { /* Rest of your config */ plugins: { '~/plugins/layouts.js', /* Rest of your plugins */ }, /* * Note: the transpile step is only required if using the Vue.use() method, * if using Vue.component() to register the components omit the following. */ build: { transpile: ['@whppt/layouts'], }, }
  1. Check the documentation for any layout components you wish to use on how to register and initialise each component in whppt.

Options

License

MIT License

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc