Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.07 KB

File metadata and controls

35 lines (25 loc) · 1.07 KB

@css-modules-kit/codegen

A tool for generating *.d.ts files for *.module.css.

Installation

npm i -D @css-modules-kit/codegen

Usage

From the command line, run the cmk command.

$ # Generate .d.ts for .module.css
$ npx cmk

$ # Show help
$ npx cmk --help
Usage: cmk [options]

Options:
  --help, -h             Show help information
  --version, -v          Show version number
  --project, -p          The path to its configuration file, or to a folder with a 'tsconfig.json'.
  --pretty               Enable color and formatting in output to make errors easier to read.
  --clean                Remove the output directory before generating files.                       [default: false]
  --watch, -w            Watch for changes and regenerate files.                                    [default: false]
  --preserveWatchOutput  Disable wiping the console in watch mode.                                  [default: false]

Configuration

See css-modules-kit's README.