0.0.2 • Published 4 years ago
gfinity-ad-plugin v0.0.2
Gfinity Ad Plugin
Usage
Install
npm install --save @cevo/gfinity-ad-plugin
Setup
// ~/plugins/ad-plugin.js
import Vue from 'vue'
import AdPlugin from '@cevo/gfinity-ad-plugin/'
const ids = {
'300x250d-1': 'abc123',
'300x250d-2': 'abc456',
'300x250d-3': 'abc789',
'300x250s-1': 'def123',
'300x250s-2': 'def456',
'300x250s-3': 'def789',
}
Vue.use(AdPlugin, { idMap: ids })
// nuxt.config.js
plugins: [
{ src: '~/plugins/gfinity-ad.js', mode: 'client' }
]
// Example in pages/index.vue
<template>
<div>
<div>Lorem ipsum</div>
<venatus-ad size="300x250d-1" />
</div>
</template>
Releasing new versions
Below command will git commit and git tag the repository after updating the version number of the project in package.json. Use this to bump the version before publishing.
npm run build
npm version [major|minor|patch] -m "Upgrade to %s for reasons"
npm publish