@gustcss/postcss 0.6.0 → 0.7.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/dist/index.d.cts +47 -0
- package/package.json +12 -2
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { PluginCreator } from 'postcss'
|
|
2
|
+
|
|
3
|
+
declare namespace plugin {
|
|
4
|
+
/**
|
|
5
|
+
* Options for the GustCSS PostCSS plugin.
|
|
6
|
+
*/
|
|
7
|
+
export interface GustcssPluginOptions {
|
|
8
|
+
/**
|
|
9
|
+
* Glob patterns of source files to scan for utility classes.
|
|
10
|
+
*
|
|
11
|
+
* @default ['./src/**\/*.{js,ts,jsx,tsx}']
|
|
12
|
+
*/
|
|
13
|
+
content?: string[]
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Path to an explicit GustCSS config file. When omitted, the plugin
|
|
17
|
+
* auto-detects a config file and otherwise synthesizes one from `content`.
|
|
18
|
+
*/
|
|
19
|
+
config?: string
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Wrap the generated utilities in `@layer` blocks.
|
|
23
|
+
*/
|
|
24
|
+
outputToCssLayers?: boolean
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The GustCSS PostCSS plugin.
|
|
30
|
+
*
|
|
31
|
+
* Insert `@gustcss;` in your CSS where the generated utilities should appear.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```js
|
|
35
|
+
* // postcss.config.js
|
|
36
|
+
* module.exports = {
|
|
37
|
+
* plugins: [
|
|
38
|
+
* require('@gustcss/postcss')({
|
|
39
|
+
* content: ['./src/**\/*.{js,ts,jsx,tsx}'],
|
|
40
|
+
* }),
|
|
41
|
+
* ],
|
|
42
|
+
* }
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
declare const plugin: PluginCreator<plugin.GustcssPluginOptions>
|
|
46
|
+
|
|
47
|
+
export = plugin
|
package/package.json
CHANGED
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gustcss/postcss",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "PostCSS plugin for GustCSS",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
|
+
"types": "dist/index.d.cts",
|
|
6
7
|
"type": "commonjs",
|
|
7
8
|
"files": [
|
|
8
9
|
"dist/index.cjs",
|
|
10
|
+
"dist/index.d.cts",
|
|
9
11
|
"README.md",
|
|
10
12
|
"LICENSE"
|
|
11
13
|
],
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.cts",
|
|
17
|
+
"require": "./dist/index.cjs",
|
|
18
|
+
"import": "./dist/index.cjs",
|
|
19
|
+
"default": "./dist/index.cjs"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
12
22
|
"keywords": [
|
|
13
23
|
"postcss",
|
|
14
24
|
"postcss-plugin",
|
|
@@ -21,7 +31,7 @@
|
|
|
21
31
|
"access": "public"
|
|
22
32
|
},
|
|
23
33
|
"dependencies": {
|
|
24
|
-
"gustcss": "^0.
|
|
34
|
+
"gustcss": "^0.7.0"
|
|
25
35
|
},
|
|
26
36
|
"peerDependencies": {
|
|
27
37
|
"postcss": "^8.0.0"
|