1.2.0 • Published 3 years ago

bikeshed-to-ts v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

bikeshed-to-ts

Creates a type definition file by parsing a lib specification in bikeshed format. Includes TypeDoc comments where available.

Getting started

Add the module to your project:

$ yarn add bikeshed-to-ts --dev

Run from the command line:

$ yarn bikeshed-to-ts --in <bikeshed_file> -- out <typedef_file>

Run from a script in your package.json:

{
  ...
  "scripts": {
    "peer": "bikeshed-to-ts --in <bikeshed_file> -- out <typedef_file>"
  },
  ...
}

Usage and available options can be found at:

$ yarn bikeshed-to-ts --help

It can be installed globally:

$ yarn global add bikeshed-to-ts

Usage

  Usage: bikeshed-to-ts --in <file-path> --out <file-path> [flags]

  Options:
    --in, -i		 Path to a bikeshed file to parse.
    --out, -o		 Path to a TypeScript definitions file to write.
    --forceGlobal, -f	 When present, all declarations will be added to the global context
    --nominal, -n	 When present, types declarations will be made nominal when possible
    --version, -v	 Print version and exit
1.2.0

3 years ago

1.1.1

3 years ago

1.1.2

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago