Skip to content
WordPress module for Vue.js, PWA ready, with full support for Vuex Store, Vue Router, Vue SSR and Nuxt.js.
TypeScript Vue JavaScript Shell
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
components Got rid of "config" in module's config Jun 24, 2019
docs Meta uses embedded data Aug 19, 2019
mixins Meta uses embedded data Aug 19, 2019
pages loadSections, page, post, meta, media Jun 11, 2019
plugin Update Aug 7, 2019
router
store
tests/unit Embed supported Aug 19, 2019
types
util
.gitignore 1.0.32 Changed settings of npm publishing May 26, 2019
.npmignore NPM Ignore tests folder May 16, 2019
LICENSE
README.md Update README.md Jul 30, 2019
index.ts Got rid of wp lang module Aug 7, 2019
package.json
prepare.sh
tsconfig.json
yarn.lock Yarn Upgrade Jul 16, 2019

README.md

Vue Wordpress Core Module


Vue.js module for WordPress, PWA ready, with full support for Vuex Store, Vue Router, Vue SSR and Nuxt.js https://vuewordpress.io/



Installation


Vue.js


1. Go to your app's main directory and run:

npm install @vue-wordpress/core

or

yarn add @vue-wordpress/core

2. Go to your app's main.js / main.ts file, import the module catalog and register it:

import  Vue  from  'vue'

import  Wordpress  from  '@vue-wordpress/core'

Vue.use(Wordpress, {
  config: {
    url:  'https://your-wordpress-url.com/',
    lang:  'en' // Your site's default language – It will be added to the html lang attribute.
  },
  store,
  router
  // Injecting VueX Store and Router is obligatory
})

And that is it – you are ready to go!


Nuxt.js


If you want to use this module with Nuxt.js, we have created a dedicated package available here: @vue-wordpress/nuxt


Vue Storefront


If you want to use this module with Vue Storefront, we have created a dedicated package available here: @vue-wordpress/vsf

You can’t perform that action at this time.