0.3.0 • Published 8 months ago

@css-modules-kit/codegen v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

@css-modules-kit/codegen

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

Installation

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

Requirements

Set cmkOptions.dtsOutDir and "." to rootDirs. This is necessary for the tsc command to load the generated *.d.ts files.

{
  "compilerOptions": {
    "rootDirs": [".", "generated"] // Required
  },
  "cmkOptions": {
    "dtsOutDir": "generated" // Default is `"generated"`, so it can be omitted
  }
}

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.

Configuration

See css-modules-kit's README.

0.3.0

8 months ago

0.2.0

11 months ago

0.1.4

11 months ago

0.1.3

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago

0.0.1

12 months ago