@johmun/vue-tags-input
Version:
A tags input component for VueJS with autocompletion, custom validation, templating and much more
13 lines (10 loc) • 404 B
JavaScript
const documentation = require('documentation');
const path = require('path');
module.exports = function() {
const callback = this.async();
const filepath = path.relative(process.cwd(), this.resourcePath);
documentation.build(['./' + filepath], {
extension: ['js', 'vue'],
}).then(documentation.formats.json)
.then(res => callback(null, 'module.exports = ' + res + ';'));
};