Coder Social home page Coder Social logo

jsdoc-brunch's Introduction

jsdoc-brunch

Adds JSDoc support to brunch.

Read more about JSDoc at the JSDoc homepage

##Why this package The JSDoc package is already simple to use, and you can easily implement it in your own automated build config script files. However, I wanted an even more simple and automated workflow for it, so I made a brunch-plugin to do the work for me. And now, you can too ^_^

Installing

run npm install --save jsdoc-brunch

##Brunch config (All config optional, so you can skip this if you want to)

Inside the Brunch config file config.js add these parameters under the plugins object as shown here:

plugins: {
    jsdoc: {
        input: "app/anySubDir", /* optional, default 'app' */
        destination: 'public/dir/to/docs', /* optional, default 'public/jsdocs' */
        recursive: false /* optional, default true */
        enabled: false /* optional, default true */
    }

The input specifies the location of the JS files to go through. (Default: "app")

The destination specifies the location you want the docs to end up. (Default: "public/jsdocs")

The recursive specifies if it should recursively scan the input folder. (Default: true)

The enabled allows you to disable jsdoc during testing, by setting this to false. (Default: true)

##Then what? Now, when Brunch compiles your code, it also tells JSDoc to search your specified input folder, and parse the js-files. It outputs it's files to the specified destination folder.

By defeault, the output is in the public folder, so if you are running the Brunch server, you can view the docs locally. As of 0.1.0, It even works with the built-in auto reload feature in Brunch ^^

##Todo This plugin is really just a very simple wrapper for the already simple JSDocs npm package.

Here are some stuff that you can do, if you know how :)

jsdoc-brunch's People

Contributors

dagjomar avatar jcruz2us avatar

Watchers

Charles Drappier avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.