Comparing version 0.0.0 to 0.0.2
{ | ||
"name": "css-kits", | ||
"version": "0.0.0", | ||
"version": "0.0.2", | ||
"description": "Parse css to javascript object. Support change class and id", | ||
@@ -32,2 +32,3 @@ "main": "./lib/index.js", | ||
"@types/node": "^18.11.18", | ||
"@types/prettier": "^2.7.2", | ||
"prettier": "^2.8.3", | ||
@@ -37,5 +38,4 @@ "sass": "^1.57.1" | ||
"dependencies": { | ||
"@types/prettier": "^2.7.2", | ||
"strkits": "^1.1.0" | ||
"strkits": "^1.2.0" | ||
} | ||
} |
@@ -56,4 +56,6 @@ import { styleForEach } from './helpful'; | ||
export function standardizeStyleSheet(subject: string): string { | ||
const lineBreakChar = StrKits.getLineBreakChar(subject); | ||
return removeAllComments(subject) | ||
.split('\n') | ||
.split(lineBreakChar) | ||
.map((line) => line.trim()) | ||
@@ -60,0 +62,0 @@ .filter((line) => line.length > 0) |
[ | ||
{ | ||
"type": "rule-set", | ||
"selectors": [".header_new_"], | ||
"selectors": [ | ||
".header_new_" | ||
], | ||
"declarationBlock": { | ||
@@ -14,3 +16,5 @@ "display": "block", | ||
"type": "rule-set", | ||
"selectors": [".header_new_ > a"], | ||
"selectors": [ | ||
".header_new_ > a" | ||
], | ||
"declarationBlock": { | ||
@@ -25,3 +29,5 @@ "display": "block", | ||
"type": "rule-set", | ||
"selectors": [".header_new_ > div"], | ||
"selectors": [ | ||
".header_new_ > div" | ||
], | ||
"declarationBlock": { | ||
@@ -35,3 +41,5 @@ "display": "block", | ||
"type": "rule-set", | ||
"selectors": [".header_new_ div"], | ||
"selectors": [ | ||
".header_new_ div" | ||
], | ||
"declarationBlock": { | ||
@@ -55,3 +63,5 @@ "width": "100px", | ||
"type": "rule-set", | ||
"selectors": ["0%"], | ||
"selectors": [ | ||
"0%" | ||
], | ||
"declarationBlock": { | ||
@@ -65,3 +75,5 @@ "backgroundColor": "red", | ||
"type": "rule-set", | ||
"selectors": ["25%"], | ||
"selectors": [ | ||
"25%" | ||
], | ||
"declarationBlock": { | ||
@@ -75,3 +87,5 @@ "backgroundColor": "yellow", | ||
"type": "rule-set", | ||
"selectors": ["50%"], | ||
"selectors": [ | ||
"50%" | ||
], | ||
"declarationBlock": { | ||
@@ -85,3 +99,5 @@ "backgroundColor": "blue", | ||
"type": "rule-set", | ||
"selectors": ["75%"], | ||
"selectors": [ | ||
"75%" | ||
], | ||
"declarationBlock": { | ||
@@ -95,3 +111,5 @@ "backgroundColor": "green", | ||
"type": "rule-set", | ||
"selectors": ["100%"], | ||
"selectors": [ | ||
"100%" | ||
], | ||
"declarationBlock": { | ||
@@ -172,3 +190,5 @@ "backgroundColor": "red", | ||
"type": "rule-set", | ||
"selectors": ["from"], | ||
"selectors": [ | ||
"from" | ||
], | ||
"declarationBlock": { | ||
@@ -180,3 +200,5 @@ "transform": "rotate(0deg)" | ||
"type": "rule-set", | ||
"selectors": ["to"], | ||
"selectors": [ | ||
"to" | ||
], | ||
"declarationBlock": { | ||
@@ -195,3 +217,5 @@ "transform": "rotate(360deg)" | ||
"type": "rule-set", | ||
"selectors": [".test-media_new_"], | ||
"selectors": [ | ||
".test-media_new_" | ||
], | ||
"declarationBlock": { | ||
@@ -214,3 +238,5 @@ "display": "block", | ||
"type": "rule-set", | ||
"selectors": [".padding-sm_new_"], | ||
"selectors": [ | ||
".padding-sm_new_" | ||
], | ||
"declarationBlock": { | ||
@@ -222,3 +248,5 @@ "padding": "0.5rem" | ||
"type": "rule-set", | ||
"selectors": [".padding-lg_new_"], | ||
"selectors": [ | ||
".padding-lg_new_" | ||
], | ||
"declarationBlock": { | ||
@@ -230,2 +258,2 @@ "padding": "0.8rem" | ||
} | ||
] | ||
] |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
70557
1
1501
4
- Removed@types/prettier@^2.7.2
- Removed@types/prettier@2.7.3(transitive)
Updatedstrkits@^1.2.0