Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uhyo/gulp-typed-css-modules
Gulp plugin for typed-css-modules
https://github.com/uhyo/gulp-typed-css-modules
Last synced: about 2 months ago
JSON representation
Gulp plugin for typed-css-modules
- Host: GitHub
- URL: https://github.com/uhyo/gulp-typed-css-modules
- Owner: uhyo
- License: mit
- Created: 2016-12-15T13:03:16.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-27T16:51:14.000Z (about 6 years ago)
- Last Synced: 2024-11-09T10:09:51.699Z (2 months ago)
- Language: JavaScript
- Size: 41 KB
- Stars: 3
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gulp-typed-css-modules
This is a gulp plugin for me, which wraps [typed-css-modules](https://github.com/Quramy/typed-css-modules).
## Installation
```sh
npm install --save-dev gulp-typed-css-modules
```## Usage
```js
const gulp = require('gulp');
const gulp_tcm = require('gulp-typed-css-modules');gulp.task('tcm', function(){
return gulp.src(["src/**/*.css"], {
base: '.',
})
.pipe(gulp_tcm())
.pipe(gulp.dest("./"));
});
```This will create `*.css.d.ts` files next to each `*.css` file.
### Providing `typed-css-modules`
To use your own `typed-css-modules` instead of the built-in one, do:```js
gulp_tcm({
tcm: require('typed-css-modules'),
})
```## Options
- **quiet**: if true, suppress warning messages from `typed-css-modules`.
- **tcm**: `typed-css-modules` module.Any other option is passed to `typed-css-modules` (`DtsCreator`).
## Contributing
welcome## Changelog
*Note: All dates are in JST.** **2.0.1** (2018-11-28): Downgraded dependencies. (`c97db67`)
* **2.0.0** (2018-11-28):
* Updated dependencies. This includes potential breaking change of `typed-css-modules`. (`7b0efa3`)
* Dropped support of node < 6. (`99f8b62`)
* **1.1.1** (2018-11-28): Updated dependencies. (`00a607c`)
* **1.1.0** (2017-05-07): Update built-in `typed-css-modules` from `0.1.3` to `0.2.0`. (`f408d78`)
* **1.0.0** (2016-12-15): The first version.## License
MIT