File tree 2 files changed +93
-0
lines changed
2 files changed +93
-0
lines changed Original file line number Diff line number Diff line change
1
+ # typed-css-modules-rollup-plugin
2
+
3
+ Generate declaration typings with glob support
4
+ This plugin is extended from [ typed-css-modules] ( https://github.com/Quramy/typed-css-modules ) plugin.
5
+
6
+ ## Installation
7
+
8
+ ``` bash
9
+ # yarn
10
+ yarn add typed-css-modules-rollup-plugin --dev
11
+
12
+ # npm
13
+ npm i typed-css-modules-rollup-plugin --save-dev
14
+ ```
15
+
16
+ ## Usage
17
+
18
+ ``` js
19
+ // rollup.config.js
20
+ import dts from " typed-css-modules-rollup-plugin" ;
21
+
22
+ export default {
23
+ input: " src/index.js" ,
24
+ output: {
25
+ file: " dist/app.js" ,
26
+ format: " cjs" ,
27
+ },
28
+ plugins: [dts ()],
29
+ };
30
+ ```
31
+
32
+ ### Configuration
33
+
34
+ There are some useful options:
35
+
36
+ ``` ts
37
+ interface RunOptions {
38
+ pattern? : string ;
39
+ outDir? : string ;
40
+ watch? : boolean ;
41
+ camelCase? : boolean ;
42
+ namedExports? : boolean ;
43
+ dropExtension? : boolean ;
44
+ silent? : boolean ;
45
+ listDifferent? : boolean ;
46
+ }
47
+ ```
48
+
49
+ ## License
50
+
51
+ MIT
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " typed-css-modules-rollup-plugin" ,
3
+ "description" : " a rollup plugin to create css modules typescript declaration files" ,
4
+ "version" : " 0.0.1" ,
5
+ "author" : " gzliew" ,
6
+ "main" : " dist/index.commonjs.js" ,
7
+ "module" : " dist/index.module.js" ,
8
+ "types" : " index.d.ts" ,
9
+ "scripts" : {
10
+ "test" : " echo \" Error: no test specified\" && exit 1"
11
+ },
12
+ "repository" : {
13
+ "type" : " git" ,
14
+ "url" : " git+https://github.com/GZLiew/typed-css-modules-rollup-plugin.git"
15
+ },
16
+ "files" : [
17
+ " dist" ,
18
+ " index.d.ts" ,
19
+ " readme.md"
20
+ ],
21
+ "keywords" : [
22
+ " rollup" ,
23
+ " plugin" ,
24
+ " typescript" ,
25
+ " css-modules" ,
26
+ " rollup-plugin" ,
27
+ " type" ,
28
+ " types" ,
29
+ " typed" ,
30
+ " css" ,
31
+ " modules" ,
32
+ " ts"
33
+ ],
34
+ "engines" : {
35
+ "node" : " >=16"
36
+ },
37
+ "license" : " MIT" ,
38
+ "bugs" : {
39
+ "url" : " https://github.com/GZLiew/typed-css-modules-rollup-plugin/issues"
40
+ },
41
+ "homepage" : " https://github.com/GZLiew/typed-css-modules-rollup-plugin#readme"
42
+ }
You can’t perform that action at this time.
0 commit comments