uiengine-adapter-vue

0.15.0 • Public • Published

UIengine template adapter for Vue.js

🚦 State: Proof of concept

Configuration

Plain and simple:

adapters:
  vue: uiengine-adapter-vue

With options:

adapters:
  vue:
    module: uiengine-adapter-vue
    options:
      debug: true
      bundle: /absolute-path-to/server-side-bundle.js

The debug option allows for a more detailed output in case of rendering errors.

The bundle option should be the absolute path to a module that exports a factory function for new Vue instances. This function should accepts an object with options that are passed into the new Vue instance:

export default function createApp (options = {}) {
  const opts = Object.assign({
    // provide all components that are needed for variant previews
    components: {
      MyLabel,
      MyInput,
      MyEtcetera
    }
  }, options)
 
  return new Vue(opts)
}

See the sample project vue folder for examples.

Package Sidebar

Install

npm i uiengine-adapter-vue

Weekly Downloads

2

Version

0.15.0

License

MIT

Unpacked Size

7.84 kB

Total Files

5

Last publish

Collaborators

  • dennisreimann