@vuedoc/plugin-vuex
v1.0.0-beta2
Published
Vuex plugin for Vuedoc
Downloads
3
Readme
Vuex Vuedoc Plugin
This adds support of Vuex on Vuedoc
Install
This package is ESM only : Node 16+ is needed to use it and it must be imported instead of required.
npm install --save @vuedoc/plugin-vuex
Usage
Usage with Vuedoc Markdown
// vuedoc.config.js
import { Loader } from '@vuedoc/parser';
import { createVuexPlugin } from '@vuedoc/plugin-vuex';
export default {
output: 'docs/',
parsing: {
plugins: [
createVuexPlugin([
'path/to/store.js',
]),
],
},
};
Then:
vuedoc-md --config vuedoc.config.js components/*.vue
Usage with Vuedoc Parser
import { parseComponent } from '@vuedoc/parser';
import { createVuexPlugin } from '@vuedoc/plugin-vuex';
const component = await parseComponent({
filename: 'test/examples/classic/counter-hot/CounterControls.vue',
plugins: [
createVuexPlugin([
'path/to/store.js',
]),
],
});
Development Setup
At the top-level of your project run:
direnv allow
The next time your launch your terminal and enter the top-level of your project,
direnv
will check for changes.
Versioning
Given a version number MAJOR.MINOR.PATCH
, increment the:
MAJOR
version when you make incompatible API changes,MINOR
version when you add functionality in a backwards-compatible manner, andPATCH
version when you make backwards-compatible bug fixes.
Additional labels for pre-release and build metadata are available as extensions
to the MAJOR.MINOR.PATCH
format.
See SemVer.org for more details.
License
Under the MIT license. See LICENSE file for more details.