ts-emeth
TypeScript icon, indicating that this package has built-in type declarations

1.3.5 • Public • Published

TS-Emeth

Tool for creating types for css modules with typescript typing and emeth.

Node.js CI

Usage

Run it as a background process

$ yarn run tse -w ./src/**/*.cssm

or in a single shot

$ yarn run tse ./src/**/*.cssm

Help

$ yarn run tse -h

Run with mrbuilder

Add ts-emeth as a mrbuilder plugin before the @mrbuilder/plugin-css. Order unfortunately matters.

 "mrbuilder": {
    "plugins": [
      "ts-emeth",
      [
        "@mrbuilder/plugin-css",
        {
          "modules": "/\\.cssm$/"
        }
      ]
    ]
  }

Run with postcss

Add the ts-emeth as a plugin for postcss.

  postcss.plugins([...,require('ts-emeth')()]).process('css');

Readme

Keywords

none

Package Sidebar

Install

npm i ts-emeth

Weekly Downloads

0

Version

1.3.5

License

MIT

Unpacked Size

71.7 kB

Total Files

86

Last publish

Collaborators

  • speajus