@dxtmisha/scripts 0.5.7 → 0.5.9

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@dxtmisha/scripts",
3
3
  "private": false,
4
- "version": "0.5.7",
4
+ "version": "0.5.9",
5
5
  "type": "module",
6
6
  "description": "Development scripts and CLI tools for DXT UI projects - automated component generation, library building and project management tools",
7
7
  "keywords": [
@@ -87,6 +87,10 @@ export class BuildItem {
87
87
  this.resetViteConfig()
88
88
  this.readAndWriteALlFiles()
89
89
 
90
+ if (!status) {
91
+ process.exit(601)
92
+ }
93
+
90
94
  return status
91
95
  }
92
96
 
@@ -169,7 +173,6 @@ ${content}
169
173
  return true
170
174
  } catch (error) {
171
175
  console.error('Error', error)
172
- process.exit(601)
173
176
  }
174
177
 
175
178
  return false
@@ -12,7 +12,7 @@ Use the following template and style. Your response must contain ONLY MDX code.
12
12
  ### Documentation Structure:
13
13
 
14
14
  1. **Header**:
15
- ```javascript
15
+ ```javascript (or typescript if typing is present)
16
16
  import {Meta} from '@storybook/addon-docs/blocks'
17
17
 
18
18
  <Meta title='[title]'/>
@@ -43,7 +43,7 @@ Use the following template and style. Your response must contain ONLY MDX code.
43
43
  - **Returns:** (if it returns a value)
44
44
  - `Type` — description.
45
45
  - **Code Example**:
46
- ```javascript
46
+ ```javascript (or typescript if typing is present)
47
47
  // Example usage
48
48
  Class.method(arg);
49
49
  ```
@@ -60,7 +60,3 @@ Use the following template and style. Your response must contain ONLY MDX code.
60
60
  6. Return only the full MDX documentation code without any additional text, comments, or markdown formatting (```).
61
61
  7. The result must be exclusively text (response); do not attach any files.
62
62
  8. Return the response in the format: [short description of 3-5 words about the class purpose]#########[original class code with comments for methods, variables, properties, and the class itself (add them if missing). If everything is already present, return --FULL--]#########[the MDX documentation following the template above].
63
-
64
-
65
-
66
-
@@ -12,7 +12,7 @@
12
12
  ### Структура документации:
13
13
 
14
14
  1. **Шапка**:
15
- ```javascript
15
+ ```javascript (или typescript, если есть типизация)
16
16
  import {Meta} from '@storybook/addon-docs/blocks'
17
17
 
18
18
  <Meta title='[title]'/>
@@ -43,7 +43,7 @@
43
43
  - **Возвращает:** (если возвращает значение)
44
44
  - `Тип` — описание.
45
45
  - **Пример кода**:
46
- ```javascript
46
+ ```javascript (или typescript, если есть типизация)
47
47
  // Пример вызова
48
48
  Class.method(arg);
49
49
  ```
@@ -60,5 +60,3 @@
60
60
  6. Верни только полный MDX-код документации без какого-либо дополнительного текста, комментариев или форматирования markdown (```).
61
61
  7. Результат должен быть исключительно в виде текста (ответа), не прикрепляй никаких файлов.
62
62
  8. Верни ответ в формате: [короткое описание в несколько слов (3-5) о назначении класса]#########[оригинальный код класса с комментариями к методам, переменным, свойствам и самому классу (добавь их, если они отсутствуют). Если все комментарии уже присутствуют, верни --FULL--]#########[сама документация в MDX формате по шаблону выше].
63
-
64
-
@@ -12,7 +12,7 @@ Use the following template and style. Your response must contain ONLY MDX code.
12
12
  ### Documentation Structure:
13
13
 
14
14
  1. **Header**:
15
- ```javascript
15
+ ```javascript (or typescript if typing is present)
16
16
  import {Meta} from '@storybook/addon-docs/blocks'
17
17
 
18
18
  <Meta title='[title]'/>
@@ -39,7 +39,7 @@ Use the following template and style. Your response must contain ONLY MDX code.
39
39
  - **TypeName:**
40
40
  - List of properties: `- `name: type` — description`.
41
41
  - **Code Example**:
42
- ```javascript
42
+ ```javascript (or typescript if typing is present)
43
43
  import { useName } from '@package'
44
44
  // Initialization example
45
45
  ```
@@ -64,4 +64,3 @@ Use the following template and style. Your response must contain ONLY MDX code.
64
64
  6. Return only the full MDX documentation code without any additional text, comments, or markdown formatting (```).
65
65
  7. The result must be exclusively text (response); do not attach any files.
