@itcase/config 1.0.66 → 1.0.68
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/package.json +2 -2
- package/postcss/nextVite.js +46 -39
- package/postcss/require.cjs +12 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.68",
|
|
4
4
|
"author": "ITCase",
|
|
5
5
|
"description": "Config",
|
|
6
6
|
"engines": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@commitlint/cli": "^20.1.0",
|
|
69
69
|
"@commitlint/config-conventional": "^20.0.0",
|
|
70
|
-
"@itcase/lint": "^1.1.
|
|
70
|
+
"@itcase/lint": "^1.1.69",
|
|
71
71
|
"@semantic-release/changelog": "^6.0.3",
|
|
72
72
|
"@semantic-release/git": "^10.0.1",
|
|
73
73
|
"@semantic-release/release-notes-generator": "14.1.0",
|
package/postcss/nextVite.js
CHANGED
|
@@ -23,60 +23,67 @@ import postcssSortMediaQueries from 'postcss-sort-media-queries'
|
|
|
23
23
|
import postcssUrl from 'postcss-url'
|
|
24
24
|
|
|
25
25
|
export default {
|
|
26
|
-
plugins:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
plugins: [
|
|
27
|
+
postcssNormalize,
|
|
28
|
+
postcssPrependImports({
|
|
29
|
+
path: 'src/styles/',
|
|
30
|
+
files: ['tokens.css', 'import.css'],
|
|
31
|
+
}),
|
|
32
|
+
postcssImportExtGlob,
|
|
33
|
+
postcssImport({ addModulesDirectories: ['node_modules'] }),
|
|
34
|
+
postcssEach,
|
|
35
|
+
postcssConvertUnit({
|
|
30
36
|
convertConfig: [
|
|
31
37
|
{
|
|
32
|
-
declConvertRules: [
|
|
33
|
-
|
|
38
|
+
declConvertRules: [
|
|
39
|
+
{
|
|
40
|
+
value: (value) => value * 8,
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
declMatcher: {
|
|
44
|
+
sourceUnit: 'm',
|
|
45
|
+
targetUnit: 'px',
|
|
46
|
+
},
|
|
34
47
|
},
|
|
35
48
|
],
|
|
36
49
|
}),
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
lightSelector: '.light-theme',
|
|
40
|
-
}),
|
|
41
|
-
'postcss-discard-duplicates': postcssDiscardDuplicates(),
|
|
42
|
-
'postcss-each': postcssEach(),
|
|
43
|
-
'postcss-easings': postcssEasings(),
|
|
44
|
-
'postcss-extend-rule': postcssExtendRule(),
|
|
45
|
-
'postcss-flexbugs-fixes': postcssFlexbugsFixes(),
|
|
46
|
-
'postcss-hexrgba': postcssHexRgba(),
|
|
47
|
-
'postcss-import': postcssImport({
|
|
48
|
-
addModulesDirectories: ['node_modules'],
|
|
49
|
-
}),
|
|
50
|
-
'postcss-import-ext-glob': postcssImportExtGlob(),
|
|
51
|
-
'postcss-merge-at-rules': postcssMergeAtRules(),
|
|
52
|
-
'postcss-mixins': postcssMixins(),
|
|
53
|
-
'postcss-nested': postcssNested(),
|
|
54
|
-
'postcss-nested-ancestors': postcssNestedAncestors(),
|
|
55
|
-
'postcss-normalize': postcssNormalize(),
|
|
56
|
-
'postcss-prepend-imports': postcssPrependImports({
|
|
57
|
-
path: 'src/styles/',
|
|
58
|
-
files: ['tokens.css', 'import.css'],
|
|
59
|
-
}),
|
|
60
|
-
'postcss-preset-env': postcssPresetEnv({
|
|
50
|
+
postcssFlexbugsFixes,
|
|
51
|
+
postcssPresetEnv({
|
|
61
52
|
features: {
|
|
62
|
-
'custom-properties': {
|
|
53
|
+
'custom-properties': {
|
|
54
|
+
preserve: false,
|
|
55
|
+
},
|
|
63
56
|
'nesting-rules': false,
|
|
64
57
|
},
|
|
65
58
|
stage: 2,
|
|
66
59
|
}),
|
|
67
|
-
|
|
60
|
+
postcssMixins,
|
|
61
|
+
postcssUrl({
|
|
62
|
+
maxSize: 256,
|
|
63
|
+
url: 'inline',
|
|
64
|
+
filter: /\\.(svg|png)$/,
|
|
65
|
+
}),
|
|
66
|
+
postcssNestedAncestors,
|
|
67
|
+
postcssNested,
|
|
68
|
+
postcssHexRgba,
|
|
69
|
+
postcssEasings,
|
|
70
|
+
postcssDarkThemeClass({
|
|
71
|
+
darkSelector: '.dark-theme',
|
|
72
|
+
lightSelector: '.light-theme',
|
|
73
|
+
}),
|
|
74
|
+
postcssCombineDuplicatedSelectors,
|
|
75
|
+
postcssDiscardDuplicates,
|
|
76
|
+
postcssPxtorem({
|
|
68
77
|
minPixelValue: 0,
|
|
69
78
|
propList: ['font', 'font-size', 'line-height', 'letter-spacing'],
|
|
70
79
|
rootValue: 16,
|
|
71
80
|
}),
|
|
72
|
-
|
|
81
|
+
postcssMergeAtRules(),
|
|
82
|
+
postcssSortMediaQueries({
|
|
73
83
|
sort: 'mobile-first',
|
|
74
84
|
}),
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
filter: /\\.(svg|png)$/,
|
|
79
|
-
}),
|
|
80
|
-
},
|
|
85
|
+
postcssExtendRule,
|
|
86
|
+
lehoczkyPostcssFluid,
|
|
87
|
+
],
|
|
81
88
|
...(process.env.NODE_ENV === 'production' && { plugins: { cssnano } }),
|
|
82
89
|
}
|
package/postcss/require.cjs
CHANGED
|
@@ -35,11 +35,18 @@ module.exports = {
|
|
|
35
35
|
stage: 2,
|
|
36
36
|
}),
|
|
37
37
|
require('postcss-mixins'),
|
|
38
|
-
require('postcss-url')(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
require('postcss-url')(
|
|
39
|
+
{
|
|
40
|
+
maxSize: 256,
|
|
41
|
+
url: 'inline',
|
|
42
|
+
filter: /\.(svg|png)$/,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
maxSize: 2048,
|
|
46
|
+
url: 'inline',
|
|
47
|
+
filter: /\.(eot|woff|woff2|ttf)$/,
|
|
48
|
+
},
|
|
49
|
+
),
|
|
43
50
|
require('postcss-nested-ancestors'),
|
|
44
51
|
require('postcss-nested'),
|
|
45
52
|
require('postcss-hexrgba'),
|