@itcase/config 1.0.26 → 1.0.27
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/commitlint/index.js +1 -1
- package/package.json +7 -6
- package/postcss/index.js +6 -5
- package/postcss/require.cjs +5 -8
- package/postcss/require.js +6 -4
- package/postcss/requirePackage.cjs +13 -5
package/commitlint/index.js
CHANGED
|
@@ -10,7 +10,7 @@ export default {
|
|
|
10
10
|
const { type } = parsed
|
|
11
11
|
if (!commitTypes.includes(type)) {
|
|
12
12
|
const errorMessage =
|
|
13
|
-
`type must
|
|
13
|
+
`type must be in ['⭐️ major','🐞 minor','✅ patch']\n` +
|
|
14
14
|
` 'fix: my commit message'`
|
|
15
15
|
return [false, errorMessage]
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.27",
|
|
4
4
|
"author": "ITCase",
|
|
5
5
|
"description": "Config",
|
|
6
6
|
"engines": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"postcss-cli": "^11.0.1",
|
|
41
41
|
"postcss-color-hsla-fallback": "^1.0.0",
|
|
42
42
|
"postcss-combine-duplicated-selectors": "^10.0.3",
|
|
43
|
-
"postcss-custom-
|
|
43
|
+
"postcss-custom-css-units": "^0.1.0",
|
|
44
44
|
"postcss-dark-theme-class": "^1.3.0",
|
|
45
45
|
"postcss-discard-duplicates": "^7.0.1",
|
|
46
46
|
"postcss-each": "^1.1.0",
|
|
@@ -66,16 +66,17 @@
|
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@commitlint/cli": "^19.8.0",
|
|
68
68
|
"@commitlint/config-conventional": "^19.8.0",
|
|
69
|
-
"@itcase/lint": "^1.
|
|
69
|
+
"@itcase/lint": "^1.1.7",
|
|
70
70
|
"@semantic-release/changelog": "^6.0.3",
|
|
71
71
|
"@semantic-release/git": "^10.0.1",
|
|
72
72
|
"@semantic-release/release-notes-generator": "14.0.3",
|
|
73
73
|
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
74
|
-
"eslint": "^9.
|
|
74
|
+
"eslint": "^9.24.0",
|
|
75
75
|
"husky": "^9.1.7",
|
|
76
|
-
"lint-staged": "^15.5.
|
|
76
|
+
"lint-staged": "^15.5.1",
|
|
77
77
|
"prettier": "^3.5.3",
|
|
78
78
|
"semantic-release": "^24.2.3",
|
|
79
|
-
"stylelint": "^16.
|
|
79
|
+
"stylelint": "^16.18.0",
|
|
80
|
+
"typescript": "^5.8.3"
|
|
80
81
|
}
|
|
81
82
|
}
|
package/postcss/index.js
CHANGED
|
@@ -11,8 +11,8 @@ export default {
|
|
|
11
11
|
[
|
|
12
12
|
'postcss-prepend-imports',
|
|
13
13
|
{
|
|
14
|
-
files: ['import.css'],
|
|
15
14
|
path: 'src/styles/',
|
|
15
|
+
files: ['import.css'],
|
|
16
16
|
},
|
|
17
17
|
],
|
|
18
18
|
'postcss-import-ext-glob',
|
|
@@ -25,11 +25,12 @@ export default {
|
|
|
25
25
|
'postcss-each',
|
|
26
26
|
'postcss-mixins',
|
|
27
27
|
[
|
|
28
|
-
'postcss-custom-
|
|
28
|
+
'postcss-custom-css-units',
|
|
29
29
|
{
|
|
30
|
-
|
|
30
|
+
baseUnit: '--module-unit',
|
|
31
|
+
customUnit: 'm',
|
|
31
32
|
},
|
|
32
|
-
],
|
|
33
|
+
],
|
|
33
34
|
'postcss-flexbugs-fixes',
|
|
34
35
|
[
|
|
35
36
|
'postcss-preset-env',
|
|
@@ -46,8 +47,8 @@ export default {
|
|
|
46
47
|
[
|
|
47
48
|
'postcss-url',
|
|
48
49
|
{
|
|
49
|
-
maxSize: 256,
|
|
50
50
|
url: 'inline',
|
|
51
|
+
maxSize: 256,
|
|
51
52
|
},
|
|
52
53
|
],
|
|
53
54
|
'postcss-nested-ancestors',
|
package/postcss/require.cjs
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
1
2
|
module.exports = {
|
|
2
3
|
plugins: [
|
|
3
4
|
require('postcss-normalize'),
|
|
4
5
|
require('postcss-prepend-imports')({
|
|
5
|
-
files: ['import.css'],
|
|
6
6
|
path: 'src/styles/',
|
|
7
|
+
files: ['import.css'],
|
|
7
8
|
}),
|
|
8
9
|
require('postcss-import-ext-glob'),
|
|
9
10
|
require('postcss-import')({ addModulesDirectories: ['node_modules'] }),
|
|
10
11
|
require('postcss-each'),
|
|
11
12
|
require('postcss-mixins'),
|
|
12
13
|
require('postcss-flexbugs-fixes'),
|
|
13
|
-
require('postcss-custom-
|
|
14
|
-
|
|
14
|
+
require('postcss-custom-css-units')({
|
|
15
|
+
baseUnit: '--module-unit',
|
|
16
|
+
customUnit: 'm',
|
|
15
17
|
}),
|
|
16
|
-
|
|
17
18
|
require('postcss-preset-env')({
|
|
18
19
|
features: {
|
|
19
20
|
'custom-properties': {
|
|
@@ -40,10 +41,6 @@ module.exports = {
|
|
|
40
41
|
rootValue: 16,
|
|
41
42
|
}),
|
|
42
43
|
require('postcss-merge-at-rules')(),
|
|
43
|
-
require('postcss-custom-unit')({
|
|
44
|
-
units: [{ from: 'm', convert: (val) => val * 8 + 'px' }],
|
|
45
|
-
}),
|
|
46
|
-
|
|
47
44
|
require('postcss-sort-media-queries')({
|
|
48
45
|
sort: 'mobile-first',
|
|
49
46
|
}),
|
package/postcss/require.js
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
2
|
+
|
|
1
3
|
module.exports = {
|
|
2
4
|
plugins: [
|
|
3
5
|
require('postcss-normalize'),
|
|
4
6
|
require('postcss-prepend-imports')({
|
|
5
|
-
files: ['import.css'],
|
|
6
7
|
path: 'src/styles/',
|
|
8
|
+
files: ['import.css'],
|
|
7
9
|
}),
|
|
8
10
|
require('postcss-import-ext-glob'),
|
|
9
11
|
require('postcss-import')({ addModulesDirectories: ['node_modules'] }),
|
|
10
12
|
require('postcss-each'),
|
|
11
13
|
require('postcss-mixins'),
|
|
12
|
-
require('postcss-custom-
|
|
13
|
-
|
|
14
|
+
require('postcss-custom-css-units')({
|
|
15
|
+
baseUnit: '--module-unit',
|
|
16
|
+
customUnit: 'm',
|
|
14
17
|
}),
|
|
15
|
-
|
|
16
18
|
require('postcss-flexbugs-fixes'),
|
|
17
19
|
require('postcss-preset-env')({
|
|
18
20
|
features: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
1
2
|
// The package does not use 'development' plugins
|
|
2
3
|
// to save the ability to define variables at the project level
|
|
3
4
|
// Only used plugins to import and copy files to dist
|
|
@@ -8,16 +9,23 @@ module.exports = {
|
|
|
8
9
|
? [
|
|
9
10
|
require('postcss-normalize'),
|
|
10
11
|
require('postcss-prepend-imports')({
|
|
11
|
-
files: ['import.css'],
|
|
12
12
|
path: 'src/styles/',
|
|
13
|
+
files: ['import.css'],
|
|
13
14
|
}),
|
|
14
15
|
require('postcss-import-ext-glob'),
|
|
15
|
-
require('postcss-import')({
|
|
16
|
+
require('postcss-import')({
|
|
17
|
+
addModulesDirectories: ['node_modules'],
|
|
18
|
+
}),
|
|
16
19
|
require('postcss-each'),
|
|
17
20
|
require('postcss-mixins'),
|
|
18
21
|
require('postcss-flexbugs-fixes'),
|
|
19
|
-
require('postcss-custom-
|
|
20
|
-
|
|
22
|
+
require('postcss-custom-css-units')({
|
|
23
|
+
baseUnit: '--module-unit',
|
|
24
|
+
customUnit: 'm',
|
|
25
|
+
}),
|
|
26
|
+
require('postcss-custom-css-units')({
|
|
27
|
+
baseUnit: '--module-unit',
|
|
28
|
+
customUnit: 'm',
|
|
21
29
|
}),
|
|
22
30
|
require('postcss-preset-env')({
|
|
23
31
|
features: {
|
|
@@ -52,6 +60,6 @@ module.exports = {
|
|
|
52
60
|
: [
|
|
53
61
|
require('postcss-normalize'),
|
|
54
62
|
require('postcss-import-ext-glob'),
|
|
55
|
-
require('postcss-import')
|
|
63
|
+
require('postcss-import'),
|
|
56
64
|
],
|
|
57
65
|
}
|