# jsdoc-vuejs **Repository Path**: mirrors_SuperMap/jsdoc-vuejs ## Basic Information - **Project Name**: jsdoc-vuejs - **Description**: 📖 A JSDoc plugin for documenting .vue files. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-08-18 - **Last Updated**: 2025-11-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README JSDoc for VueJS =============== [![npm version](https://badge.fury.io/js/jsdoc-vuejs.svg)](https://badge.fury.io/js/jsdoc-vuejs) [![Build Status (Travis)](https://travis-ci.org/Kocal/jsdoc-vuejs.svg?branch=master)](https://travis-ci.org/Kocal/jsdoc-vuejs) [![Build Status (AppVeyor)](https://ci.appveyor.com/api/projects/status/a36pui6w1qhqq582?svg=true)](https://ci.appveyor.com/project/Kocal/jsdoc-vuejs) [![codecov](https://codecov.io/gh/Kocal/jsdoc-vuejs/branch/master/graph/badge.svg)](https://codecov.io/gh/Kocal/jsdoc-vuejs) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/850b7601f2bf4e8787a6aadbafa8afef)](https://www.codacy.com/app/kocal/jsdoc-vuejs?utm_source=github.com&utm_medium=referral&utm_content=Kocal/jsdoc-vuejs&utm_campaign=Badge_Grade) > A JSDoc plugin for listing props, data, computed data, and methods from *.vue files. ## Installation ```bash $ npm install --save-dev jsdoc-vuejs ``` You also need to install `vue-template-compiler` that match your Vue version: ```bash # if you use Vue 2.5.21 $ npm install --save-dev vue-template-compiler@2.5.21 ``` ## Usage Your should update your JSDoc configuration to enable JSDoc-VueJS: ```json { "plugins": [ "node_modules/jsdoc-vuejs" ], "source": { "includePattern": "\\.(vue|js)$" } } ``` Update your .vue files with one of the following tags: - `@vue-prop` - `@vue-data` - `@vue-computed` - `@vue-event` All of those tags work the same way than [`@param` tag](http://usejsdoc.org/tags-param.html). ```vue ``` ## Supported templates The rendering engine has been rewritten in v2, it can supports every JSDoc templates that exists. Actually, it supports 4 templates: - Default - [Docstrap](https://github.com/docstrap/docstrap) - [Minami](https://github.com/nijikokun/minami) - [Tui](https://github.com/nhnent/tui.jsdoc-template) If you use a template that is not supported, it will use the default one as a fallback. Feel free to open an issue/pull request if your template is not supported!
Default ![](./screenshots/templates/default.png)
Docstrap ![](./screenshots/templates/docstrap.png)
Minami ![](./screenshots/templates/minami.png)
Tui ![](./screenshots/templates/tui.png)
## Testing ### Install Dependencies ```bash $ git clone https://github.com/Kocal/jsdoc-vuejs $ cd jsdoc-vuejs $ yarn install # For testing the example docs $ cd example $ yarn install ``` #### Generate documentations ```bash $ cd example # Generate docs for every renderer $ yarn docs:all # or one by one $ yarn docs # default jsdoc template $ yarn docs:docstrap $ yarn docs:minami $ yarn docs:tui ``` ### Unit ```bash $ yarn test ``` ### E2E Before running integration tests with [Cypress](https://cypress.io), you should generate documentation with all renderers: ```bash $ cd example $ yarn docs:all ``` And then run Cypress: ```bash $ cd .. $ yarn cypress run ``` ## License MIT.