https://github.com/jspears/ts-emeth
Typescript Helpers for Emeth
https://github.com/jspears/ts-emeth
Last synced: 3 months ago
JSON representation
Typescript Helpers for Emeth
- Host: GitHub
- URL: https://github.com/jspears/ts-emeth
- Owner: jspears
- Created: 2020-02-19T20:15:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-11T22:45:34.000Z (over 2 years ago)
- Last Synced: 2024-04-26T06:04:34.268Z (about 1 year ago)
- Language: TypeScript
- Size: 328 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
TS-Emeth
===
Tool for creating types for css modules with typescript typing and emeth.
## Usage
Run it as a background process```sh
$ yarn run tse -w ./src/**/*.cssm
```or in a single shot
```sh
$ yarn run tse ./src/**/*.cssm
```## Help
```sh
$ yarn run tse -h
```## Run with mrbuilder
Add ts-emeth as a mrbuilder plugin before the `@mrbuilder/plugin-css`. Order
unfortunately matters.```json
"mrbuilder": {
"plugins": [
"ts-emeth",
[
"@mrbuilder/plugin-css",
{
"modules": "/\\.cssm$/"
}
]
]
}```
## Run with postcss
Add the ts-emeth as a plugin for postcss.```js
postcss.plugins([...,require('ts-emeth')()]).process('css');
```