Skip to content

Commit ba38dfd

Browse files
committed
bem add combined selectors supported
1 parent ff88b0e commit ba38dfd

File tree

7 files changed

+11
-6
lines changed

7 files changed

+11
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
lib/
2+
_site/
23
node_modules/
34
src/test/features/*.actual.css
45
npm-debug.log

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
lib/test
2+
_site/
23
node_modules/
34
npm-debug.log

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## Version 1.0.1
2+
bem add combined selectors supported.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postcss-salad",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "沙拉是一个能够帮助你更加写出更加简洁、优雅的CSS的样式解决方案。",
55
"main": "lib/index.js",
66
"scripts": {
@@ -15,7 +15,7 @@
1515
"chalk": "^1.1.1",
1616
"pixrem": "^3.0.0",
1717
"postcss": "^5.0.4",
18-
"postcss-bem": "^0.4.1",
18+
"saladcss-bem": "^0.0.1",
1919
"postcss-calc": "^5.0.0",
2020
"postcss-css-reset": "^1.0.2",
2121
"postcss-initial": "^1.3.1",

src/features.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export default {
1515
// https://npmjs.com/package/postcss-utils
1616
utils: (options) => require("postcss-utils")(options),
1717

18-
// https://npmjs.com/package/postcss-bem
19-
bem: (options) => require("postcss-bem")(options),
18+
// https://npmjs.com/package/saladcss-bem
19+
bem: (options) => require("saladcss-bem")(options),
2020

2121
// https://npmjs.com/package/postcss-calc
2222
calc: (options) => require("postcss-calc")(options),

src/test/features/bem.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
@utility utilityName {
1+
@utility Name,
2+
Name2 {
23
color: green;
34
}
45

src/test/features/bem.expected.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.u-utilityName {
1+
.u-Name, .u-Name2 {
22

33
color: green
44
}

0 commit comments

Comments
 (0)