@workleap/postcss-configs 0.0.1 → 1.0.0

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 ADDED
@@ -0,0 +1,13 @@
1
+ # @workleap/postcss-configs
2
+
3
+ ## 1.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#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
8
+
9
+ ## 0.0.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#92](https://github.com/gsoft-inc/wl-web-configs/pull/92) [`66e8f10`](https://github.com/gsoft-inc/wl-web-configs/commit/66e8f1033a987523c65fe9e61f53dac6d2e38777) Thanks [@ofrogon](https://github.com/ofrogon)! - Migrate project from GitHub organization
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](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](../../LICENSE)
6
- [![npm version](https://img.shields.io/npm/v/@workleap/postcss-plugin)](https://www.npmjs.com/package/@workleap/postcss-plugin)
7
-
8
- ## Installation
9
-
10
- Install the following packages:
11
-
12
- **With pnpm**
13
-
14
- ```shell
15
- pnpm add -D @workleap/postcss-configs postcss
16
- ```
17
-
18
- **With yarn**
19
-
20
- ```shell
21
- yarn add -D @workleap/postcss-configs postcss
22
- ```
23
-
24
- **With npm**
25
-
26
- ```shell
27
- npm install -D @workleap/postcss-configs postcss
28
- ```
29
-
30
- ## Features
31
-
32
- This plugin wraps around the following PostCSS transformations:
33
-
34
- - [`postcss-preset-env`](https://github.com/csstools/postcss-preset-env)
4
+ [![npm version](https://img.shields.io/npm/v/@workleap/postcss-configs)](https://www.npmjs.com/package/@workleap/postcss-configs)
35
5
 
36
6
  ## Usage
37
7
 
38
- ### Configuration
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
- ```js
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, GSoft inc. 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/gsoft-license/blob/master/LICENSE.
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
@@ -1,4 +1,5 @@
1
1
  import { Config } from 'postcss-load-config';
2
+ export { Config as PostCSSConfig } from 'postcss-load-config';
2
3
  import { pluginOptions } from 'postcss-preset-env';
3
4
 
4
5
  type PostcssConfigTransformer = (config: Config) => Config;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@workleap/postcss-configs",
3
3
  "author": "Workleap",
4
- "description": "Workleap's default PostCSS configs.",
5
- "version": "0.0.1",
4
+ "description": "Workleap's recommended PostCSS configurations",
5
+ "version": "1.0.0",
6
6
  "license": "Apache-2.0",
7
7
  "keywords": [
8
8
  "workleap",
@@ -11,7 +11,7 @@
11
11
  ],
12
12
  "repository": {
13
13
  "type": "git",
14
- "url": "git+https://github.com/workleap/wl-web-configs.git",
14
+ "url": "git+https://github.com/gsoft-inc/wl-web-configs.git",
15
15
  "directory": "packages/postcss-configs"
16
16
  },
17
17
  "type": "module",
@@ -45,10 +45,10 @@
45
45
  "postcss": "8.4.21",
46
46
  "tsup": "6.7.0",
47
47
  "typescript": "5.0.4",
48
- "@workleap/eslint-plugin": "1.8.2",
49
- "@workleap/tsup-configs": "2.0.0",
50
- "@workleap/swc-configs": "1.0.0",
51
- "@workleap/typescript-configs": "2.3.2"
48
+ "@workleap/eslint-plugin": "2.0.0",
49
+ "@workleap/tsup-configs": "3.0.0",
50
+ "@workleap/swc-configs": "2.0.0",
51
+ "@workleap/typescript-configs": "3.0.0"
52
52
  },
53
53
  "publishConfig": {
54
54
  "access": "public",