0.0.7 • Published 3 years ago

nuxt-podium-module v0.0.7

Weekly downloads
64
License
MIT
Repository
github
Last release
3 years ago

nuxt-podium-module

npm version npm downloads Github Actions CI License

Features

  • Zero configuration
  • Hot reload support
  • Sandbox to manage events

Quick Setup

  1. Add nuxt-podium-module dependency to your project:
#using yarn
yarn add --dev nuxt-podium-module
# using npm
npm install --save-dev nuxt-podium-module

Configure

Then, add nuxt-podium-module section in nuxt.config.js:

export default {
  nuxt-podium-module: {
    // Options
  }
}

Options

Optiontypedefaultdescription
podletOptions{}used to add the podlet options, to more information you can read the podium-lib documentation here
sandboxboolean, SandboxOptionfalseused to simulate events into your app

podletOptions

Optiontypedefaultdescription
namestring'generic'used to name the application
versionstring'0.0.0'version of your app
pathnamestring'/'path of your app
manifeststring'/manifest.json'path to get manifest of your app
developmentbooleanfalseused to deploy app in mode development

podlet option example:

podletOptions: {
  name: 'myPodletName', // required
  version: '1.0.0', // required
  pathname: '/', // required
  manifest: '/manifest.json', // optional
  development: true, // optional, defaults to false
},

Sandbox Options

Optiontypedefaultdescription
eventsarray of events[]used to give initial events

sandbox option example:

sandbox: {
  events: [
    {
      channel: 'fe-section-header',
      topic: 'auth',
      payload: {
        user: {
          name: 'User Test 2',
        }
      }
    }
  ]
}

Development

  1. Clone this repository
  2. Install dependencies using yarn install
  3. Start storybook server using yarn dev

License

MIT License

Copyright (c)

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago