@common-stack/generate-plugin 6.0.2-alpha.8 → 6.0.6-alpha.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +79 -19
  2. package/lib/generators/add-backend/files/config.json +0 -1
  3. package/lib/generators/add-backend/files/package.json +2 -35
  4. package/lib/generators/add-backend/files/src/api/root-schema.graphqls +19 -0
  5. package/lib/generators/add-backend/files/src/config/env-config.ts.template +2 -24
  6. package/lib/generators/add-backend/files/src/service.ts.template +4 -5
  7. package/lib/generators/add-backend/files/tsconfig.json +6 -12
  8. package/lib/generators/add-backend/files/webpack.config.js +8 -0
  9. package/lib/generators/add-backend/files/webpack.config.mjs +7 -0
  10. package/lib/generators/add-browser-package/files/package.json +1 -1
  11. package/lib/generators/add-frontend/templates/Dockerfile +1 -1
  12. package/lib/generators/add-frontend/templates/package.json +4 -22
  13. package/lib/generators/add-frontend/templates/src/config/public-config.ts.template +6 -0
  14. package/lib/generators/add-frontend/templates/vite.config.ts.template +2 -2
  15. package/lib/generators/add-fullstack/files/Jenkinsfile +1 -1
  16. package/lib/generators/add-fullstack/files/package.json +3 -4
  17. package/lib/generators/add-fullstack/files/tools/deploy-cli/updateLernaVersion.js +24 -5
  18. package/lib/generators/add-moleculer/files/Dockerfile +1 -1
  19. package/lib/generators/add-moleculer/files/package.json +6 -25
  20. package/lib/generators/add-server-package/files/package.json +3 -3
  21. package/package.json +3 -3
  22. package/src/generators/add-fullstack/files/.husky/pre-commit +1 -0
  23. package/src/generators/add-fullstack/files/CHANGELOG.md +18 -10
  24. package/src/generators/add-fullstack/files/Jenkinsfile +1 -1
  25. package/src/generators/add-fullstack/files/package.json +4 -5
  26. package/src/generators/add-fullstack/files/tools/deploy-cli/updateLernaVersion.js +24 -5
  27. package/src/generators/add-moleculer/files/CHANGELOG.md +4 -0
  28. package/src/generators/add-moleculer/files/Dockerfile +1 -1
  29. package/src/generators/add-moleculer/files/package.json +7 -26
  30. package/lib/generators/add-backend/files/CHANGELOG.md +0 -196
  31. package/lib/generators/add-backend/files/generated-schema.graphql +0 -235
  32. package/lib/generators/add-browser-package/files/CHANGELOG.md +0 -3119
  33. package/lib/generators/add-core-package/files/CHANGELOG.md +0 -1076
  34. package/lib/generators/add-frontend/templates/public/css/dashboard.css +0 -491
  35. package/lib/generators/add-fullstack/files/tools/rollup/rollupPluginGenerateJson.mjs +0 -48
  36. package/lib/generators/add-fullstack/files/tools/rollup/rollupPluginModifyLibFiles.mjs +0 -410
  37. package/lib/generators/add-moleculer/files/draft.toml +0 -61
  38. package/src/generators/add-fullstack/files/tools/rollup/rollupPluginGenerateJson.mjs +0 -48
  39. package/src/generators/add-fullstack/files/tools/rollup/rollupPluginModifyLibFiles.mjs +0 -410
  40. package/src/generators/add-moleculer/files/.draft-tasks.toml +0 -0
  41. package/src/generators/add-moleculer/files/draft.toml +0 -61
@@ -1,491 +0,0 @@
1
- table {
2
- background-color: transparent;
3
- }
4
- caption {
5
- padding-top: 8px;
6
- padding-bottom: 8px;
7
- color: #777777;
8
- text-align: left;
9
- }
10
- th {
11
- text-align: left;
12
- }
13
- .table {
14
- width: 100%;
15
- max-width: 100%;
16
- margin-bottom: 20px;
17
- }
18
- .table > thead > tr > th,
19
- .table > tbody > tr > th,
20
- .table > tfoot > tr > th,
21
- .table > thead > tr > td,
22
- .table > tbody > tr > td,
23
- .table > tfoot > tr > td {
24
- padding: 8px;
25
- line-height: 1.42857143;
26
- vertical-align: top;
27
- border-top: 1px solid #dddddd;
28
- }
29
- .table > thead > tr > th {
30
- vertical-align: bottom;
31
- border-bottom: 2px solid #dddddd;
32
- }
33
- .table > caption + thead > tr:first-child > th,
34
- .table > colgroup + thead > tr:first-child > th,
35
- .table > thead:first-child > tr:first-child > th,
36
- .table > caption + thead > tr:first-child > td,
37
- .table > colgroup + thead > tr:first-child > td,
38
- .table > thead:first-child > tr:first-child > td {
39
- border-top: 0;
40
- }
41
- .table > tbody + tbody {
42
- border-top: 2px solid #dddddd;
43
- }
44
- .table .table {
45
- background-color: #ffffff;
46
- }
47
- .table-condensed > thead > tr > th,
48
- .table-condensed > tbody > tr > th,
49
- .table-condensed > tfoot > tr > th,
50
- .table-condensed > thead > tr > td,
51
- .table-condensed > tbody > tr > td,
52
- .table-condensed > tfoot > tr > td {
53
- padding: 5px;
54
- }
55
- .table-bordered {
56
- border: 1px solid #dddddd;
57
- }
58
- .table-bordered > thead > tr > th,
59
- .table-bordered > tbody > tr > th,
60
- .table-bordered > tfoot > tr > th,
61
- .table-bordered > thead > tr > td,
62
- .table-bordered > tbody > tr > td,
63
- .table-bordered > tfoot > tr > td {
64
- border: 1px solid #dddddd;
65
- }
66
- .table-bordered > thead > tr > th,
67
- .table-bordered > thead > tr > td {
68
- border-bottom-width: 2px;
69
- }
70
- .table-striped > tbody > tr:nth-of-type(odd) {
71
- background-color: #f9f9f9;
72
- }
73
- .table-hover > tbody > tr:hover {
74
- background-color: #f5f5f5;
75
- }
76
- table col[class*="col-"] {
77
- position: static;
78
- float: none;
79
- display: table-column;
80
- }
81
- table td[class*="col-"],
82
- table th[class*="col-"] {
83
- position: static;
84
- float: none;
85
- display: table-cell;
86
- }
87
- .table > thead > tr > td.active,
88
- .table > tbody > tr > td.active,
89
- .table > tfoot > tr > td.active,
90
- .table > thead > tr > th.active,
91
- .table > tbody > tr > th.active,
92
- .table > tfoot > tr > th.active,
93
- .table > thead > tr.active > td,
94
- .table > tbody > tr.active > td,
95
- .table > tfoot > tr.active > td,
96
- .table > thead > tr.active > th,
97
- .table > tbody > tr.active > th,
98
- .table > tfoot > tr.active > th {
99
- background-color: #f5f5f5;
100
- }
101
- .table-hover > tbody > tr > td.active:hover,
102
- .table-hover > tbody > tr > th.active:hover,
103
- .table-hover > tbody > tr.active:hover > td,
104
- .table-hover > tbody > tr:hover > .active,
105
- .table-hover > tbody > tr.active:hover > th {
106
- background-color: #e8e8e8;
107
- }
108
- .table > thead > tr > td.success,
109
- .table > tbody > tr > td.success,
110
- .table > tfoot > tr > td.success,
111
- .table > thead > tr > th.success,
112
- .table > tbody > tr > th.success,
113
- .table > tfoot > tr > th.success,
114
- .table > thead > tr.success > td,
115
- .table > tbody > tr.success > td,
116
- .table > tfoot > tr.success > td,
117
- .table > thead > tr.success > th,
118
- .table > tbody > tr.success > th,
119
- .table > tfoot > tr.success > th {
120
- background-color: #dff0d8;
121
- }
122
- .table-hover > tbody > tr > td.success:hover,
123
- .table-hover > tbody > tr > th.success:hover,
124
- .table-hover > tbody > tr.success:hover > td,
125
- .table-hover > tbody > tr:hover > .success,
126
- .table-hover > tbody > tr.success:hover > th {
127
- background-color: #d0e9c6;
128
- }
129
- .table > thead > tr > td.info,
130
- .table > tbody > tr > td.info,
131
- .table > tfoot > tr > td.info,
132
- .table > thead > tr > th.info,
133
- .table > tbody > tr > th.info,
134
- .table > tfoot > tr > th.info,
135
- .table > thead > tr.info > td,
136
- .table > tbody > tr.info > td,
137
- .table > tfoot > tr.info > td,
138
- .table > thead > tr.info > th,
139
- .table > tbody > tr.info > th,
140
- .table > tfoot > tr.info > th {
141
- background-color: #d9edf7;
142
- }
143
- .table-hover > tbody > tr > td.info:hover,
144
- .table-hover > tbody > tr > th.info:hover,
145
- .table-hover > tbody > tr.info:hover > td,
146
- .table-hover > tbody > tr:hover > .info,
147
- .table-hover > tbody > tr.info:hover > th {
148
- background-color: #c4e3f3;
149
- }
150
- .table > thead > tr > td.warning,
151
- .table > tbody > tr > td.warning,
152
- .table > tfoot > tr > td.warning,
153
- .table > thead > tr > th.warning,
154
- .table > tbody > tr > th.warning,
155
- .table > tfoot > tr > th.warning,
156
- .table > thead > tr.warning > td,
157
- .table > tbody > tr.warning > td,
158
- .table > tfoot > tr.warning > td,
159
- .table > thead > tr.warning > th,
160
- .table > tbody > tr.warning > th,
161
- .table > tfoot > tr.warning > th {
162
- background-color: #fcf8e3;
163
- }
164
- .table-hover > tbody > tr > td.warning:hover,
165
- .table-hover > tbody > tr > th.warning:hover,
166
- .table-hover > tbody > tr.warning:hover > td,
167
- .table-hover > tbody > tr:hover > .warning,
168
- .table-hover > tbody > tr.warning:hover > th {
169
- background-color: #faf2cc;
170
- }
171
- .table > thead > tr > td.danger,
172
- .table > tbody > tr > td.danger,
173
- .table > tfoot > tr > td.danger,
174
- .table > thead > tr > th.danger,
175
- .table > tbody > tr > th.danger,
176
- .table > tfoot > tr > th.danger,
177
- .table > thead > tr.danger > td,
178
- .table > tbody > tr.danger > td,
179
- .table > tfoot > tr.danger > td,
180
- .table > thead > tr.danger > th,
181
- .table > tbody > tr.danger > th,
182
- .table > tfoot > tr.danger > th {
183
- background-color: #f2dede;
184
- }
185
- .table-hover > tbody > tr > td.danger:hover,
186
- .table-hover > tbody > tr > th.danger:hover,
187
- .table-hover > tbody > tr.danger:hover > td,
188
- .table-hover > tbody > tr:hover > .danger,
189
- .table-hover > tbody > tr.danger:hover > th {
190
- background-color: #ebcccc;
191
- }
192
- .table-responsive {
193
- overflow-x: auto;
194
- min-height: 0.01%;
195
- }
196
- @media screen and (max-width: 767px) {
197
- .table-responsive {
198
- width: 100%;
199
- margin-bottom: 15px;
200
- overflow-y: hidden;
201
- -ms-overflow-style: -ms-autohiding-scrollbar;
202
- border: 1px solid #dddddd;
203
- }
204
- .table-responsive > .table {
205
- margin-bottom: 0;
206
- }
207
- .table-responsive > .table > thead > tr > th,
208
- .table-responsive > .table > tbody > tr > th,
209
- .table-responsive > .table > tfoot > tr > th,
210
- .table-responsive > .table > thead > tr > td,
211
- .table-responsive > .table > tbody > tr > td,
212
- .table-responsive > .table > tfoot > tr > td {
213
- white-space: nowrap;
214
- }
215
- .table-responsive > .table-bordered {
216
- border: 0;
217
- }
218
- .table-responsive > .table-bordered > thead > tr > th:first-child,
219
- .table-responsive > .table-bordered > tbody > tr > th:first-child,
220
- .table-responsive > .table-bordered > tfoot > tr > th:first-child,
221
- .table-responsive > .table-bordered > thead > tr > td:first-child,
222
- .table-responsive > .table-bordered > tbody > tr > td:first-child,
223
- .table-responsive > .table-bordered > tfoot > tr > td:first-child {
224
- border-left: 0;
225
- }
226
- .table-responsive > .table-bordered > thead > tr > th:last-child,
227
- .table-responsive > .table-bordered > tbody > tr > th:last-child,
228
- .table-responsive > .table-bordered > tfoot > tr > th:last-child,
229
- .table-responsive > .table-bordered > thead > tr > td:last-child,
230
- .table-responsive > .table-bordered > tbody > tr > td:last-child,
231
- .table-responsive > .table-bordered > tfoot > tr > td:last-child {
232
- border-right: 0;
233
- }
234
- .table-responsive > .table-bordered > tbody > tr:last-child > th,
235
- .table-responsive > .table-bordered > tfoot > tr:last-child > th,
236
- .table-responsive > .table-bordered > tbody > tr:last-child > td,
237
- .table-responsive > .table-bordered > tfoot > tr:last-child > td {
238
- border-bottom: 0;
239
- }
240
- }
241
- .clearfix:before,
242
- .clearfix:after {
243
- content: " ";
244
- display: table;
245
- }
246
- .clearfix:after {
247
- clear: both;
248
- }
249
- .center-block {
250
- display: block;
251
- margin-left: auto;
252
- margin-right: auto;
253
- }
254
- .pull-right {
255
- float: right !important;
256
- }
257
- .pull-left {
258
- float: left !important;
259
- }
260
- .hide {
261
- display: none !important;
262
- }
263
- .show {
264
- display: block !important;
265
- }
266
- .invisible {
267
- visibility: hidden;
268
- }
269
- .text-hide {
270
- font: 0/0 a;
271
- color: transparent;
272
- text-shadow: none;
273
- background-color: transparent;
274
- border: 0;
275
- }
276
- .hidden {
277
- display: none !important;
278
- }
279
- .affix {
280
- position: fixed;
281
- }
282
- @-ms-viewport {
283
- width: device-width;
284
- }
285
- .visible-xs,
286
- .visible-sm,
287
- .visible-md,
288
- .visible-lg {
289
- display: none !important;
290
- }
291
- .visible-xs-block,
292
- .visible-xs-inline,
293
- .visible-xs-inline-block,
294
- .visible-sm-block,
295
- .visible-sm-inline,
296
- .visible-sm-inline-block,
297
- .visible-md-block,
298
- .visible-md-inline,
299
- .visible-md-inline-block,
300
- .visible-lg-block,
301
- .visible-lg-inline,
302
- .visible-lg-inline-block {
303
- display: none !important;
304
- }
305
- @media (max-width: 767px) {
306
- .visible-xs {
307
- display: block !important;
308
- }
309
- table.visible-xs {
310
- display: table !important;
311
- }
312
- tr.visible-xs {
313
- display: table-row !important;
314
- }
315
- th.visible-xs,
316
- td.visible-xs {
317
- display: table-cell !important;
318
- }
319
- }
320
- @media (max-width: 767px) {
321
- .visible-xs-block {
322
- display: block !important;
323
- }
324
- }
325
- @media (max-width: 767px) {
326
- .visible-xs-inline {
327
- display: inline !important;
328
- }
329
- }
330
- @media (max-width: 767px) {
331
- .visible-xs-inline-block {
332
- display: inline-block !important;
333
- }
334
- }
335
- @media (min-width: 768px) and (max-width: 991px) {
336
- .visible-sm {
337
- display: block !important;
338
- }
339
- table.visible-sm {
340
- display: table !important;
341
- }
342
- tr.visible-sm {
343
- display: table-row !important;
344
- }
345
- th.visible-sm,
346
- td.visible-sm {
347
- display: table-cell !important;
348
- }
349
- }
350
- @media (min-width: 768px) and (max-width: 991px) {
351
- .visible-sm-block {
352
- display: block !important;
353
- }
354
- }
355
- @media (min-width: 768px) and (max-width: 991px) {
356
- .visible-sm-inline {
357
- display: inline !important;
358
- }
359
- }
360
- @media (min-width: 768px) and (max-width: 991px) {
361
- .visible-sm-inline-block {
362
- display: inline-block !important;
363
- }
364
- }
365
- @media (min-width: 992px) and (max-width: 1199px) {
366
- .visible-md {
367
- display: block !important;
368
- }
369
- table.visible-md {
370
- display: table !important;
371
- }
372
- tr.visible-md {
373
- display: table-row !important;
374
- }
375
- th.visible-md,
376
- td.visible-md {
377
- display: table-cell !important;
378
- }
379
- }
380
- @media (min-width: 992px) and (max-width: 1199px) {
381
- .visible-md-block {
382
- display: block !important;
383
- }
384
- }
385
- @media (min-width: 992px) and (max-width: 1199px) {
386
- .visible-md-inline {
387
- display: inline !important;
388
- }
389
- }
390
- @media (min-width: 992px) and (max-width: 1199px) {
391
- .visible-md-inline-block {
392
- display: inline-block !important;
393
- }
394
- }
395
- @media (min-width: 1200px) {
396
- .visible-lg {
397
- display: block !important;
398
- }
399
- table.visible-lg {
400
- display: table !important;
401
- }
402
- tr.visible-lg {
403
- display: table-row !important;
404
- }
405
- th.visible-lg,
406
- td.visible-lg {
407
- display: table-cell !important;
408
- }
409
- }
410
- @media (min-width: 1200px) {
411
- .visible-lg-block {
412
- display: block !important;
413
- }
414
- }
415
- @media (min-width: 1200px) {
416
- .visible-lg-inline {
417
- display: inline !important;
418
- }
419
- }
420
- @media (min-width: 1200px) {
421
- .visible-lg-inline-block {
422
- display: inline-block !important;
423
- }
424
- }
425
- @media (max-width: 767px) {
426
- .hidden-xs {
427
- display: none !important;
428
- }
429
- }
430
- @media (min-width: 768px) and (max-width: 991px) {
431
- .hidden-sm {
432
- display: none !important;
433
- }
434
- }
435
- @media (min-width: 992px) and (max-width: 1199px) {
436
- .hidden-md {
437
- display: none !important;
438
- }
439
- }
440
- @media (min-width: 1200px) {
441
- .hidden-lg {
442
- display: none !important;
443
- }
444
- }
445
- .visible-print {
446
- display: none !important;
447
- }
448
- @media print {
449
- .visible-print {
450
- display: block !important;
451
- }
452
- table.visible-print {
453
- display: table !important;
454
- }
455
- tr.visible-print {
456
- display: table-row !important;
457
- }
458
- th.visible-print,
459
- td.visible-print {
460
- display: table-cell !important;
461
- }
462
- }
463
- .visible-print-block {
464
- display: none !important;
465
- }
466
- @media print {
467
- .visible-print-block {
468
- display: block !important;
469
- }
470
- }
471
- .visible-print-inline {
472
- display: none !important;
473
- }
474
- @media print {
475
- .visible-print-inline {
476
- display: inline !important;
477
- }
478
- }
479
- .visible-print-inline-block {
480
- display: none !important;
481
- }
482
- @media print {
483
- .visible-print-inline-block {
484
- display: inline-block !important;
485
- }
486
- }
487
- @media print {
488
- .hidden-print {
489
- display: none !important;
490
- }
491
- }
@@ -1,48 +0,0 @@
1
- import { promisify } from 'util';
2
- import glob from 'glob';
3
- import fs from 'fs';
4
- import path from 'path';
5
-
6
- const globPromise = promisify(glob.glob); // Make sure to call .glob here
7
-
8
- export default function generateJsonFromSpecificFiles(options = {}) {
9
- const {
10
- pattern = '**/**/compute.js', // Pattern to match files
11
- dist = 'lib', // Default output directory
12
- outputFile = 'routes.json', // Output filename
13
- } = options;
14
-
15
- return {
16
- name: 'aggregate-compute-routes',
17
- async writeBundle() { // Changed from generateBundle to writeBundle
18
- const files = await globPromise(path.join(dist, pattern), { absolute: true }); // Ensure paths are absolute
19
- let allFilteredRoutes = [];
20
-
21
- for (const file of files) {
22
- try {
23
- // Dynamically import the JS file assuming it exports filteredRoutes
24
- const module = await import(file); // file is already absolute
25
- if (module.filteredRoutes) {
26
- const newRoutes = module.filteredRoutes.map((filteredRoute) => {
27
- let routConfig = Object.values(filteredRoute)[0];
28
- return { [routConfig.path]: routConfig };
29
- });
30
- allFilteredRoutes.push(...newRoutes);
31
- }
32
- } catch (error) {
33
- this.warn(`Error importing ${file}: ${error}`);
34
- }
35
- }
36
-
37
- // Ensure the dist directory exists
38
- if (!fs.existsSync(dist)) {
39
- fs.mkdirSync(dist, { recursive: true });
40
- }
41
-
42
- // Specify the output file path and write the aggregated filteredRoutes to a JSON file
43
- const outputPath = path.join(dist, outputFile);
44
- fs.writeFileSync(outputPath, JSON.stringify(allFilteredRoutes, null, 2), 'utf8');
45
- console.log(`Aggregated filtered routes have been written to ${outputPath}`);
46
- },
47
- };
48
- }