rapida-partner 2.3.0 → 2.4.0
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
|
@@ -108,7 +108,17 @@ interface IBusinessPLan {
|
|
|
108
108
|
* `{ exceljs: "4.4.0" }`). O gerador soma ao package.json do lado correspondente quando o `framework`
|
|
109
109
|
* bate com o ativo na geração; se o pacote já existir no template com outra versão, mantém a do
|
|
110
110
|
* template e avisa.
|
|
111
|
+
*
|
|
112
|
+
* `files`: arquivos novos que o código complementar cria no projeto gerado (ex.: testes unitários,
|
|
113
|
+
* fixtures), quando o `framework` bate com o ativo. `path` é relativo à raiz do projeto gerado, sem
|
|
114
|
+
* `..` e sem caminho absoluto; a geração falha se o arquivo já existir (gerado pelo template ou por
|
|
115
|
+
* outra regra), para nunca sobrescrever código gerado em silêncio.
|
|
111
116
|
*/
|
|
117
|
+
export interface IComplementaryFile {
|
|
118
|
+
path: string;
|
|
119
|
+
content: string;
|
|
120
|
+
}
|
|
121
|
+
|
|
112
122
|
export interface IBusinessRule {
|
|
113
123
|
rule: {
|
|
114
124
|
description: string;
|
|
@@ -127,6 +137,7 @@ export interface IBusinessRule {
|
|
|
127
137
|
}[];
|
|
128
138
|
dependencies?: Record<string, string>;
|
|
129
139
|
devDependencies?: Record<string, string>;
|
|
140
|
+
files?: IComplementaryFile[];
|
|
130
141
|
};
|
|
131
142
|
frontendComplementaryCode?: {
|
|
132
143
|
framework:
|
|
@@ -143,6 +154,7 @@ export interface IBusinessRule {
|
|
|
143
154
|
}[];
|
|
144
155
|
dependencies?: Record<string, string>;
|
|
145
156
|
devDependencies?: Record<string, string>;
|
|
157
|
+
files?: IComplementaryFile[];
|
|
146
158
|
};
|
|
147
159
|
}[];
|
|
148
160
|
implementation?: {
|
|
@@ -158,6 +170,7 @@ export interface IBusinessRule {
|
|
|
158
170
|
}[];
|
|
159
171
|
dependencies?: Record<string, string>;
|
|
160
172
|
devDependencies?: Record<string, string>;
|
|
173
|
+
files?: IComplementaryFile[];
|
|
161
174
|
};
|
|
162
175
|
frontendComplementaryCode?: {
|
|
163
176
|
framework:
|
|
@@ -174,6 +187,7 @@ export interface IBusinessRule {
|
|
|
174
187
|
}[];
|
|
175
188
|
dependencies?: Record<string, string>;
|
|
176
189
|
devDependencies?: Record<string, string>;
|
|
190
|
+
files?: IComplementaryFile[];
|
|
177
191
|
};
|
|
178
192
|
};
|
|
179
193
|
}
|
|
@@ -85,6 +85,27 @@
|
|
|
85
85
|
"type": "string",
|
|
86
86
|
"pattern": "^\\d+\\.\\d+\\.\\d+(-[0-9A-Za-z.-]+)?$"
|
|
87
87
|
}
|
|
88
|
+
},
|
|
89
|
+
"files": {
|
|
90
|
+
"type": "array",
|
|
91
|
+
"description": "Arquivos novos que o código complementar cria no projeto gerado (ex.: testes unitários, fixtures). path é relativo à raiz do projeto gerado, sem '..' e sem caminho absoluto; a geração falha se o arquivo já existir.",
|
|
92
|
+
"items": {
|
|
93
|
+
"type": "object",
|
|
94
|
+
"properties": {
|
|
95
|
+
"path": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"pattern": "^(?![/\\\\])(?!.*(^|[/\\\\])\\.\\.([/\\\\]|$))[^\\0]+$"
|
|
98
|
+
},
|
|
99
|
+
"content": {
|
|
100
|
+
"type": "string"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"required": [
|
|
104
|
+
"path",
|
|
105
|
+
"content"
|
|
106
|
+
],
|
|
107
|
+
"additionalProperties": false
|
|
108
|
+
}
|
|
88
109
|
}
|
|
89
110
|
},
|
|
90
111
|
"required": [
|
|
@@ -147,6 +168,27 @@
|
|
|
147
168
|
"type": "string",
|
|
148
169
|
"pattern": "^\\d+\\.\\d+\\.\\d+(-[0-9A-Za-z.-]+)?$"
|
|
149
170
|
}
|
|
171
|
+
},
|
|
172
|
+
"files": {
|
|
173
|
+
"type": "array",
|
|
174
|
+
"description": "Arquivos novos que o código complementar cria no projeto gerado (ex.: testes unitários, fixtures). path é relativo à raiz do projeto gerado, sem '..' e sem caminho absoluto; a geração falha se o arquivo já existir.",
|
|
175
|
+
"items": {
|
|
176
|
+
"type": "object",
|
|
177
|
+
"properties": {
|
|
178
|
+
"path": {
|
|
179
|
+
"type": "string",
|
|
180
|
+
"pattern": "^(?![/\\\\])(?!.*(^|[/\\\\])\\.\\.([/\\\\]|$))[^\\0]+$"
|
|
181
|
+
},
|
|
182
|
+
"content": {
|
|
183
|
+
"type": "string"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"required": [
|
|
187
|
+
"path",
|
|
188
|
+
"content"
|
|
189
|
+
],
|
|
190
|
+
"additionalProperties": false
|
|
191
|
+
}
|
|
150
192
|
}
|
|
151
193
|
},
|
|
152
194
|
"required": [
|
|
@@ -239,6 +281,27 @@
|
|
|
239
281
|
"type": "string",
|
|
240
282
|
"pattern": "^\\d+\\.\\d+\\.\\d+(-[0-9A-Za-z.-]+)?$"
|
|
241
283
|
}
|
|
284
|
+
},
|
|
285
|
+
"files": {
|
|
286
|
+
"type": "array",
|
|
287
|
+
"description": "Arquivos novos que o código complementar cria no projeto gerado (ex.: testes unitários, fixtures). path é relativo à raiz do projeto gerado, sem '..' e sem caminho absoluto; a geração falha se o arquivo já existir.",
|
|
288
|
+
"items": {
|
|
289
|
+
"type": "object",
|
|
290
|
+
"properties": {
|
|
291
|
+
"path": {
|
|
292
|
+
"type": "string",
|
|
293
|
+
"pattern": "^(?![/\\\\])(?!.*(^|[/\\\\])\\.\\.([/\\\\]|$))[^\\0]+$"
|
|
294
|
+
},
|
|
295
|
+
"content": {
|
|
296
|
+
"type": "string"
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"required": [
|
|
300
|
+
"path",
|
|
301
|
+
"content"
|
|
302
|
+
],
|
|
303
|
+
"additionalProperties": false
|
|
304
|
+
}
|
|
242
305
|
}
|
|
243
306
|
},
|
|
244
307
|
"required": [
|
|
@@ -302,6 +365,27 @@
|
|
|
302
365
|
"type": "string",
|
|
303
366
|
"pattern": "^\\d+\\.\\d+\\.\\d+(-[0-9A-Za-z.-]+)?$"
|
|
304
367
|
}
|
|
368
|
+
},
|
|
369
|
+
"files": {
|
|
370
|
+
"type": "array",
|
|
371
|
+
"description": "Arquivos novos que o código complementar cria no projeto gerado (ex.: testes unitários, fixtures). path é relativo à raiz do projeto gerado, sem '..' e sem caminho absoluto; a geração falha se o arquivo já existir.",
|
|
372
|
+
"items": {
|
|
373
|
+
"type": "object",
|
|
374
|
+
"properties": {
|
|
375
|
+
"path": {
|
|
376
|
+
"type": "string",
|
|
377
|
+
"pattern": "^(?![/\\\\])(?!.*(^|[/\\\\])\\.\\.([/\\\\]|$))[^\\0]+$"
|
|
378
|
+
},
|
|
379
|
+
"content": {
|
|
380
|
+
"type": "string"
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
"required": [
|
|
384
|
+
"path",
|
|
385
|
+
"content"
|
|
386
|
+
],
|
|
387
|
+
"additionalProperties": false
|
|
388
|
+
}
|
|
305
389
|
}
|
|
306
390
|
},
|
|
307
391
|
"required": [
|
|
@@ -318,4 +402,4 @@
|
|
|
318
402
|
}
|
|
319
403
|
}
|
|
320
404
|
}
|
|
321
|
-
}
|
|
405
|
+
}
|