Skip to content

Latest commit

 

History

History
57 lines (48 loc) · 934 Bytes

UPGRADE.md

File metadata and controls

57 lines (48 loc) · 934 Bytes

Upgrade from 1.x to 2.x

Configuration

You MUST remove jsdoc-vuejs configuration key inside JSDoc config file, because it is not used anymore.

Before:

{
  "plugins": [
    "node_modules/jsdoc-vuejs"
  ],
  "source": {
    "includePattern": "\\.(vue|js)$"
  },
  "jsdoc-vuejs": {
    "followImports": true // enable/disable require/import function 
  }
}

After:

{
  "plugins": [
    "node_modules/jsdoc-vuejs"
  ],
  "source": {
    "includePattern": "\\.(vue|js)$"
  }
}

Usage

You SHOULD NOT use @vue tag anymore.

Instead, you should use @vue-prop, @vue-data, and @vue-computed like this:

<template>
  <div>Hello world</div>
</template>

<script>
/**
* @vue-prop {Number} initialCounter
* @vue-prop {Number} [step=1] Step
* @vue-data {Number} counter - Current counter's value
* @vue-computed {String} message A message
*/
export default {
  // ...
}
</script>