Skip to content
This repository was archived by the owner on Feb 16, 2021. It is now read-only.

Commit 033f173

Browse files
committed
Merge branch 'hotfix/v0.1.2'
2 parents 30c3af6 + c193c13 commit 033f173

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

.npmignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.*
2+
*.map
3+
*.spec.*
4+
.nyc_output/
5+
.vscode/
6+
coverage/
7+
src/
8+
tsconfig.json
9+
tslint.json

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ What is this? For example, you have the following CSS file:
2929
And the plugin will give you a TypeScript file like this:
3030

3131
**componentName.ts**
32-
```typescript
32+
```javascript
3333
export const componentNameStyle = {
3434
componentName: 'ComponentName',
3535
componentDescendentName: 'ComponentName-descendentName',
@@ -39,7 +39,7 @@ export const componentNameStyle = {
3939
So, you can import the TypeScript file
4040

4141
**Note: you have to import first the componentName.css**
42-
```typescript
42+
```javascript
4343
import './componentName.css';
4444
import { componentNameStyle } from './componentName';
4545

@@ -67,11 +67,15 @@ postcss([
6767
]);
6868
```
6969
## Options
70+
7071
### Note: only use the options if you are using [postcss-modules]
72+
7173
#### cssFileName
7274
Type: string
75+
7376
#### content
7477
Type: object (JSON object)
78+
7579
## Testing
7680
This will build scripts, run tests and generate a code coverage report. Anything less than 100% coverage will throw an error.
7781
```javascript

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postcss-typescript-css",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "PostCSS plugin to create a typescript file by each CSS file",
55
"main": "dist/postcss-typescript-css",
66
"scripts": {

0 commit comments

Comments
 (0)