Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

docs-webpack-plugin

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docs-webpack-plugin

Generates a JSON object representing the documentation of your classes

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
2
Weekly downloads
 
Created
Source

docs-webpack-plugin

A webpack plugin for validating documentation and generating a json file representing your class' documentation

usage

var DocsPlugin = require('docs-webpack-plugin');

module.exports = {
    plugins: [
        new DocsPlugin({
            file: 'static/docs.json'
        })
    ]
};

cli

To aid in automated linting of your documentation, there is also a cli format under $(npm bin)/docs-cli. Run it with no parameters for information about the interface.

format

reading the dsl specification is a bit of a chore, so make a comment on top of each of your classes that looks a little like this:

/**\

    title: MyComponent
    category: component
    description: A super sweet component for making interfaces
    props:
        label[String]: What shows up on top
        onClick: What gets called on a click

\**/

Keywords

FAQs

Package last updated on 04 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc