This repository was archived by the owner on Feb 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ What is this? For example, you have the following CSS file:
29
29
And the plugin will give you a TypeScript file like this:
30
30
31
31
** componentName.ts**
32
- ``` typescript
32
+ ``` javascript
33
33
export const componentNameStyle = {
34
34
componentName: ' ComponentName' ,
35
35
componentDescendentName: ' ComponentName-descendentName' ,
@@ -39,7 +39,7 @@ export const componentNameStyle = {
39
39
So, you can import the TypeScript file
40
40
41
41
** Note: you have to import first the componentName.css**
42
- ``` typescript
42
+ ``` javascript
43
43
import ' ./componentName.css' ;
44
44
import { componentNameStyle } from ' ./componentName' ;
45
45
@@ -67,11 +67,15 @@ postcss([
67
67
]);
68
68
```
69
69
## Options
70
+
70
71
### Note: only use the options if you are using [ postcss-modules]
72
+
71
73
#### cssFileName
72
74
Type: string
75
+
73
76
#### content
74
77
Type: object (JSON object)
78
+
75
79
## Testing
76
80
This will build scripts, run tests and generate a code coverage report. Anything less than 100% coverage will throw an error.
77
81
``` javascript
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " postcss-typescript-css" ,
3
- "version" : " 0.1.1 " ,
3
+ "version" : " 0.1.2 " ,
4
4
"description" : " PostCSS plugin to create a typescript file by each CSS file" ,
5
5
"main" : " dist/postcss-typescript-css" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments