postcss-nested 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.0.1
2
+ * Clean up npm package.
3
+
1
4
  ## 1.0
2
5
  * Use PostCSS 5.0 API.
3
6
  * Do not add spaces to selector in compressed CSS.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  <img align="right" width="135" height="95"
4
4
  title="Philosopher’s stone, logo of PostCSS"
5
- src="http://postcss.github.io/postcss/logo-leftp.png">
5
+ src="http://postcss.github.io/postcss/logo-leftp.svg">
6
6
 
7
7
  [PostCSS] plugin to unwrap nested rules like how Sass does it.
8
8
 
@@ -42,7 +42,11 @@ body.is_dark .phone_title {
42
42
  }
43
43
  ```
44
44
 
45
- See also [postcss-nesting] with tabakins proposal syntax with extra `{`.
45
+ Use [postcss-current-selector] **after** this plugin if you want to use current selector in properties or variables values.
46
+
47
+ Use [postcss-nested-ancestors] **before** this plugin if you want to reference any ancestor element directly in your selectors with `^&`.
48
+
49
+ See also [postcss-nesting], which implements [Tab Atkin's proposed syntax](https://tabatkins.github.io/specs/css-nesting/) (requires the `&` and introduces `@nest`).
46
50
 
47
51
  There is also [postcss-nested-props] for nested properties like `font-size`.
48
52
 
@@ -50,11 +54,13 @@ There is also [postcss-nested-props] for nested properties like `font-size`.
50
54
  <img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg" alt="Sponsored by Evil Martians" width="236" height="54">
51
55
  </a>
52
56
 
53
- [postcss-nested-props]: https://github.com/jedmao/postcss-nested-props
54
- [postcss-nesting]: https://github.com/jonathantneal/postcss-nesting
55
- [PostCSS]: https://github.com/postcss/postcss
56
- [ci-img]: https://travis-ci.org/postcss/postcss-nested.svg
57
- [ci]: https://travis-ci.org/postcss/postcss-nested
57
+ [postcss-current-selector]: https://github.com/komlev/postcss-current-selector
58
+ [postcss-nested-ancestors]: https://github.com/toomuchdesign/postcss-nested-ancestors
59
+ [postcss-nested-props]: https://github.com/jedmao/postcss-nested-props
60
+ [postcss-nesting]: https://github.com/jonathantneal/postcss-nesting
61
+ [PostCSS]: https://github.com/postcss/postcss
62
+ [ci-img]: https://travis-ci.org/postcss/postcss-nested.svg
63
+ [ci]: https://travis-ci.org/postcss/postcss-nested
58
64
 
59
65
  ## Usage
60
66
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postcss-nested",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "PostCSS plugin to unwrap nested rules like how Sass does it.",
5
5
  "keywords": [
6
6
  "postcss",
@@ -11,21 +11,22 @@
11
11
  ],
12
12
  "author": "Andrey Sitnik <andrey@sitnik.ru>",
13
13
  "license": "MIT",
14
- "repository": {
15
- "type": "git",
16
- "url": "https://github.com/postcss/postcss-nested.git"
17
- },
14
+ "repository": "postcss/postcss-nested",
18
15
  "dependencies": {
19
- "postcss": "^5.0.2"
16
+ "postcss": "^5.2.17"
20
17
  },
21
18
  "devDependencies": {
22
- "gulp-eslint": "1.0.0",
23
- "gulp-mocha": "2.1.3",
24
- "mocha": "2.2.5",
25
- "chai": "3.2.0",
26
- "gulp": "3.9.0"
19
+ "eslint": "^3.12.2",
20
+ "eslint-config-postcss": "^2.0.2",
21
+ "jest": "^18.0.0"
27
22
  },
28
23
  "scripts": {
29
- "test": "gulp"
24
+ "test": "jest && eslint *.js"
25
+ },
26
+ "eslintConfig": {
27
+ "extends": "eslint-config-postcss/es5",
28
+ "env": {
29
+ "jest": true
30
+ }
30
31
  }
31
32
  }
package/.eslintrc DELETED
@@ -1,126 +0,0 @@
1
- {
2
- "rules": {
3
- "space-before-function-paren": [2, { "named": "never" }],
4
- "no-shadow-restricted-names": [2],
5
- "computed-property-spacing": [2],
6
- "no-empty-character-class": [2],
7
- "no-irregular-whitespace": [2],
8
- "no-unexpected-multiline": [2],
9
- "no-multiple-empty-lines": [2],
10
- "space-return-throw-case": [2],
11
- "no-constant-condition": [2],
12
- "no-extra-boolean-cast": [2],
13
- "no-inner-declarations": [2],
14
- "no-this-before-super": [2],
15
- "no-use-before-define": [2],
16
- "no-array-constructor": [2],
17
- "object-curly-spacing": [2, "always"],
18
- "no-floating-decimal": [2],
19
- "no-warning-comments": [2],
20
- "handle-callback-err": [2],
21
- "no-unneeded-ternary": [2],
22
- "operator-assignment": [2],
23
- "space-before-blocks": [2],
24
- "no-native-reassign": [2],
25
- "no-trailing-spaces": [2],
26
- "operator-linebreak": [2, "after"],
27
- "consistent-return": [2],
28
- "no-duplicate-case": [2],
29
- "no-invalid-regexp": [2],
30
- "no-negated-in-lhs": [2],
31
- "constructor-super": [2],
32
- "no-nested-ternary": [2],
33
- "no-extend-native": [2],
34
- "block-scoped-var": [2],
35
- "no-control-regex": [2],
36
- "no-sparse-arrays": [2],
37
- "no-throw-literal": [2],
38
- "no-return-assign": [2],
39
- "no-const-assign": [2],
40
- "no-class-assign": [2],
41
- "no-extra-parens": [2],
42
- "no-regex-spaces": [2],
43
- "no-implied-eval": [2],
44
- "no-useless-call": [2],
45
- "no-self-compare": [2],
46
- "no-octal-escape": [2],
47
- "no-new-wrappers": [2],
48
- "no-process-exit": [2],
49
- "no-catch-shadow": [2],
50
- "linebreak-style": [2],
51
- "space-infix-ops": [2],
52
- "space-unary-ops": [2],
53
- "no-cond-assign": [2],
54
- "no-func-assign": [2],
55
- "no-unreachable": [2],
56
- "accessor-pairs": [2],
57
- "no-empty-label": [2],
58
- "no-fallthrough": [2],
59
- "no-path-concat": [2],
60
- "no-new-require": [2],
61
- "no-spaced-func": [2],
62
- "no-unused-vars": [2],
63
- "spaced-comment": [2],
64
- "no-delete-var": [2],
65
- "comma-spacing": [2],
66
- "no-extra-semi": [2],
67
- "no-extra-bind": [2],
68
- "arrow-spacing": [2],
69
- "prefer-spread": [2],
70
- "no-new-object": [2],
71
- "no-multi-str": [2],
72
- "semi-spacing": [2],
73
- "no-lonely-if": [2],
74
- "dot-notation": [2],
75
- "dot-location": [2, "property"],
76
- "comma-dangle": [2, "never"],
77
- "no-dupe-args": [2],
78
- "no-dupe-keys": [2],
79
- "no-ex-assign": [2],
80
- "no-obj-calls": [2],
81
- "valid-typeof": [2],
82
- "default-case": [2],
83
- "no-redeclare": [2],
84
- "no-div-regex": [2],
85
- "no-sequences": [2],
86
- "no-label-var": [2],
87
- "comma-style": [2],
88
- "brace-style": [2],
89
- "no-debugger": [2],
90
- "quote-props": [2, "as-needed"],
91
- "no-iterator": [2],
92
- "no-new-func": [2],
93
- "key-spacing": [2, { "align": "value" }],
94
- "complexity": [2],
95
- "new-parens": [2],
96
- "no-eq-null": [2],
97
- "no-bitwise": [2],
98
- "wrap-iife": [2],
99
- "no-caller": [2],
100
- "use-isnan": [2],
101
- "no-labels": [2],
102
- "no-shadow": [2],
103
- "camelcase": [2],
104
- "eol-last": [2],
105
- "no-octal": [2],
106
- "no-empty": [2],
107
- "no-alert": [2],
108
- "no-proto": [2],
109
- "no-undef": [2],
110
- "no-eval": [2],
111
- "no-with": [2],
112
- "no-void": [2],
113
- "max-len": [2, 80],
114
- "new-cap": [2],
115
- "eqeqeq": [2],
116
- "no-new": [2],
117
- "quotes": [2, "single"],
118
- "indent": [2, 4],
119
- "semi": [2, "always"],
120
- "yoda": [2, "never"]
121
- },
122
- "env": {
123
- "mocha": true,
124
- "node": true
125
- }
126
- }
package/.npmignore DELETED
@@ -1,9 +0,0 @@
1
- .gitignore
2
-
3
- node_modules/
4
- npm-debug.log
5
-
6
- test/
7
- .travis.yml
8
-
9
- gulpfile.js