@itcase/config 1.6.68 → 1.6.70

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/README.md CHANGED
@@ -18,7 +18,7 @@ npm install --save-dev @itcase/config
18
18
  - `commitlint/commitizenAdapter.js` — адаптер Commitizen (type → scope → subScope → subject)
19
19
 
20
20
  - **Husky** — общие git-хуки в `husky-hooks/`
21
- - Логика хуков живёт в пакете; бинарь `itcase-config-husky-hooks` ставится при `npm i`. В репозитории остаются файлы `.husky/<hook>` и локальный `.husky/config`
21
+ - В git только `.husky/config`; обёртки и `_run.sh` создаёт `itcase-config-husky-install` при `npm i`
22
22
 
23
23
  - **Lint-staged** — запуск линтеров для измененных файлов
24
24
  - `lint-staged/index.js` — базовая конфигурация
@@ -85,9 +85,7 @@ npm install --save-dev commitizen @commitlint/cz-commitlint
85
85
 
86
86
  ## Подключение Husky
87
87
 
88
- В репозитории остаются файлы, на которые опираются git и husky. Логика лежит в `@itcase/config/husky-hooks`. При установке пакета npm кладёт бинарь `itcase-config-husky-hooks` в `node_modules/.bin` — husky уже добавляет этот путь в `PATH`.
89
-
90
- При каждом `npm i` в проекте нужен `prepare` (скрипт корня репозитория, не `postinstall` зависимости):
88
+ В git кладите только `.husky/config`. Обёртки хуков и `_run.sh` создаёт `itcase-config-husky-install` при `npm i`. Логика хуков живёт в `@itcase/config/husky-hooks`.
91
89
 
92
90
  ```json
93
91
  {
@@ -97,7 +95,7 @@ npm install --save-dev commitizen @commitlint/cz-commitlint
97
95
  }
98
96
  ```
99
97
 
100
- Пока бинарь ещё не в установленной версии пакета, можно так:
98
+ Пока бинарь ещё не в установленной версии пакета:
101
99
 
102
100
  ```json
103
101
  {
@@ -107,28 +105,20 @@ npm install --save-dev commitizen @commitlint/cz-commitlint
107
105
  }
108
106
  ```
109
107
 
110
- `itcase-config-husky-install` копирует `.husky/_run.sh`, создаёт недостающие обёртки и при пустом `.husky` восстанавливает `config` из `config.example`. Свои полные хуки не перезаписывает. Добавьте в `.gitignore`:
108
+ В `.gitignore`:
111
109
 
112
110
  ```gitignore
113
- .husky/_run.sh
114
- ```
115
-
116
- `npm i --ignore-scripts` файлы не создаст.
117
-
118
- В каждом git-hook оставьте обёртку:
119
-
120
- ```sh
121
- #!/usr/bin/env sh
122
- . "$(dirname "$0")/_run.sh"
111
+ .husky/*
112
+ !.husky/config
123
113
  ```
124
114
 
125
- Нужны: `pre-commit`, `commit-msg`, `prepare-commit-msg`, `pre-push`, `post-merge`, `post-commit`. `set-release-message` тоже можно обернуть — его вызывает `post-merge`.
115
+ `itcase-config-husky-install` копирует `_run.sh`, создаёт обёртки и при отсутствии восстанавливает `config` из `config.example`. Свои полные хуки не перезаписывает. `npm i --ignore-scripts` файлы не создаст.
126
116
 
127
- Локальный `.husky/config` не оборачивайте. Образец: `husky-hooks/config.example`.
117
+ `.husky/config`:
128
118
 
129
119
  ```bash
130
120
  PROTECTED_BRANCHES="master"
131
121
  RELEASE_BRANCHES="master"
132
122
  ```
133
123
 
134
- `prepare` в `package.json`: `"prepare": "husky && itcase-config-husky-install"`.
124
+ Образец: `husky-hooks/config.example`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/config",
3
- "version": "1.6.68",
3
+ "version": "1.6.70",
4
4
  "author": "ITCase",
5
5
  "description": "ITCase Config",