66
66
  8. Return the response in the format: [short description of 3-5 words about the purpose]#########[original code with comments for parameters and types (add them if missing). If everything is already present, return --FULL--]#########[the MDX documentation following the template above].
67
-
@@ -12,7 +12,7 @@
12
12
  ### Структура документации:
13
13
 
14
14
  1. **Шапка**:
15
- ```javascript
15
+ ```javascript (или typescript, если есть типизация)
16
16
  import {Meta} from '@storybook/addon-docs/blocks'
17
17
 
18
18
  <Meta title='[title]'/>
@@ -39,7 +39,7 @@
39
39
  - **ИмяТипа:**
40
40
  - Список свойств: `- `имя: тип` — описание`.
41
41
  - **Пример кода**:
42
- ```javascript
42
+ ```javascript (или typescript, если есть типизация)
43
43
  import { useName } from '@package'
44
44
  // Пример инициализации
45
45
  ```
@@ -64,4 +64,3 @@
64
64
  6. Верни только полный MDX-код документации без какого-либо дополнительного текста, комментариев или форматирования markdown (```).
65
65
  7. Результат должен быть исключительно в виде текста (ответа), не прикрепляй никаких файлов.
66
66
  8. Верни ответ в формате: [короткое описание в несколько слов (3-5) о назначении]#########[оригинальный код с комментариями к параметрам и типам (добавь их, если они отсутствуют). Если все комментарии уже присутствуют, верни --FULL--]#########[сама документация в MDX формате по шаблону выше].
67
-
@@ -12,7 +12,7 @@ Use the following template and style. Your response must contain ONLY MDX code.
12
12
  ### Documentation Structure:
13
13
 
14
14
  1. **Header**:
15
- ```javascript
15
+ ```javascript (or typescript if typing is present)
16
16
  import {Meta} from '@storybook/addon-docs/blocks'
17
17
 
18
18
  <Meta title='[title]'/>
@@ -32,7 +32,7 @@ Use the following template and style. Your response must contain ONLY MDX code.
32
32
 
33
33
  5. **Example**:
34
34
  - Usage code example.
35
- ```javascript
35
+ ```javascript (or typescript if typing is present)
36
36
  import { name } from '@package'
37
37
  // Call example
38
38
  ```
@@ -54,4 +54,3 @@ Use the following template and style. Your response must contain ONLY MDX code.
54
54
  6. Return only the full MDX documentation code without any additional text, comments, or markdown formatting (```).
55
55
  7. The result must be exclusively text (response); do not attach any files.
56
56
  8. Return the response in the format: [short description of 3-5 words about the purpose]#########[original code with comments for parameters and types (add them if missing). If everything is already present, return --FULL--]#########[the MDX documentation following the template above].
57
-
@@ -12,7 +12,7 @@
12
12
  ### Структура документации:
13
13
 
14
14
  1. **Шапка**:
15
- ```javascript
15
+ ```javascript (или typescript, если есть типизация)
16
16
  import {Meta} from '@storybook/addon-docs/blocks'
17
17
 
18
18
  <Meta title='[title]'/>
@@ -32,7 +32,7 @@
32
32
 
33
33
  5. **Пример**:
34
34
  - Пример кода использования.
35
- ```javascript
35
+ ```javascript (или typescript, если есть типизация)
36
36
  import { name } from '@package'
37
37
  // Пример вызова
38
38
  ```
@@ -54,4 +54,3 @@
54
54
  6. Верни только полный MDX-код документации без какого-либо дополнительного текста, комментариев или форматирования markdown (```).
55
55
  7. Результат должен быть исключительно в виде текста (ответа), не прикрепляй никаких файлов.
56
56
  8. Верни ответ в формате: [короткое описание в несколько слов (3-5) о назначении]#########[оригинальный код с комментариями к параметрам и типам (добавь их, если они отсутствуют). Если все комментарии уже присутствуют, верни --FULL--]#########[сама документация в MDX формате по шаблону выше].
57
-
@@ -26,7 +26,7 @@ Use the following template and style.
26
26
  - Format: `- Use case.`
27
27
 
28
28
  4. **Basic Usage**:
29
- - Code example using the component.
29
+ - Code example using the component (use typescript if typing is present).
30
30
  ```html
31
31
  <script setup>
32
32
  // Script code
@@ -26,7 +26,7 @@
26
26
  - Формат: `- Сценарий.`
27
27
 
28
28
  4. **Пример использования (Basic Usage)**:
29
- - Пример кода с использованием компонента.
29
+ - Пример кода с использованием компонента (используй typescript, если есть типизация).
30
30
  ```html
31
31
  <script setup>
32
32
  // Код скрипта