@pubinfo/config 2.0.0-beta.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/dist/eslint/index.cjs +8 -0
- package/dist/eslint/index.d.cts +6 -0
- package/dist/eslint/index.d.mts +6 -0
- package/dist/eslint/index.d.ts +6 -0
- package/dist/eslint/index.mjs +6 -0
- package/dist/index.cjs +21 -0
- package/dist/index.d.cts +6 -0
- package/dist/index.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.mjs +8 -0
- package/dist/shared/config.BDKVPKTO.mjs +635 -0
- package/dist/shared/config.CSqBb4YU.d.cts +5 -0
- package/dist/shared/config.CSqBb4YU.d.mts +5 -0
- package/dist/shared/config.CSqBb4YU.d.ts +5 -0
- package/dist/shared/config.DPEra-Xx.mjs +141 -0
- package/dist/shared/config.YMrrkzU5.cjs +641 -0
- package/dist/shared/config.wdnazHMp.cjs +147 -0
- package/dist/stylelint.cjs +139 -0
- package/dist/stylelint.d.cts +106 -0
- package/dist/stylelint.d.mts +106 -0
- package/dist/stylelint.d.ts +106 -0
- package/dist/stylelint.mjs +137 -0
- package/dist/themes/index.cjs +13 -0
- package/dist/themes/index.d.cts +33 -0
- package/dist/themes/index.d.mts +33 -0
- package/dist/themes/index.d.ts +33 -0
- package/dist/themes/index.mjs +3 -0
- package/dist/unocss.cjs +59 -0
- package/dist/unocss.d.cts +5 -0
- package/dist/unocss.d.mts +5 -0
- package/dist/unocss.d.ts +5 -0
- package/dist/unocss.mjs +57 -0
- package/package.json +66 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
const stylelint = {
|
|
2
|
+
extends: [
|
|
3
|
+
"stylelint-config-recess-order"
|
|
4
|
+
],
|
|
5
|
+
plugins: [
|
|
6
|
+
"stylelint-scss",
|
|
7
|
+
"@stylistic/stylelint-plugin"
|
|
8
|
+
],
|
|
9
|
+
overrides: [
|
|
10
|
+
{
|
|
11
|
+
files: ["**/*.(css|html|vue)"],
|
|
12
|
+
customSyntax: "postcss-html"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
files: ["*.less", "**/*.less"],
|
|
16
|
+
customSyntax: "postcss-less",
|
|
17
|
+
extends: ["stylelint-config-standard-less", "stylelint-config-standard-vue"]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
files: ["*.scss", "**/*.scss"],
|
|
21
|
+
customSyntax: "postcss-scss",
|
|
22
|
+
extends: ["stylelint-config-standard-scss", "stylelint-config-standard-vue/scss"],
|
|
23
|
+
rule: {
|
|
24
|
+
"scss/double-slash-comment-empty-line-before": null,
|
|
25
|
+
"scss/no-global-function-names": null
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
rules: {
|
|
30
|
+
"at-rule-no-unknown": null,
|
|
31
|
+
"no-descending-specificity": null,
|
|
32
|
+
"property-no-unknown": null,
|
|
33
|
+
"font-family-no-missing-generic-family-keyword": null,
|
|
34
|
+
"selector-class-pattern": null,
|
|
35
|
+
"function-no-unknown": [
|
|
36
|
+
true,
|
|
37
|
+
{
|
|
38
|
+
ignoreFunctions: [
|
|
39
|
+
"v-bind",
|
|
40
|
+
"map-get",
|
|
41
|
+
"lighten",
|
|
42
|
+
"darken"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"selector-pseudo-element-no-unknown": [
|
|
47
|
+
true,
|
|
48
|
+
{
|
|
49
|
+
ignorePseudoElements: [
|
|
50
|
+
"/^view-transition/"
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
// 提取自 https://github.com/elirasza/stylelint-stylistic/blob/main/config/index.js
|
|
55
|
+
"@stylistic/at-rule-name-case": "lower",
|
|
56
|
+
"@stylistic/at-rule-name-space-after": "always-single-line",
|
|
57
|
+
"@stylistic/at-rule-semicolon-newline-after": "always",
|
|
58
|
+
"@stylistic/block-closing-brace-empty-line-before": "never",
|
|
59
|
+
"@stylistic/block-closing-brace-newline-before": "always-multi-line",
|
|
60
|
+
"@stylistic/block-closing-brace-space-before": "always-single-line",
|
|
61
|
+
"@stylistic/block-opening-brace-newline-after": "always-multi-line",
|
|
62
|
+
"@stylistic/block-opening-brace-space-after": "always-single-line",
|
|
63
|
+
"@stylistic/block-opening-brace-space-before": "always",
|
|
64
|
+
"@stylistic/color-hex-case": "lower",
|
|
65
|
+
"@stylistic/declaration-bang-space-after": "never",
|
|
66
|
+
"@stylistic/declaration-bang-space-before": "always",
|
|
67
|
+
"@stylistic/declaration-block-semicolon-newline-after": "always-multi-line",
|
|
68
|
+
"@stylistic/declaration-block-semicolon-space-after": "always-single-line",
|
|
69
|
+
"@stylistic/declaration-block-semicolon-space-before": "never",
|
|
70
|
+
"@stylistic/declaration-block-trailing-semicolon": "always",
|
|
71
|
+
"@stylistic/declaration-colon-newline-after": "always-multi-line",
|
|
72
|
+
"@stylistic/declaration-colon-space-after": "always-single-line",
|
|
73
|
+
"@stylistic/declaration-colon-space-before": "never",
|
|
74
|
+
"@stylistic/function-comma-newline-after": "always-multi-line",
|
|
75
|
+
"@stylistic/function-comma-space-after": "always-single-line",
|
|
76
|
+
"@stylistic/function-comma-space-before": "never",
|
|
77
|
+
"@stylistic/function-max-empty-lines": 0,
|
|
78
|
+
"@stylistic/function-parentheses-newline-inside": "always-multi-line",
|
|
79
|
+
"@stylistic/function-parentheses-space-inside": "never-single-line",
|
|
80
|
+
"@stylistic/function-whitespace-after": "always",
|
|
81
|
+
"@stylistic/indentation": 2,
|
|
82
|
+
"@stylistic/max-empty-lines": 1,
|
|
83
|
+
"@stylistic/media-feature-colon-space-after": "always",
|
|
84
|
+
"@stylistic/media-feature-colon-space-before": "never",
|
|
85
|
+
"@stylistic/media-feature-name-case": "lower",
|
|
86
|
+
"@stylistic/media-feature-parentheses-space-inside": "never",
|
|
87
|
+
"@stylistic/media-feature-range-operator-space-after": "always",
|
|
88
|
+
"@stylistic/media-feature-range-operator-space-before": "always",
|
|
89
|
+
"@stylistic/media-query-list-comma-newline-after": "always-multi-line",
|
|
90
|
+
"@stylistic/media-query-list-comma-space-after": "always-single-line",
|
|
91
|
+
"@stylistic/media-query-list-comma-space-before": "never",
|
|
92
|
+
"@stylistic/no-empty-first-line": true,
|
|
93
|
+
"@stylistic/no-eol-whitespace": true,
|
|
94
|
+
"@stylistic/no-extra-semicolons": true,
|
|
95
|
+
"@stylistic/no-missing-end-of-source-newline": true,
|
|
96
|
+
"@stylistic/number-leading-zero": "always",
|
|
97
|
+
"@stylistic/number-no-trailing-zeros": true,
|
|
98
|
+
"@stylistic/property-case": "lower",
|
|
99
|
+
"@stylistic/selector-attribute-brackets-space-inside": "never",
|
|
100
|
+
"@stylistic/selector-attribute-operator-space-after": "never",
|
|
101
|
+
"@stylistic/selector-attribute-operator-space-before": "never",
|
|
102
|
+
"@stylistic/selector-combinator-space-after": "always",
|
|
103
|
+
"@stylistic/selector-combinator-space-before": "always",
|
|
104
|
+
"@stylistic/selector-descendant-combinator-no-non-space": true,
|
|
105
|
+
"@stylistic/selector-list-comma-newline-after": "always",
|
|
106
|
+
"@stylistic/selector-list-comma-space-before": "never",
|
|
107
|
+
"@stylistic/selector-max-empty-lines": 0,
|
|
108
|
+
"@stylistic/selector-pseudo-class-case": "lower",
|
|
109
|
+
"@stylistic/selector-pseudo-class-parentheses-space-inside": "never",
|
|
110
|
+
"@stylistic/selector-pseudo-element-case": "lower",
|
|
111
|
+
"@stylistic/string-quotes": "double",
|
|
112
|
+
"@stylistic/unit-case": "lower",
|
|
113
|
+
"@stylistic/value-list-comma-newline-after": "always-multi-line",
|
|
114
|
+
"@stylistic/value-list-comma-space-after": "always-single-line",
|
|
115
|
+
"@stylistic/value-list-comma-space-before": "never",
|
|
116
|
+
"@stylistic/value-list-max-empty-lines": 0,
|
|
117
|
+
// 根据需要覆盖部分规则
|
|
118
|
+
"@stylistic/max-line-length": null,
|
|
119
|
+
"@stylistic/block-closing-brace-newline-after": [
|
|
120
|
+
"always",
|
|
121
|
+
{
|
|
122
|
+
ignoreAtRules: ["if", "else"]
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
allowEmptyInput: true,
|
|
127
|
+
ignoreFiles: [
|
|
128
|
+
"**/node_modules/**/*",
|
|
129
|
+
"**/dist*/**/*",
|
|
130
|
+
"**/src/assets/fonts/**/*",
|
|
131
|
+
"**/*.cjs",
|
|
132
|
+
"**/*.ejs",
|
|
133
|
+
"**/.pubinfo/**/*"
|
|
134
|
+
]
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
export { stylelint as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const presetThemes = require('../shared/config.YMrrkzU5.cjs');
|
|
4
|
+
require('@unocss/core');
|
|
5
|
+
require('@unocss/preset-mini/utils');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.customColorKey = presetThemes.customColorKey;
|
|
10
|
+
exports.defineTheme = presetThemes.defineTheme;
|
|
11
|
+
exports.mergeTheme = presetThemes.mergeTheme;
|
|
12
|
+
exports.presetThemes = presetThemes.presetThemes;
|
|
13
|
+
exports.themes = presetThemes.themes;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as unocss from 'unocss';
|
|
2
|
+
|
|
3
|
+
declare const presetThemes: unocss.PresetFactory<object, undefined>;
|
|
4
|
+
|
|
5
|
+
type CSSColorValue = string;
|
|
6
|
+
type manColor = 'bg' | 'container-bg' | 'border-color';
|
|
7
|
+
type headerColor = 'header-bg' | 'header-color' | 'header-menu-color' | 'header-menu-hover-bg' | 'header-menu-hover-color' | 'header-menu-active-bg' | 'header-menu-active-color';
|
|
8
|
+
type mainSidebarColor = 'main-sidebar-bg' | 'main-sidebar-menu-color' | 'main-sidebar-menu-hover-bg' | 'main-sidebar-menu-hover-color' | 'main-sidebar-menu-active-bg' | 'main-sidebar-menu-active-color';
|
|
9
|
+
type subSidebarColor = 'sub-sidebar-bg' | 'sub-sidebar-logo-bg' | 'sub-sidebar-logo-color' | 'sub-sidebar-menu-color' | 'sub-sidebar-menu-hover-bg' | 'sub-sidebar-menu-hover-color' | 'sub-sidebar-menu-active-bg' | 'sub-sidebar-menu-active-color';
|
|
10
|
+
type tabbarColor = 'tabbar-dividers-bg' | 'tabbar-tab-color' | 'tabbar-tab-hover-bg' | 'tabbar-tab-hover-color' | 'tabbar-tab-active-color';
|
|
11
|
+
type themeScheme = 'light' | 'dark';
|
|
12
|
+
type customColor = typeof customColorKey[number];
|
|
13
|
+
type benchmark = `--g-${manColor | headerColor | mainSidebarColor | subSidebarColor | tabbarColor}`;
|
|
14
|
+
type cssVarKey = customColor | benchmark;
|
|
15
|
+
type colorScheme = Record<cssVarKey, CSSColorValue> & {
|
|
16
|
+
'color-scheme': themeScheme;
|
|
17
|
+
} & {
|
|
18
|
+
label?: string;
|
|
19
|
+
};
|
|
20
|
+
interface themeOptions {
|
|
21
|
+
name: string;
|
|
22
|
+
colors: colorScheme;
|
|
23
|
+
}
|
|
24
|
+
declare const customColorKey: readonly ["--ui-primary", "--ui-text"];
|
|
25
|
+
interface globalTheme {
|
|
26
|
+
[key: string]: colorScheme;
|
|
27
|
+
}
|
|
28
|
+
declare function mergeTheme(themes: globalTheme[]): globalTheme;
|
|
29
|
+
declare function defineTheme(theme: themeOptions): globalTheme;
|
|
30
|
+
|
|
31
|
+
declare const themes: globalTheme;
|
|
32
|
+
|
|
33
|
+
export { type colorScheme, type cssVarKey, customColorKey, defineTheme, type globalTheme, mergeTheme, presetThemes, type themeOptions, themes };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as unocss from 'unocss';
|
|
2
|
+
|
|
3
|
+
declare const presetThemes: unocss.PresetFactory<object, undefined>;
|
|
4
|
+
|
|
5
|
+
type CSSColorValue = string;
|
|
6
|
+
type manColor = 'bg' | 'container-bg' | 'border-color';
|
|
7
|
+
type headerColor = 'header-bg' | 'header-color' | 'header-menu-color' | 'header-menu-hover-bg' | 'header-menu-hover-color' | 'header-menu-active-bg' | 'header-menu-active-color';
|
|
8
|
+
type mainSidebarColor = 'main-sidebar-bg' | 'main-sidebar-menu-color' | 'main-sidebar-menu-hover-bg' | 'main-sidebar-menu-hover-color' | 'main-sidebar-menu-active-bg' | 'main-sidebar-menu-active-color';
|
|
9
|
+
type subSidebarColor = 'sub-sidebar-bg' | 'sub-sidebar-logo-bg' | 'sub-sidebar-logo-color' | 'sub-sidebar-menu-color' | 'sub-sidebar-menu-hover-bg' | 'sub-sidebar-menu-hover-color' | 'sub-sidebar-menu-active-bg' | 'sub-sidebar-menu-active-color';
|
|
10
|
+
type tabbarColor = 'tabbar-dividers-bg' | 'tabbar-tab-color' | 'tabbar-tab-hover-bg' | 'tabbar-tab-hover-color' | 'tabbar-tab-active-color';
|
|
11
|
+
type themeScheme = 'light' | 'dark';
|
|
12
|
+
type customColor = typeof customColorKey[number];
|
|
13
|
+
type benchmark = `--g-${manColor | headerColor | mainSidebarColor | subSidebarColor | tabbarColor}`;
|
|
14
|
+
type cssVarKey = customColor | benchmark;
|
|
15
|
+
type colorScheme = Record<cssVarKey, CSSColorValue> & {
|
|
16
|
+
'color-scheme': themeScheme;
|
|
17
|
+
} & {
|
|
18
|
+
label?: string;
|
|
19
|
+
};
|
|
20
|
+
interface themeOptions {
|
|
21
|
+
name: string;
|
|
22
|
+
colors: colorScheme;
|
|
23
|
+
}
|
|
24
|
+
declare const customColorKey: readonly ["--ui-primary", "--ui-text"];
|
|
25
|
+
interface globalTheme {
|
|
26
|
+
[key: string]: colorScheme;
|
|
27
|
+
}
|
|
28
|
+
declare function mergeTheme(themes: globalTheme[]): globalTheme;
|
|
29
|
+
declare function defineTheme(theme: themeOptions): globalTheme;
|
|
30
|
+
|
|
31
|
+
declare const themes: globalTheme;
|
|
32
|
+
|
|
33
|
+
export { type colorScheme, type cssVarKey, customColorKey, defineTheme, type globalTheme, mergeTheme, presetThemes, type themeOptions, themes };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as unocss from 'unocss';
|
|
2
|
+
|
|
3
|
+
declare const presetThemes: unocss.PresetFactory<object, undefined>;
|
|
4
|
+
|
|
5
|
+
type CSSColorValue = string;
|
|
6
|
+
type manColor = 'bg' | 'container-bg' | 'border-color';
|
|
7
|
+
type headerColor = 'header-bg' | 'header-color' | 'header-menu-color' | 'header-menu-hover-bg' | 'header-menu-hover-color' | 'header-menu-active-bg' | 'header-menu-active-color';
|
|
8
|
+
type mainSidebarColor = 'main-sidebar-bg' | 'main-sidebar-menu-color' | 'main-sidebar-menu-hover-bg' | 'main-sidebar-menu-hover-color' | 'main-sidebar-menu-active-bg' | 'main-sidebar-menu-active-color';
|
|
9
|
+
type subSidebarColor = 'sub-sidebar-bg' | 'sub-sidebar-logo-bg' | 'sub-sidebar-logo-color' | 'sub-sidebar-menu-color' | 'sub-sidebar-menu-hover-bg' | 'sub-sidebar-menu-hover-color' | 'sub-sidebar-menu-active-bg' | 'sub-sidebar-menu-active-color';
|
|
10
|
+
type tabbarColor = 'tabbar-dividers-bg' | 'tabbar-tab-color' | 'tabbar-tab-hover-bg' | 'tabbar-tab-hover-color' | 'tabbar-tab-active-color';
|
|
11
|
+
type themeScheme = 'light' | 'dark';
|
|
12
|
+
type customColor = typeof customColorKey[number];
|
|
13
|
+
type benchmark = `--g-${manColor | headerColor | mainSidebarColor | subSidebarColor | tabbarColor}`;
|
|
14
|
+
type cssVarKey = customColor | benchmark;
|
|
15
|
+
type colorScheme = Record<cssVarKey, CSSColorValue> & {
|
|
16
|
+
'color-scheme': themeScheme;
|
|
17
|
+
} & {
|
|
18
|
+
label?: string;
|
|
19
|
+
};
|
|
20
|
+
interface themeOptions {
|
|
21
|
+
name: string;
|
|
22
|
+
colors: colorScheme;
|
|
23
|
+
}
|
|
24
|
+
declare const customColorKey: readonly ["--ui-primary", "--ui-text"];
|
|
25
|
+
interface globalTheme {
|
|
26
|
+
[key: string]: colorScheme;
|
|
27
|
+
}
|
|
28
|
+
declare function mergeTheme(themes: globalTheme[]): globalTheme;
|
|
29
|
+
declare function defineTheme(theme: themeOptions): globalTheme;
|
|
30
|
+
|
|
31
|
+
declare const themes: globalTheme;
|
|
32
|
+
|
|
33
|
+
export { type colorScheme, type cssVarKey, customColorKey, defineTheme, type globalTheme, mergeTheme, presetThemes, type themeOptions, themes };
|
package/dist/unocss.cjs
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const unocss$1 = require('unocss');
|
|
4
|
+
const presetThemes = require('./shared/config.YMrrkzU5.cjs');
|
|
5
|
+
require('@unocss/preset-mini/utils');
|
|
6
|
+
require('@unocss/core');
|
|
7
|
+
|
|
8
|
+
const unocss = unocss$1.definePreset(() => {
|
|
9
|
+
return {
|
|
10
|
+
name: "preset-pubinfo",
|
|
11
|
+
presets: [
|
|
12
|
+
presetThemes.presetThemes(),
|
|
13
|
+
unocss$1.presetUno(),
|
|
14
|
+
unocss$1.presetAttributify(),
|
|
15
|
+
unocss$1.presetTypography(),
|
|
16
|
+
unocss$1.presetIcons({
|
|
17
|
+
extraProperties: {
|
|
18
|
+
"display": "inline-block",
|
|
19
|
+
"vertical-align": "middle"
|
|
20
|
+
}
|
|
21
|
+
})
|
|
22
|
+
],
|
|
23
|
+
transformers: [
|
|
24
|
+
unocss$1.transformerDirectives()
|
|
25
|
+
],
|
|
26
|
+
shortcuts: [
|
|
27
|
+
{
|
|
28
|
+
"flex-center": "flex justify-center items-center",
|
|
29
|
+
"flex-col-center": "flex flex-col justify-center items-center"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
theme: {
|
|
33
|
+
colors: {
|
|
34
|
+
"ui-primary": "rgb(var(--ui-primary))",
|
|
35
|
+
"ui-text": "rgb(var(--ui-text))"
|
|
36
|
+
},
|
|
37
|
+
breakpoints: {
|
|
38
|
+
"sm": "768px",
|
|
39
|
+
"smd": "1024px",
|
|
40
|
+
"md": "1366px",
|
|
41
|
+
"lg": "1440px",
|
|
42
|
+
"xl": "1600px",
|
|
43
|
+
"2xl": "1920px"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
// TOFIX 此文件中该配置不生效
|
|
47
|
+
content: {
|
|
48
|
+
pipeline: {
|
|
49
|
+
include: [
|
|
50
|
+
/\.(vue|svelte|[jt]sx|mdx?|astro|elm|php|phtml|html)($|\?)/,
|
|
51
|
+
"src/routes/**/*.ts"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
// configDeps: themesPath,
|
|
56
|
+
};
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
module.exports = unocss;
|
package/dist/unocss.d.ts
ADDED
package/dist/unocss.mjs
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { definePreset, transformerDirectives, presetUno, presetAttributify, presetTypography, presetIcons } from 'unocss';
|
|
2
|
+
import { p as presetThemes } from './shared/config.BDKVPKTO.mjs';
|
|
3
|
+
import '@unocss/preset-mini/utils';
|
|
4
|
+
import '@unocss/core';
|
|
5
|
+
|
|
6
|
+
const unocss = definePreset(() => {
|
|
7
|
+
return {
|
|
8
|
+
name: "preset-pubinfo",
|
|
9
|
+
presets: [
|
|
10
|
+
presetThemes(),
|
|
11
|
+
presetUno(),
|
|
12
|
+
presetAttributify(),
|
|
13
|
+
presetTypography(),
|
|
14
|
+
presetIcons({
|
|
15
|
+
extraProperties: {
|
|
16
|
+
"display": "inline-block",
|
|
17
|
+
"vertical-align": "middle"
|
|
18
|
+
}
|
|
19
|
+
})
|
|
20
|
+
],
|
|
21
|
+
transformers: [
|
|
22
|
+
transformerDirectives()
|
|
23
|
+
],
|
|
24
|
+
shortcuts: [
|
|
25
|
+
{
|
|
26
|
+
"flex-center": "flex justify-center items-center",
|
|
27
|
+
"flex-col-center": "flex flex-col justify-center items-center"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
theme: {
|
|
31
|
+
colors: {
|
|
32
|
+
"ui-primary": "rgb(var(--ui-primary))",
|
|
33
|
+
"ui-text": "rgb(var(--ui-text))"
|
|
34
|
+
},
|
|
35
|
+
breakpoints: {
|
|
36
|
+
"sm": "768px",
|
|
37
|
+
"smd": "1024px",
|
|
38
|
+
"md": "1366px",
|
|
39
|
+
"lg": "1440px",
|
|
40
|
+
"xl": "1600px",
|
|
41
|
+
"2xl": "1920px"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
// TOFIX 此文件中该配置不生效
|
|
45
|
+
content: {
|
|
46
|
+
pipeline: {
|
|
47
|
+
include: [
|
|
48
|
+
/\.(vue|svelte|[jt]sx|mdx?|astro|elm|php|phtml|html)($|\?)/,
|
|
49
|
+
"src/routes/**/*.ts"
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
// configDeps: themesPath,
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
export { unocss as default };
|
package/package.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pubinfo/config",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "2.0.0-beta.1",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"import": "./dist/index.mjs",
|
|
9
|
+
"require": "./dist/index.cjs"
|
|
10
|
+
},
|
|
11
|
+
"./eslint": {
|
|
12
|
+
"types": "./dist/eslint/index.d.ts",
|
|
13
|
+
"import": "./dist/eslint/index.mjs",
|
|
14
|
+
"require": "./dist/eslint/index.cjs"
|
|
15
|
+
},
|
|
16
|
+
"./themes": {
|
|
17
|
+
"types": "./dist/themes/index.d.ts",
|
|
18
|
+
"import": "./dist/themes/index.mjs",
|
|
19
|
+
"require": "./dist/themes/index.cjs"
|
|
20
|
+
},
|
|
21
|
+
"./stylelint": {
|
|
22
|
+
"types": "./dist/stylelint.d.ts",
|
|
23
|
+
"import": "./dist/stylelint.mjs",
|
|
24
|
+
"require": "./dist/stylelint.cjs"
|
|
25
|
+
},
|
|
26
|
+
"./unocss": {
|
|
27
|
+
"types": "./dist/unocss.d.ts",
|
|
28
|
+
"import": "./dist/unocss.mjs",
|
|
29
|
+
"require": "./dist/unocss.cjs"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"main": "./dist/index.cjs",
|
|
33
|
+
"module": "./dist/index.mjs",
|
|
34
|
+
"types": "./dist/index.d.ts",
|
|
35
|
+
"files": [
|
|
36
|
+
"dist"
|
|
37
|
+
],
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"eslint": "^9.21.0",
|
|
40
|
+
"stylelint": "^16.15.0",
|
|
41
|
+
"unocss": "^65.5.0"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@antfu/eslint-config": "^3.16.0",
|
|
45
|
+
"@stylistic/stylelint-plugin": "^2.1.3",
|
|
46
|
+
"@unocss/core": "^65.5.0",
|
|
47
|
+
"@unocss/preset-mini": "^65.5.0",
|
|
48
|
+
"postcss-html": "^1.8.0",
|
|
49
|
+
"postcss-preset-env": "^10.1.5",
|
|
50
|
+
"stylelint-config-recess-order": "^5.1.1",
|
|
51
|
+
"stylelint-config-standard-less": "^3.0.1",
|
|
52
|
+
"stylelint-config-standard-scss": "^13.1.0",
|
|
53
|
+
"stylelint-config-standard-vue": "^1.0.0",
|
|
54
|
+
"stylelint-scss": "^6.11.1"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"eslint": "^9.21.0",
|
|
58
|
+
"stylelint": "^16.15.0",
|
|
59
|
+
"unbuild": "^3.5.0",
|
|
60
|
+
"unocss": "^65.5.0"
|
|
61
|
+
},
|
|
62
|
+
"scripts": {
|
|
63
|
+
"stub": "unbuild --stub",
|
|
64
|
+
"build": "unbuild"
|
|
65
|
+
}
|
|
66
|
+
}
|