6
6
  "engines": {
@@ -41,11 +41,11 @@
41
41
  "@commitlint/config-conventional": "^21.2.2",
42
42
  "@commitlint/cz-commitlint": "^21.2.2",
43
43
  "@lehoczky/postcss-fluid": "^1.0.3",
44
- "@lerna-lite/cli": "^5.5.0",
45
- "@lerna-lite/exec": "^5.5.0",
46
- "@lerna-lite/list": "^5.5.0",
47
- "@lerna-lite/run": "^5.5.0",
48
- "@lerna-lite/watch": "^5.5.0",
44
+ "@lerna-lite/cli": "^5.6.0",
45
+ "@lerna-lite/exec": "^5.6.0",
46
+ "@lerna-lite/list": "^5.6.0",
47
+ "@lerna-lite/run": "^5.6.0",
48
+ "@lerna-lite/watch": "^5.6.0",
49
49
  "@rollup/plugin-alias": "^6.0.0",
50
50
  "@rollup/plugin-babel": "^7.1.0",
51
51
  "@rollup/plugin-commonjs": "^29.0.3",
@@ -62,9 +62,9 @@
62
62
  "chokidar-cli": "^3.0.0",
63
63
  "commitizen": "^4.3.2",
64
64
  "conventional-changelog-conventionalcommits": "9.3.1",
65
- "cssnano": "^8.0.5",
66
- "cssnano-preset-default": "^8.0.5",
67
- "inquirer": "^14.0.2",
65
+ "cssnano": "^8.0.6",
66
+ "cssnano-preset-default": "^8.0.6",
67
+ "inquirer": "^14.1.0",
68
68
  "postcss": "^8.5.26",
69
69
  "postcss-aspect-ratio-polyfill": "^2.0.0",
70
70
  "postcss-clamp": "^4.1.0",
@@ -73,13 +73,13 @@
73
73
  "postcss-combine-duplicated-selectors": "^10.0.3",
74
74
  "postcss-convert-unit": "^0.1.3",
75
75
  "postcss-dark-theme-class": "^2.0.0",
76
- "postcss-discard-duplicates": "^8.0.3",
76
+ "postcss-discard-duplicates": "^8.0.4",
77
77
  "postcss-each": "^1.1.0",
78
78
  "postcss-easings": "^4.0.0",
79
79
  "postcss-extend-rule": "^4.0.0",
80
80
  "postcss-flexbugs-fixes": "^5.0.2",
81
81
  "postcss-hexrgba": "^2.1.0",
82
- "postcss-import": "^16.2.0",
82
+ "postcss-import": "^17.0.0",
83
83
  "postcss-import-ext-glob": "^2.1.1",
84
84
  "postcss-loader": "^8.2.1",
85
85
  "postcss-merge-at-rules": "^2.0.1",
@@ -89,7 +89,7 @@
89
89
  "postcss-nested-ancestors": "^3.0.0",
90
90
  "postcss-normalize": "^13.0.1",
91
91
  "postcss-prepend-imports": "^1.0.1",
92
- "postcss-preset-env": "^11.3.2",
92
+ "postcss-preset-env": "^11.4.0",
93
93
  "postcss-pxtorem": "^6.1.0",
94
94
  "postcss-sort-media-queries": "^6.7.1",
95
95
  "postcss-unit": "^0.0.3",
@@ -109,10 +109,10 @@
109
109
  "@itcase/lint": "^1.1.122",
110
110
  "eslint": "9.39.2",
111
111
  "husky": "^9.1.7",
112
- "inquirer": "^14.0.2",
112
+ "inquirer": "^14.1.0",
113
113
  "lint-staged": "^17.3.0",
114
114
  "prettier": "^3.9.6",
115
- "storybook": "^10.5.8",
115
+ "storybook": "^10.5.10",
116
116
  "stylelint": "^17.14.1",
117
117
  "typescript": "^6.0.3"
118
118
  }
@@ -52,6 +52,7 @@ module.exports = {
52
52
  },
53
53
  ),
54
54
  require('postcss-nested-ancestors'),
55
+ require('./silenceNestedAncestorsMultiPlaceholder.cjs'),
55
56
  postcssNested,
56
57
  require('postcss-hexrgba'),
57
58
  require('postcss-easings'),