@workleap/postcss-configs 0.0.2 → 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 +12 -0
- package/README.md +5 -101
- package/dist/index.d.ts +1 -0
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @workleap/postcss-configs
|
|
2
2
|
|
|
3
|
+
## 1.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#143](https://github.com/gsoft-inc/wl-web-configs/pull/143) [`334088f`](https://github.com/gsoft-inc/wl-web-configs/commit/334088fac63aad6cc245ee3300da076e5c201287) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated to SWC 1.3.85
|
|
8
|
+
|
|
9
|
+
## 1.0.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- [#98](https://github.com/gsoft-inc/wl-web-configs/pull/98) [`56ca32e`](https://github.com/gsoft-inc/wl-web-configs/commit/56ca32ee3194c51210aacc5189f3ebbec5a4a7b6) Thanks [@patricklafrance](https://github.com/patricklafrance)! - New start, every package has a major version bump
|
|
14
|
+
|
|
3
15
|
## 0.0.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,112 +1,16 @@
|
|
|
1
1
|
# @workleap/postcss-configs
|
|
2
2
|
|
|
3
|
-
All of Workleap’s default PostCSS plugins wrapped up in a single, easy-to-use plugin.
|
|
4
|
-
|
|
5
3
|
[](../../LICENSE)
|
|
6
|
-
[
|
|
4
|
+
[](https://www.npmjs.com/package/@workleap/postcss-configs)
|
|
35
5
|
|
|
36
6
|
## Usage
|
|
37
7
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
Create a `postcss.config.js` file at the root of your project with the following content:
|
|
41
|
-
|
|
42
|
-
```js
|
|
43
|
-
// postcss.config.js
|
|
44
|
-
|
|
45
|
-
/** @type {import("postcss").Postcss} */
|
|
46
|
-
export default {
|
|
47
|
-
plugins: ["@workleap/postcss-plugin"]
|
|
48
|
-
};
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
You can override any existing options:
|
|
52
|
-
|
|
53
|
-
```js
|
|
54
|
-
// postcss.config.js
|
|
55
|
-
|
|
56
|
-
import postcssWorkleapPlugin from "@workleap/postcss-plugin";
|
|
57
|
-
|
|
58
|
-
/** @type {import("postcss").Postcss} */
|
|
59
|
-
export default {
|
|
60
|
-
plugins: [
|
|
61
|
-
postcssWorkleapPlugin({
|
|
62
|
-
presetEnvOptions: {
|
|
63
|
-
stage: 4
|
|
64
|
-
}
|
|
65
|
-
})
|
|
66
|
-
]
|
|
67
|
-
};
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
### defineConfig
|
|
71
|
-
|
|
72
|
-
Alternativelty, the postcss config can be created from a `defineConfig` function:
|
|
73
|
-
|
|
74
|
-
```js
|
|
75
|
-
// postcss.config.js
|
|
76
|
-
|
|
77
|
-
import { defineConfig, DefaultPresetEnvOptions } from from "@workleap/postcss-plugin";
|
|
78
|
-
|
|
79
|
-
export default defineConfig({
|
|
80
|
-
presetEnvOptions: {
|
|
81
|
-
...DefaultPresetEnvOptions,
|
|
82
|
-
stage: 4
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
### Webpack integration
|
|
88
|
-
|
|
89
|
-
To integrate with Webpack, add the [postcss-loader](https://webpack.js.org/loaders/postcss-loader/) to the development and build configuration file:
|
|
8
|
+
View the [user's documentation](https://gsoft-inc.github.io/wl-web-configs/).
|
|
90
9
|
|
|
91
|
-
|
|
92
|
-
// webpack.config.js
|
|
10
|
+
## 🤝 Contributing
|
|
93
11
|
|
|
94
|
-
|
|
95
|
-
module: {
|
|
96
|
-
rules: [
|
|
97
|
-
{
|
|
98
|
-
test: /\.css/i,
|
|
99
|
-
use: [
|
|
100
|
-
"style-loader",
|
|
101
|
-
"css-loader",
|
|
102
|
-
"postcss-loader"
|
|
103
|
-
]
|
|
104
|
-
}
|
|
105
|
-
]
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
```
|
|
12
|
+
View the [contributor's documentation](../../CONTRIBUTING.md).
|
|
109
13
|
|
|
110
14
|
## License
|
|
111
15
|
|
|
112
|
-
Copyright © 2023,
|
|
16
|
+
Copyright © 2023, Workleap. This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license at https://github.com/gsoft-inc/workleap-license/blob/master/LICENSE.
|
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workleap/postcss-configs",
|
|
3
3
|
"author": "Workleap",
|
|
4
|
-
"description": "Workleap's
|
|
5
|
-
"version": "
|
|
4
|
+
"description": "Workleap's recommended PostCSS configurations",
|
|
5
|
+
"version": "1.0.1",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"workleap",
|
|
@@ -29,26 +29,26 @@
|
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"postcss-load-config": "4.0.1",
|
|
32
|
-
"postcss-preset-env": "
|
|
32
|
+
"postcss-preset-env": "9.1.3"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"postcss": ">=8.4.6"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@swc/core": "1.3.
|
|
39
|
-
"@swc/helpers": "0.5.
|
|
40
|
-
"@swc/jest": "0.2.
|
|
41
|
-
"@types/jest": "29.5.
|
|
42
|
-
"@types/node": "20.
|
|
43
|
-
"jest": "29.
|
|
38
|
+
"@swc/core": "1.3.85",
|
|
39
|
+
"@swc/helpers": "0.5.2",
|
|
40
|
+
"@swc/jest": "0.2.29",
|
|
41
|
+
"@types/jest": "29.5.5",
|
|
42
|
+
"@types/node": "20.6.2",
|
|
43
|
+
"jest": "29.7.0",
|
|
44
|
+
"postcss": "8.4.29",
|
|
44
45
|
"ts-node": "10.9.1",
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"@workleap/
|
|
49
|
-
"@workleap/tsup-configs": "
|
|
50
|
-
"@workleap/
|
|
51
|
-
"@workleap/typescript-configs": "2.3.3"
|
|
46
|
+
"tsup": "7.2.0",
|
|
47
|
+
"typescript": "5.2.2",
|
|
48
|
+
"@workleap/eslint-plugin": "2.1.1",
|
|
49
|
+
"@workleap/swc-configs": "2.1.2",
|
|
50
|
+
"@workleap/tsup-configs": "3.0.1",
|
|
51
|
+
"@workleap/typescript-configs": "3.0.2"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public",
|