Skip to content

Commit eb2dcb6

Browse files
committed
use neat
1 parent c545606 commit eb2dcb6

File tree

5 files changed

+14
-16
lines changed

5 files changed

+14
-16
lines changed

.gitignore

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

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@
1919
"postcss-calc": "^5.0.0",
2020
"postcss-initial": "^1.3.1",
2121
"postcss-inline-svg": "^1.4.0",
22+
"postcss-neat": "^2.5.2",
2223
"postcss-pseudo-class-any-link": "^1.0.0",
2324
"postcss-scss": "^0.1.7",
2425
"postcss-shape": "^0.0.1",
25-
"postcss-short-font-size": "^1.0.1",
26-
"postcss-short-position": "^1.0.0",
27-
"postcss-short-size": "^1.1.0",
28-
"postcss-short-spacing": "^1.0.0",
26+
"postcss-short": "^1.4.0",
2927
"precss": "^1.4.0"
3028
},
3129
"devDependencies": {

src/features.js

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable max-len */
21
export default {
32
/**
43
* REMINDER:
@@ -7,6 +6,9 @@ export default {
76
* ******************
87
*/
98

9+
// https://npmjs.com/package/postcss-neat
10+
neat: (options) => require("postcss-neat")(options),
11+
1012
// https://npmjs.com/package/postcss-bem
1113
bem: (options) => require("postcss-bem")(options),
1214

@@ -22,17 +24,8 @@ export default {
2224
// https://npmjs.com/package/postcss-inline-svg
2325
inlineSvg: (options) => require("postcss-inline-svg")(options),
2426

25-
// https://npmjs.com/package/postcss-short-font-size
26-
shortFontSize: (options) => require("postcss-short-font-size")(options),
27-
28-
// https://npmjs.com/package/postcss-short-spacing
29-
shortSpacing: (options) => require("postcss-short-spacing")(options),
30-
31-
// https://npmjs.com/package/postcss-short-size
32-
shortSize: (options) => require("postcss-short-size")(options),
33-
34-
// https://npmjs.com/package/postcss-short-position
35-
shortPosition: (options) => require("postcss-short-position")(options),
27+
// https://npmjs.com/package/postcss-short
28+
short: (options) => require("postcss-short")(options),
3629

3730
// https://npmjs.com/package/postcss-shape
3831
shape: (options) => require("postcss-shape")(options),

src/test/features/neat.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.cnt {
2+
@neat-outer-container;
3+
}
4+
.col2 {
5+
@neat-span-columns 1;
6+
}

src/test/features/neat.expected.css

Whitespace-only changes.

0 commit comments

Comments
 (0)