1.4.0 • Published 3 months ago

@disqada/typedoc v1.4.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 months ago

TypeDoc

Badges

github npm

version monthly downloads

Test semantic-release

Table of Contents

About

This tool is used to generate both declarations and documentations with couple of clicks.

License

Copyright © 2022 DisQada

This framework is licensed under the Apache License, Version 2.0.
See the LICENSE file for more information.

Getting started

Configurations

Add the file docconfig.json to your project, below a table of all possible configurations that can be used.

PropertyTypeDefault valueDescription
rootstringsrcSource code folder
typesstringtypesGenerate declarations into this folder
outstringdocsGenerate documentation this folder
npmstringnameProject name in npm
githubstringNameProject name in GitHub

Usage

npm scripts

The tool is used via npm scripts that are already defined in it's package.json file, and can be called from your project npm scripts directly.

Below are the available npm scripts:

  • setup: Install the required packages as dev dependencies
  • config: Read and cache the configuration file
  • types: Generate declarations using cached configurations then clean
  • clean: Clean the declaration files
  • doc/docs: Generate documentations using cached configurations

First thing to do is to run the following command to install all the necessary dependencies

npm explore @disqada/typedoc -- npm run setup

You'll most likely have the following scripts, use the setup script on initialisation and every time you update the configuration file, then use the types and doc/docs scripts for generating declarations and documentation

"scripts": {
    "config": "npm explore @disqada/typedoc -- npm run config",
    "types": "npm explore @disqada/typedoc -- npm run types",
    "docs": "npm explore @disqada/typedoc -- npm run docs"
}

If you're constantly changing the configurations, you can make one script that reads the configurations and generates the declarations/documentation like the following example:

"scripts": {
    "types": "npm explore @disqada/typedoc -- npm run config && npm explore @disqada/typedoc -- npm run types",
    "docs": "npm explore @disqada/typedoc -- npm run config && npm explore @disqada/typedoc -- npm run docs"
}
1.4.0

3 months ago

1.3.2

4 months ago

1.3.1

4 months ago

1.3.0

4 months ago

1.2.1

4 months ago

1.2.0

5 months ago

1.1.0

5 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago