Skip to content

Commit

Permalink
Merge pull request #6 from GitScrum/milestone-0.0.1
Browse files Browse the repository at this point in the history
Milestone 0.0.1
  • Loading branch information
Scrum committed Apr 4, 2016
2 parents 4555ce7 + 3f9986e commit cd41d1b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 14 deletions.
9 changes: 6 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
root = true

[*]
indent_style = tab
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[{package.json,*.yml}]
indent_style = space
[{package.json,*.yml,*.jade,*.pss,*.css}]
indent_size = 2

[{*.js,*.jsx}]
indent_style = tab

[*.md]
trim_trailing_whitespace = false
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## [0.0.1] - 04-04-2016
### Added
- Added #4, babel-plugin-add-module-export

### Change
- Update #5, .editorconfig
- Update readme change tab to space
- Update remove default from require

## [0.0.0] - 23-03-2016
### Added
- Added #1, init project
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
.class,
[type="text"],
[class*="lorem"] {
color:red;
color:red;
}
```

Expand All @@ -18,7 +18,7 @@
.class,
[type="text"],
[class*="test-lorem"] {
color:red;
color:red;
}
```

Expand All @@ -34,16 +34,16 @@ $ npm install postcss-attribute-selector-prefix
// dependencies
var fs = require("fs");
var postcss = require("postcss");
var attrSelectorPrefix = require("postcss-attribute-selector-prefix").default;
var attrSelectorPrefix = require("postcss-attribute-selector-prefix");

// css to be processed
var css = fs.readFileSync("css/input.css", "utf8");

// process css
var output = postcss()
.use(attrSelectorPrefix({prefix: 'sl-'}))
.process(css)
.css;
.use(attrSelectorPrefix({prefix: 'sl-'}))
.process(css)
.css;

console.log(output);
```
Expand All @@ -68,7 +68,7 @@ Example: `['class', 'id']`
[type="text"],
[class*="lorem"],
[id^="myID"] {
color: red;
color: red;
}
```

Expand All @@ -78,7 +78,7 @@ Example: `['class', 'id']`
[type="text"],
[class*="test-lorem"],
[id^="test-myID"] {
color: red;
color: red;
}
```

Expand All @@ -95,7 +95,7 @@ Example: `['type', 'alt']`
[type="text"],
[alt*="ALT"],
[class*="class"] {
color: red;
color: red;
}
```

Expand All @@ -105,7 +105,7 @@ Example: `['type', 'alt']`
[type="text"],
[alt*="ALT"],
[class*="test-class"] {
color: red;
color: red;
}
```

Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "postcss-attribute-selector-prefix",
"version": "0.0.0",
"version": "0.0.1",
"description": "A attribute selector prefixer for postcss",
"main": "./lib/index.js",
"scripts": {
Expand All @@ -27,6 +27,9 @@
"babel": {
"presets": [
"node5"
],
"plugins": [
"add-module-exports"
]
},
"ava": {
Expand All @@ -40,6 +43,7 @@
"devDependencies": {
"ava": "^0.13.0",
"babel-cli": "^6.6.5",
"babel-plugin-add-module-exports": "^0.1.2",
"babel-preset-node5": "^11.0.0",
"babel-register": "^6.7.2",
"coveralls": "^2.11.8",
Expand Down

0 comments on commit cd41d1b

Please sign in to comment.