nuxt-feed-yandex-market
A Nuxt.js module that generates an XML file for Yandex.Market (YML)
A wrapper over Yandex Market Language(YML) that generates a JSON object into the xml file, heavily inspired by nuxt-community/feed-module. The module supports Nuxt 2.x. There is yarn run generate support.
Simple usage
- Install
yarn add nuxt-feed-yandex-market - Add
nuxt-feed-yandex-markettomodulessection ofnuxt.config.js
export default {
modules: [
'nuxt-feed-yandex-market'
],
// @deprecated use feedYml
yandexMarket: {},
feedYml: {
data: {}, // JSON with data or a function that returns the JSON
path: '/yandex-market.xml', // The route to your xml file
validate: true,
cacheTime: 1000 * 3600 * 24
}
}
or
export default {
modules: [
'nuxt-feed-yandex-market'
],
feedYml: [
{
async data () {
// await axios
return {
name: 'SuperShop',
company: 'Tne Best inc.',
url: 'https://yesworld.github.io/portfolio/',
...
}
},
path: '/yandex-market.xml',
validate: true,
cacheTime: 1000 * 3600 * 24
},
{
data: {},
path: '/aliexpress.xml'
}
]
}
License
Copyright (c) :suspect: @yesworld
Related Packages
vue-electron-json-storage
A vue plugin that attaches electron-json-storage APIs to the Vue object, making...
3,346
1
Version History
| Version | Released | License |
|---|---|---|
| 1.0.0 | MIT | |
| 0.4.4 | MIT | |
| 0.4.3 | MIT | |
| 0.4.2 | MIT | |
| 0.4.1 | MIT | |
| 0.4.0 | MIT | |
| 0.3.0 | MIT | |
| 0.2.0 | MIT | |
| 0.1.0 | MIT |