ts-emeth
v1.3.5
Published
CSS Modules cli for emeth and TypeScript
Downloads
22
Readme
TS-Emeth
Tool for creating types for css modules with typescript typing and emeth.
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');