@davidsneighbour/postcss-config 4.0.11 → 5.0.2
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/LICENSE.md +1 -1
- package/README.md +21 -44
- package/package.json +18 -16
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2023 Patrick Kollitsch / David's Neighbour
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
6
|
|
package/README.md
CHANGED
|
@@ -1,29 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
### Installation
|
|
4
|
-
|
|
5
|
-
Use npm to install this package as development dependency:
|
|
6
|
-
|
|
7
|
-
```shell
|
|
8
|
-
npm install --save-dev @davidsneighbour/postcss-config
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
### Configuration
|
|
1
|
+
# PostCSS
|
|
12
2
|
|
|
13
3
|
Create `postcss.config.js` with the following content:
|
|
14
4
|
|
|
15
5
|
```js
|
|
16
|
-
const config = require("@davidsneighbour/postcss
|
|
6
|
+
const config = require("@davidsneighbour/config/postcss");
|
|
17
7
|
module.exports = config;
|
|
18
8
|
```
|
|
19
9
|
|
|
20
10
|
[More information about PostCSS configuration](https://github.com/postcss/postcss).
|
|
21
11
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
To be written ...
|
|
25
|
-
|
|
26
|
-
### Note about using PostCSS in [GoHugo](https://gohugo.io)
|
|
12
|
+
Note about using PostCSS in [GoHugo](https://gohugo.io)
|
|
27
13
|
|
|
28
14
|
GoHugo is weird, but great. To get PostCSS to work with GoHugo the `postcss-cli` package needs to be installed in the
|
|
29
15
|
project itself and is not handled through this configuration. Run the following to get PostCSS working in GoHugo:
|
|
@@ -34,30 +20,21 @@ npm install --save-dev postcss-cli
|
|
|
34
20
|
|
|
35
21
|
A global `postcss-cli` installation won't work if the plugins in this package are not installed globally as well.
|
|
36
22
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
| [prettier-config](https://github.com/davidsneighbour/configurations/tree/main/packages/prettier-config) | [Prettier](https://prettier.io/) configuration |
|
|
56
|
-
| [remark-config](https://github.com/davidsneighbour/configurations/tree/main/packages/remark-config) | [ReMark](https://github.com/remarkjs/remark-lint) configuration |
|
|
57
|
-
| [standard-version-config](https://github.com/davidsneighbour/configurations/tree/main/packages/standard-version-config) | [Standard Version](https://github.com/conventional-changelog/standard-version) configuration |
|
|
58
|
-
| [stylelint-config](https://github.com/davidsneighbour/configurations/tree/main/packages/stylelint-config) | [StyleLint](https://github.com/stylelint/stylelint) configuration |
|
|
59
|
-
| [textlint-config](https://github.com/davidsneighbour/configurations/tree/main/packages/textlint-config) | [TextLint](https://github.com/textlint/textlint) configuration |
|
|
60
|
-
| [webpack-config](https://github.com/davidsneighbour/configurations/tree/main/packages/webpack-config) | [Webpack](https://webpack.js.org/) configuration |
|
|
61
|
-
| [tools](https://github.com/davidsneighbour/configurations/tree/main/packages/tools) | Tools |
|
|
62
|
-
|
|
63
|
-
<!-- CONFIGURATIONS END -->
|
|
23
|
+
# All configurations
|
|
24
|
+
|
|
25
|
+
- [Babel](/packages/babel-config)
|
|
26
|
+
- [Bootstrap](/packages/bootstrap-config)
|
|
27
|
+
- [Browserslist](/packages/browserslist-config)
|
|
28
|
+
- [Commitlint](/packages/commitlint-config)
|
|
29
|
+
- [CssNano](/packages/cssnano-config)
|
|
30
|
+
- [Cypress](/packages/cypress-config)
|
|
31
|
+
- [ESLint](/packages/eslint-config)
|
|
32
|
+
- [Markdownlint](/packages/markdownlint-config)
|
|
33
|
+
- [PostCSS](/packages/postcss-config)
|
|
34
|
+
- [Prettier](/packages/prettier-config)
|
|
35
|
+
- [Remark Lint](/packages/remark-config)
|
|
36
|
+
- [Standard Version](/packages/standard-version-config)
|
|
37
|
+
- [Stylelint](/packages/stylelint-config)
|
|
38
|
+
- [Textlint](/packages/textlint-config)
|
|
39
|
+
- [Tools](/packages/tools)
|
|
40
|
+
- [Webpack](/packages/webpack-config)
|
package/package.json
CHANGED
|
@@ -1,28 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@davidsneighbour/postcss-config",
|
|
3
|
-
"
|
|
3
|
+
"description": "PostCSS configuration for use in @davidsneighbour projects.",
|
|
4
|
+
"version": "5.0.2",
|
|
4
5
|
"license": "MIT",
|
|
5
|
-
"
|
|
6
|
+
"repository": "davidsneighbour/configurations",
|
|
6
7
|
"author": {
|
|
7
8
|
"name": "Patrick Kollitsch",
|
|
8
9
|
"email": "patrick@davids-neighbour.com",
|
|
9
10
|
"web": "https://davids-neighbour.com"
|
|
10
11
|
},
|
|
11
|
-
"
|
|
12
|
-
"
|
|
12
|
+
"bugs": "https://github.com/davidsneighbour/configurations/issues",
|
|
13
|
+
"homepage": "https://github.com/davidsneighbour/configurations/blob/main/docs/postcss.md",
|
|
13
14
|
"dependencies": {
|
|
14
|
-
"@fullhuman/postcss-purgecss": "
|
|
15
|
-
"autoprefixer": "
|
|
16
|
-
"cssnano": "
|
|
17
|
-
"postcss": "
|
|
18
|
-
"postcss-cli": "
|
|
19
|
-
"postcss-import": "
|
|
20
|
-
"postcss-loader": "
|
|
21
|
-
"postcss-nesting": "
|
|
22
|
-
"postcss-preset-env": "
|
|
15
|
+
"@fullhuman/postcss-purgecss": "5.0.0",
|
|
16
|
+
"autoprefixer": "10.4.13",
|
|
17
|
+
"cssnano": "5.1.14",
|
|
18
|
+
"postcss": "8.4.21",
|
|
19
|
+
"postcss-cli": "10.1.0",
|
|
20
|
+
"postcss-import": "15.1.0",
|
|
21
|
+
"postcss-loader": "7.0.2",
|
|
22
|
+
"postcss-nesting": "11.0.1",
|
|
23
|
+
"postcss-preset-env": "8.0.1"
|
|
23
24
|
},
|
|
24
|
-
"main": "index.js",
|
|
25
25
|
"scripts": {
|
|
26
|
-
"
|
|
27
|
-
}
|
|
26
|
+
"fixpack": "fixpack"
|
|
27
|
+
},
|
|
28
|
+
"main": "index.js",
|
|
29
|
+
"gitHead": "8af7f637920a8701d198aa71ecd164fe02b1f6e7"
|
|
28
30
|
}
|