Skip to content
This repository has been archived by the owner on Dec 12, 2017. It is now read-only.

Commit

Permalink
bem add combined selectors supported
Browse files Browse the repository at this point in the history
  • Loading branch information
baiyaaaaa committed May 16, 2016
1 parent ff88b0e commit ba38dfd
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,4 +1,5 @@
lib/
_site/
node_modules/
src/test/features/*.actual.css
npm-debug.log
1 change: 1 addition & 0 deletions .npmignore
@@ -1,3 +1,4 @@
lib/test
_site/
node_modules/
npm-debug.log
2 changes: 2 additions & 0 deletions CHANGELOG.md
@@ -0,0 +1,2 @@
## Version 1.0.1
bem add combined selectors supported.
4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "postcss-salad",
"version": "1.0.0",
"version": "1.0.1",
"description": "沙拉是一个能够帮助你更加写出更加简洁、优雅的CSS的样式解决方案。",
"main": "lib/index.js",
"scripts": {
Expand All @@ -15,7 +15,7 @@
"chalk": "^1.1.1",
"pixrem": "^3.0.0",
"postcss": "^5.0.4",
"postcss-bem": "^0.4.1",
"saladcss-bem": "^0.0.1",
"postcss-calc": "^5.0.0",
"postcss-css-reset": "^1.0.2",
"postcss-initial": "^1.3.1",
Expand Down
4 changes: 2 additions & 2 deletions src/features.js
Expand Up @@ -15,8 +15,8 @@ export default {
// https://npmjs.com/package/postcss-utils
utils: (options) => require("postcss-utils")(options),

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

// https://npmjs.com/package/postcss-calc
calc: (options) => require("postcss-calc")(options),
Expand Down
3 changes: 2 additions & 1 deletion src/test/features/bem.css
@@ -1,4 +1,5 @@
@utility utilityName {
@utility Name,
Name2 {
color: green;
}

Expand Down
2 changes: 1 addition & 1 deletion src/test/features/bem.expected.css
@@ -1,4 +1,4 @@
.u-utilityName {
.u-Name, .u-Name2 {

color: green
}
Expand Down

0 comments on commit ba38dfd

Please sign in to comment.