Skip to content

Commit 42ff076

Browse files
committed
moved css preprocessing to @heml/styles
1 parent b4a6a3e commit 42ff076

File tree

6 files changed

+87
-162
lines changed

6 files changed

+87
-162
lines changed

packages/heml-parse/package-lock.json

Lines changed: 0 additions & 125 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/heml-parse/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@
2323
"dependencies": {
2424
"cheerio": "^1.0.0-rc.2",
2525
"crypto-random-string": "^1.0.0",
26-
"css-selector-tokenizer": "^0.7.0",
2726
"html-tags": "^2.0.0",
28-
"lodash": "^4.17.4",
29-
"postcss": "^6.0.14",
30-
"postcss-safe-parser": "^3.0.1"
27+
"lodash": "^4.17.4"
3128
}
3229
}

packages/heml-parse/src/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { load } from 'cheerio'
22
import closeSelfClosingNodes from './closeSelfClosingNodes'
33
import openWrappingNodes from './openWrappingNodes'
44
import extractInlineStyles from './extractInlineStyles'
5-
import preprocessStyles from './preprocessStyles'
65

76
function parse (contents, options = {}) {
87
const {
@@ -32,7 +31,6 @@ function parse (contents, options = {}) {
3231
closeSelfClosingNodes($, elements)
3332
openWrappingNodes($, elements)
3433
extractInlineStyles($, elements)
35-
preprocessStyles($, elements)
3634

3735
return $
3836
}

packages/heml-styles/package-lock.json

Lines changed: 54 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/heml-styles/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
},
2323
"dependencies": {
2424
"css-declaration-sorter": "^2.1.0",
25+
"css-selector-tokenizer": "^0.7.0",
2526
"css-shorthand-expand": "^1.1.0",
2627
"lodash": "^4.17.4",
2728
"postcss": "^6.0.13",

0 commit comments

Comments
 (0)