1.6.2 • Published 10 months ago

@disqada/workspace v1.6.2

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

Workspace

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 workspace.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

Shell Command

To call the package's functionality, use the workspace shell command, which accepts the following properties:

NameTyperequireddescription
pathArgumentNOconfiguration file path, default: "./workspace.json"
--no-configOptionNOUse it to not re-setup the configurations
--types OR -tOptionNOEmit declarations files
--docs OR -dOptionNOEmit documentations files

npm Scripts

Below are the recommended npm scripts:

We recommend regenerating the types every time the docs are created to be sure that we're documenting the latest types

  • types: Generates declarations after re-setting up configurations
  • docs: runes types then generates documentations
"scripts": {
  "types": "workspace ./workspace.json -t",
  "docs": "workspace ./workspace.json -t -d",
}

If you rarely change the configurations, you can make two script for each script to reduce the run time

"scripts": {
  "types": "workspace ./workspace.json -t --no-config",
  "types:conf": "workspace ./workspace.json -t",
  "docs": "workspace ./workspace.json -t -d  --no-config",
  "docs:conf": "workspace ./workspace.json -t -d",
}
1.6.2

10 months ago

1.5.3

11 months ago

1.6.1

11 months ago

1.5.2

11 months ago

1.6.0

11 months ago

1.5.1

1 year ago

1.5.0

1 year ago

1.4.0

1 year ago