@itcase/config 1.0.6 → 1.0.8

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/config",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "author": "ITCase",
5
5
  "description": "Config",
6
6
  "engines": {
@@ -30,7 +30,7 @@
30
30
  "registry": "https://registry.npmjs.org/"
31
31
  },
32
32
  "dependencies": {
33
- "@babel/eslint-parser": "^7.26.5",
33
+ "@babel/eslint-parser": "^7.26.8",
34
34
  "@babel/plugin-proposal-decorators": "^7.25.9",
35
35
  "@babel/preset-typescript": "^7.26.0",
36
36
  "@lehoczky/postcss-fluid": "^1.0.3",
@@ -38,7 +38,7 @@
38
38
  "autoprefixer": "^10.4.20",
39
39
  "cssnano": "^7.0.6",
40
40
  "cssnano-preset-default": "^7.0.6",
41
- "eslint": "^9.19.0",
41
+ "eslint": "^9.20.1",
42
42
  "postcss-aspect-ratio-polyfill": "^2.0.0",
43
43
  "postcss-clamp": "^4.1.0",
44
44
  "postcss-cli": "^11.0.0",
@@ -54,29 +54,32 @@
54
54
  "postcss-import-ext-glob": "^2.1.1",
55
55
  "postcss-loader": "^8.1.1",
56
56
  "postcss-mixins": "^11.0.3",
57
+ "postcss-mq-extract": "^1.0.0",
57
58
  "postcss-nested": "^7.0.2",
58
59
  "postcss-nested-ancestors": "^3.0.0",
59
60
  "postcss-normalize": "^13.0.1",
60
61
  "postcss-prepend-imports": "^1.0.1",
61
- "postcss-preset-env": "^10.1.3",
62
+ "postcss-preset-env": "^10.1.4",
62
63
  "postcss-pxtorem": "^6.1.0",
63
64
  "postcss-sort-media-queries": "^5.2.0",
65
+ "postcss-unit": "^0.0.3",
66
+ "postcss-unit-processor": "^1.0.1",
64
67
  "postcss-url": "^10.1.3",
65
- "prettier": "^3.4.2",
68
+ "prettier": "^3.5.1",
66
69
  "stylelint": "^16.14.1",
67
- "typescript-eslint": "^8.23.0"
70
+ "typescript-eslint": "^8.24.0"
68
71
  },
69
72
  "devDependencies": {
70
73
  "@commitlint/cli": "^19.7.1",
71
74
  "@commitlint/config-conventional": "^19.7.1",
72
- "@itcase/lint": "^1.0.38",
75
+ "@itcase/lint": "^1.0.41",
73
76
  "@semantic-release/changelog": "^6.0.3",
74
77
  "@semantic-release/git": "^10.0.1",
75
78
  "@semantic-release/release-notes-generator": "14.0.3",
76
79
  "conventional-changelog-conventionalcommits": "^8.0.0",
77
80
  "husky": "^9.1.7",
78
81
  "lint-staged": "^15.4.3",
79
- "semantic-release": "^24.2.1",
82
+ "semantic-release": "^24.2.3",
80
83
  "typescript": "^5.7.3"
81
84
  }
82
85
  }
package/postcss/index.js CHANGED
@@ -66,6 +66,17 @@ export default {
66
66
  rootValue: 16,
67
67
  },
68
68
  ],
69
+ [
70
+ 'postcss-unit',
71
+ {
72
+ convert: (number) => number * 8,
73
+ from: 'm',
74
+ mediaQuery: false,
75
+ minValue: 0,
76
+ propWhiteList: ['padding*', 'maring*', 'border*', 'top', 'left', 'right', 'bottom', 'gap'],
77
+ to: 'px',
78
+ },
79
+ ],
69
80
  [
70
81
  'postcss-sort-media-queries',
71
82
  {
@@ -35,6 +35,16 @@ module.exports = {
35
35
  propList: ['font', 'font-size', 'line-height', 'letter-spacing'],
36
36
  rootValue: 16,
37
37
  }),
38
+
39
+ require('postcss-unit')({
40
+ convert: (number) => number * 8,
41
+ from: 'm',
42
+ mediaQuery: false,
43
+ minValue: 0,
44
+ propWhiteList: ['padding*', 'maring*', 'border*', 'top', 'left', 'right', 'bottom', 'gap'],
45
+ to: 'px',
46
+ }),
47
+
38
48
  require('postcss-sort-media-queries')({
39
49
  sort: 'mobile-first',
40
50
  }),