Skip to content
This repository was archived by the owner on Jun 6, 2022. It is now read-only.

Commit e578324

Browse files
committed
Initial release
0 parents  commit e578324

File tree

12 files changed

+250
-0
lines changed

12 files changed

+250
-0
lines changed

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"stage": 0
3+
}

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
charset = utf-8
6+
trim_trailing_whitespace = true
7+
insert_final_newline = true
8+
indent_style = space
9+
indent_size = 2
10+
11+
[*.{md,markdown}]
12+
# Allow <br/> from Markdown
13+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.gitignore

.eslintrc

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
# babel support more syntax stuff than eslint for now
3+
parser: babel-eslint
4+
5+
ecmaFeatures:
6+
modules: true
7+
8+
env:
9+
es6: true
10+
browser: true
11+
node: true
12+
13+
# 0: off, 1: warning, 2: error
14+
rules:
15+
# semicolons are useless
16+
semi: [2, "never"]
17+
18+
quotes: [2, "double"]
19+
20+
# 2 spaces indentation
21+
indent: [2, 2]
22+
23+
# trailing coma are cool for diff
24+
comma-dangle: [2, "always-multiline"]
25+
26+
# enforce comma at eol (never before)
27+
comma-style: [2, "last"]

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sudo: false
2+
language: node_js

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 1.0.0 - 2015-04-30
2+
3+
✨ First release

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2014 Maxime Thirouin
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# postcss-selector-not [![Build Status](https://travis-ci.org/postcss/postcss-selector-not.svg?branch=master)](https://travis-ci.org/postcss/postcss-selector-not)
2+
3+
> PostCSS plugin to transform `:not()` W3C CSS leve 4 pseudo class to :not() CSS level 3 selectors
4+
5+
## Installation
6+
7+
```console
8+
$ npm install postcss-selector-not
9+
```
10+
11+
## Usage
12+
13+
```js
14+
var postcss = require("postcss")
15+
16+
var output = postcss()
17+
.use(require("postcss-selector-not"))
18+
.process(require("fs").readFileSync("input.css", "utf8"))
19+
.css
20+
```
21+
22+
Using this `input.css`:
23+
24+
```css
25+
p:not(:first-child, .special) {
26+
color: red;
27+
}
28+
```
29+
30+
you will get:
31+
32+
```css
33+
p:not(:first-child), p:not(.special) {
34+
color: red;
35+
}
36+
```
37+
38+
---
39+
40+
## [Changelog](CHANGELOG.md)
41+
42+
## [License](LICENSE)

package.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"name": "postcss-selector-not",
3+
"version": "1.0.0",
4+
"description": "PostCSS plugin to transform :not() W3C CSS leve 4 pseudo class to :not() CSS level 3 selectors",
5+
"keywords": [
6+
"postcss",
7+
"selectors",
8+
"selector",
9+
"Not"
10+
],
11+
"author": "Maxime Thirouin",
12+
"license": "MIT",
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/postcss/postcss-selector-not.git"
16+
},
17+
"homepage": "https://github.com/postcss/postcss-selector-not",
18+
"bugs": {
19+
"url": "https://github.com/postcss/postcss-selector-not/issues"
20+
},
21+
"files": [
22+
"CHANGELOG.md",
23+
"LICENSE",
24+
"dist"
25+
],
26+
"main": "dist/index.js",
27+
"dependencies": {
28+
"balanced-match": "^0.2.0",
29+
"postcss": "^4.1.7"
30+
},
31+
"devDependencies": {
32+
"babel": "^5.1.13",
33+
"babel-eslint": "^3.0.1",
34+
"babel-tape-runner": "^1.1.0",
35+
"eslint": "^0.20.0",
36+
"tape": "^4.0.0"
37+
},
38+
"scripts": {
39+
"lint": "eslint .",
40+
"tape": "babel-tape-runner 'test/*.js'",
41+
"test": "npm run lint && npm run tape",
42+
"prepublish": "babel src --out-dir dist"
43+
}
44+
}

0 commit comments

Comments
 (0)