@nitra/cursor 1.3.2 → 1.3.3
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/mdc/nginx-default-tpl.mdc +21 -0
- package/mdc/stylelint.mdc +8 -0
- package/package.json +1 -1
|
@@ -70,6 +70,27 @@ server {
|
|
|
70
70
|
|
|
71
71
|
Якщо в файлі вже були proxy_pass секції, то їх логіку потрібно перенести до HTTPRoute в k8s.
|
|
72
72
|
|
|
73
|
+
В HTTPRoute повинна бути секція Exact редиректу на версію з /
|
|
74
|
+
|
|
75
|
+
```yaml
|
|
76
|
+
spec:
|
|
77
|
+
rules:
|
|
78
|
+
- matches:
|
|
79
|
+
- path:
|
|
80
|
+
type: Exact
|
|
81
|
+
value: /$PUBLIC_PATH
|
|
82
|
+
filters:
|
|
83
|
+
- type: RequestRedirect
|
|
84
|
+
requestRedirect:
|
|
85
|
+
scheme: https
|
|
86
|
+
path:
|
|
87
|
+
type: ReplaceFullPath
|
|
88
|
+
replaceFullPath: /$PUBLIC_PATH/
|
|
89
|
+
statusCode: 301
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
де $PUBLIC_PATH підставляється з ini файлу з dev середовища, а якщо для інших середовищ відрізняється то підставляється в kustomization.ya,l відповідні значення з ini середовища.
|
|
93
|
+
|
|
73
94
|
В Dockerfile потрібно додати команду для стиснення файлів, які потім використовуватимуться з `gzip_static on`:
|
|
74
95
|
|
|
75
96
|
```dockerfile
|
package/mdc/stylelint.mdc
CHANGED
|
@@ -26,6 +26,7 @@ version: '1.0'
|
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
в файлі package.json є налаштування для stylelint:
|
|
29
|
+
|
|
29
30
|
```json title="package.json"
|
|
30
31
|
"scripts": {
|
|
31
32
|
"lint-style": "stylelint '**/*.{css,scss,vue}' --fix",
|
|
@@ -37,7 +38,9 @@ version: '1.0'
|
|
|
37
38
|
"extends": "@nitra/stylelint-config"
|
|
38
39
|
},
|
|
39
40
|
```
|
|
41
|
+
|
|
40
42
|
Є гітхаб actions .github/workflows/lint-style.yml:
|
|
43
|
+
|
|
41
44
|
```yaml
|
|
42
45
|
name: StyleLint
|
|
43
46
|
|
|
@@ -81,3 +84,8 @@ jobs:
|
|
|
81
84
|
npx stylelint '**/*.{css,scss,vue}'
|
|
82
85
|
```
|
|
83
86
|
|
|
87
|
+
В корені проекту має бути файл .stylelintignore з виключенням:
|
|
88
|
+
|
|
89
|
+
```text title=".stylelintignore"
|
|
90
|
+
dist/
|
|
91
|
+
```
|