@magmonium/cli 0.7.8

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 (204) hide show
  1. package/README.md +392 -0
  2. package/bin/README.md +244 -0
  3. package/bin/cli.js +55 -0
  4. package/bin/commands/assets-wc.js +249 -0
  5. package/bin/commands/assets.js +943 -0
  6. package/bin/commands/build.js +242 -0
  7. package/bin/commands/clean.js +621 -0
  8. package/bin/commands/compile-i18n.js +91 -0
  9. package/bin/commands/config-ci.js +266 -0
  10. package/bin/commands/configure-wc.js +167 -0
  11. package/bin/commands/connect.js +188 -0
  12. package/bin/commands/create-app.js +946 -0
  13. package/bin/commands/deploy.js +100 -0
  14. package/bin/commands/fix-i18n.js +40 -0
  15. package/bin/commands/generate.js +765 -0
  16. package/bin/commands/init/config-files.js +1114 -0
  17. package/bin/commands/init/mag-assets.js +541 -0
  18. package/bin/commands/init/mag-cli-config.js +120 -0
  19. package/bin/commands/init/monorepo-structure.js +735 -0
  20. package/bin/commands/init/package-json.js +308 -0
  21. package/bin/commands/init/project-structure.js +189 -0
  22. package/bin/commands/init/pwa-files.js +204 -0
  23. package/bin/commands/init/source-files.js +2596 -0
  24. package/bin/commands/init.js +591 -0
  25. package/bin/commands/lib.js +508 -0
  26. package/bin/commands/patch-wc-env.js +136 -0
  27. package/bin/commands/refractor.js +51 -0
  28. package/bin/commands/sanitize-i18n.js +41 -0
  29. package/bin/commands/translate.js +32 -0
  30. package/bin/commands/zip.js +540 -0
  31. package/package.json +53 -0
  32. package/src/compilers/button-group-compiler.d.ts +18 -0
  33. package/src/compilers/button-group-compiler.d.ts.map +1 -0
  34. package/src/compilers/button-group-compiler.js +151 -0
  35. package/src/compilers/button-group-compiler.js.map +1 -0
  36. package/src/compilers/copy-compiler.d.ts +14 -0
  37. package/src/compilers/copy-compiler.d.ts.map +1 -0
  38. package/src/compilers/copy-compiler.js +170 -0
  39. package/src/compilers/copy-compiler.js.map +1 -0
  40. package/src/compilers/field-compiler.d.ts +15 -0
  41. package/src/compilers/field-compiler.d.ts.map +1 -0
  42. package/src/compilers/field-compiler.js +153 -0
  43. package/src/compilers/field-compiler.js.map +1 -0
  44. package/src/compilers/form-compiler.d.ts +15 -0
  45. package/src/compilers/form-compiler.d.ts.map +1 -0
  46. package/src/compilers/form-compiler.js +220 -0
  47. package/src/compilers/form-compiler.js.map +1 -0
  48. package/src/compilers/logo-compiler.d.ts +14 -0
  49. package/src/compilers/logo-compiler.d.ts.map +1 -0
  50. package/src/compilers/logo-compiler.js +114 -0
  51. package/src/compilers/logo-compiler.js.map +1 -0
  52. package/src/compilers/options-compiler.d.ts +46 -0
  53. package/src/compilers/options-compiler.d.ts.map +1 -0
  54. package/src/compilers/options-compiler.js +329 -0
  55. package/src/compilers/options-compiler.js.map +1 -0
  56. package/src/compilers/pwa-build.d.ts +7 -0
  57. package/src/compilers/pwa-build.d.ts.map +1 -0
  58. package/src/compilers/pwa-build.js +62 -0
  59. package/src/compilers/pwa-build.js.map +1 -0
  60. package/src/compilers/svg-compiler.d.ts +12 -0
  61. package/src/compilers/svg-compiler.d.ts.map +1 -0
  62. package/src/compilers/svg-compiler.js +123 -0
  63. package/src/compilers/svg-compiler.js.map +1 -0
  64. package/src/compilers/tabs-compiler.d.ts +25 -0
  65. package/src/compilers/tabs-compiler.d.ts.map +1 -0
  66. package/src/compilers/tabs-compiler.js +422 -0
  67. package/src/compilers/tabs-compiler.js.map +1 -0
  68. package/src/compilers/theme-compiler.d.ts +14 -0
  69. package/src/compilers/theme-compiler.d.ts.map +1 -0
  70. package/src/compilers/theme-compiler.js +144 -0
  71. package/src/compilers/theme-compiler.js.map +1 -0
  72. package/src/compilers/translation-compiler.d.ts +17 -0
  73. package/src/compilers/translation-compiler.d.ts.map +1 -0
  74. package/src/compilers/translation-compiler.js +232 -0
  75. package/src/compilers/translation-compiler.js.map +1 -0
  76. package/src/compilers/web-component/index.d.ts +3 -0
  77. package/src/compilers/web-component/index.d.ts.map +1 -0
  78. package/src/compilers/web-component/index.js +6 -0
  79. package/src/compilers/web-component/index.js.map +1 -0
  80. package/src/compilers/web-component/lib/builder.d.ts +45 -0
  81. package/src/compilers/web-component/lib/builder.d.ts.map +1 -0
  82. package/src/compilers/web-component/lib/builder.js +341 -0
  83. package/src/compilers/web-component/lib/builder.js.map +1 -0
  84. package/src/compilers/web-component/lib/class-name.d.ts +4 -0
  85. package/src/compilers/web-component/lib/class-name.d.ts.map +1 -0
  86. package/src/compilers/web-component/lib/class-name.js +24 -0
  87. package/src/compilers/web-component/lib/class-name.js.map +1 -0
  88. package/src/compilers/web-component/lib/config-data.d.ts +9 -0
  89. package/src/compilers/web-component/lib/config-data.d.ts.map +1 -0
  90. package/src/compilers/web-component/lib/config-data.js +14 -0
  91. package/src/compilers/web-component/lib/config-data.js.map +1 -0
  92. package/src/compilers/web-component/lib/ng-build.d.ts +8 -0
  93. package/src/compilers/web-component/lib/ng-build.d.ts.map +1 -0
  94. package/src/compilers/web-component/lib/ng-build.js +685 -0
  95. package/src/compilers/web-component/lib/ng-build.js.map +1 -0
  96. package/src/compilers/web-component/lib/resource-inliner.d.ts +9 -0
  97. package/src/compilers/web-component/lib/resource-inliner.d.ts.map +1 -0
  98. package/src/compilers/web-component/lib/resource-inliner.js +355 -0
  99. package/src/compilers/web-component/lib/resource-inliner.js.map +1 -0
  100. package/src/compilers/web-component/lib/web-component-name.d.ts +3 -0
  101. package/src/compilers/web-component/lib/web-component-name.d.ts.map +1 -0
  102. package/src/compilers/web-component/lib/web-component-name.js +47 -0
  103. package/src/compilers/web-component/lib/web-component-name.js.map +1 -0
  104. package/src/compilers/web-component/lib/web-component-wrapper.d.ts +3 -0
  105. package/src/compilers/web-component/lib/web-component-wrapper.d.ts.map +1 -0
  106. package/src/compilers/web-component/lib/web-component-wrapper.js +335 -0
  107. package/src/compilers/web-component/lib/web-component-wrapper.js.map +1 -0
  108. package/src/compilers/web-component/model/type.d.ts +29 -0
  109. package/src/compilers/web-component/model/type.d.ts.map +1 -0
  110. package/src/compilers/web-component/model/type.js +3 -0
  111. package/src/compilers/web-component/model/type.js.map +1 -0
  112. package/src/compilers/worker-compiler.d.ts +12 -0
  113. package/src/compilers/worker-compiler.d.ts.map +1 -0
  114. package/src/compilers/worker-compiler.js +123 -0
  115. package/src/compilers/worker-compiler.js.map +1 -0
  116. package/src/compilers/yaml-compiler.d.ts +18 -0
  117. package/src/compilers/yaml-compiler.d.ts.map +1 -0
  118. package/src/compilers/yaml-compiler.js +139 -0
  119. package/src/compilers/yaml-compiler.js.map +1 -0
  120. package/src/core/base-compiler.d.ts +17 -0
  121. package/src/core/base-compiler.d.ts.map +1 -0
  122. package/src/core/base-compiler.js +78 -0
  123. package/src/core/base-compiler.js.map +1 -0
  124. package/src/core/config.d.ts +640 -0
  125. package/src/core/config.d.ts.map +1 -0
  126. package/src/core/config.js +432 -0
  127. package/src/core/config.js.map +1 -0
  128. package/src/core/file-watcher.d.ts +23 -0
  129. package/src/core/file-watcher.d.ts.map +1 -0
  130. package/src/core/file-watcher.js +63 -0
  131. package/src/core/file-watcher.js.map +1 -0
  132. package/src/index.d.ts +31 -0
  133. package/src/index.d.ts.map +1 -0
  134. package/src/index.js +34 -0
  135. package/src/index.js.map +1 -0
  136. package/src/types/asset-configs.d.ts +189 -0
  137. package/src/types/asset-configs.d.ts.map +1 -0
  138. package/src/types/asset-configs.js +7 -0
  139. package/src/types/asset-configs.js.map +1 -0
  140. package/src/types/theme.d.ts +67 -0
  141. package/src/types/theme.d.ts.map +1 -0
  142. package/src/types/theme.js +3 -0
  143. package/src/types/theme.js.map +1 -0
  144. package/src/utils/file-utils.d.ts +16 -0
  145. package/src/utils/file-utils.d.ts.map +1 -0
  146. package/src/utils/file-utils.js +58 -0
  147. package/src/utils/file-utils.js.map +1 -0
  148. package/src/utils/i18n-compile-validator.d.ts +20 -0
  149. package/src/utils/i18n-compile-validator.d.ts.map +1 -0
  150. package/src/utils/i18n-compile-validator.js +198 -0
  151. package/src/utils/i18n-compile-validator.js.map +1 -0
  152. package/src/utils/i18n-fixer.d.ts +39 -0
  153. package/src/utils/i18n-fixer.d.ts.map +1 -0
  154. package/src/utils/i18n-fixer.js +396 -0
  155. package/src/utils/i18n-fixer.js.map +1 -0
  156. package/src/utils/i18n-sanitizer.d.ts +17 -0
  157. package/src/utils/i18n-sanitizer.d.ts.map +1 -0
  158. package/src/utils/i18n-sanitizer.js +101 -0
  159. package/src/utils/i18n-sanitizer.js.map +1 -0
  160. package/src/utils/i18n-utils.d.ts +21 -0
  161. package/src/utils/i18n-utils.d.ts.map +1 -0
  162. package/src/utils/i18n-utils.js +89 -0
  163. package/src/utils/i18n-utils.js.map +1 -0
  164. package/src/utils/interactive-translator.d.ts +18 -0
  165. package/src/utils/interactive-translator.d.ts.map +1 -0
  166. package/src/utils/interactive-translator.js +401 -0
  167. package/src/utils/interactive-translator.js.map +1 -0
  168. package/src/utils/llama-cpp-translator.d.ts +33 -0
  169. package/src/utils/llama-cpp-translator.d.ts.map +1 -0
  170. package/src/utils/llama-cpp-translator.js +267 -0
  171. package/src/utils/llama-cpp-translator.js.map +1 -0
  172. package/src/utils/logger.d.ts +14 -0
  173. package/src/utils/logger.d.ts.map +1 -0
  174. package/src/utils/logger.js +42 -0
  175. package/src/utils/logger.js.map +1 -0
  176. package/src/utils/ollama-translator.d.ts +38 -0
  177. package/src/utils/ollama-translator.d.ts.map +1 -0
  178. package/src/utils/ollama-translator.js +371 -0
  179. package/src/utils/ollama-translator.js.map +1 -0
  180. package/src/utils/option-utils.d.ts +58 -0
  181. package/src/utils/option-utils.d.ts.map +1 -0
  182. package/src/utils/option-utils.js +123 -0
  183. package/src/utils/option-utils.js.map +1 -0
  184. package/src/utils/platform-utils.d.ts +33 -0
  185. package/src/utils/platform-utils.d.ts.map +1 -0
  186. package/src/utils/platform-utils.js +114 -0
  187. package/src/utils/platform-utils.js.map +1 -0
  188. package/src/utils/pwa-utils.d.ts +28 -0
  189. package/src/utils/pwa-utils.d.ts.map +1 -0
  190. package/src/utils/pwa-utils.js +48 -0
  191. package/src/utils/pwa-utils.js.map +1 -0
  192. package/src/utils/translation-manager.d.ts +43 -0
  193. package/src/utils/translation-manager.d.ts.map +1 -0
  194. package/src/utils/translation-manager.js +302 -0
  195. package/src/utils/translation-manager.js.map +1 -0
  196. package/src/utils/web-translation-providers.d.ts +53 -0
  197. package/src/utils/web-translation-providers.d.ts.map +1 -0
  198. package/src/utils/web-translation-providers.js +190 -0
  199. package/src/utils/web-translation-providers.js.map +1 -0
  200. package/src/utils/yaml-utils.d.ts +9 -0
  201. package/src/utils/yaml-utils.d.ts.map +1 -0
  202. package/src/utils/yaml-utils.js +26 -0
  203. package/src/utils/yaml-utils.js.map +1 -0
  204. package/templates/mag-compile.config.js +77 -0
@@ -0,0 +1,432 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEFAULT_PATHS = exports.DEFAULT_PATHS_CONFIG = void 0;
4
+ exports.generatePaths = generatePaths;
5
+ exports.generateMultiplePaths = generateMultiplePaths;
6
+ exports.generateIsolatedPaths = generateIsolatedPaths;
7
+ // Default paths configuration
8
+ exports.DEFAULT_PATHS_CONFIG = {
9
+ source: 'src/shared/mag_assets',
10
+ output: 'src/shared/assets',
11
+ };
12
+ // Function to generate paths from single PathsConfig
13
+ function generatePaths(pathsConfig = exports.DEFAULT_PATHS_CONFIG) {
14
+ const { source, output } = pathsConfig;
15
+ return {
16
+ svg: {
17
+ input: [`${source}/icons`],
18
+ output: [output],
19
+ },
20
+ logo: {
21
+ input: [`${source}/logo`],
22
+ output: [`${output}/logo`],
23
+ },
24
+ theme: {
25
+ input: [`${source}/theme`],
26
+ output: [`${output}/theme`],
27
+ },
28
+ i18n: {
29
+ input: [`${source}/i18n`],
30
+ output: [`${output}/i18n`],
31
+ },
32
+ forms: {
33
+ input: [`${source}/forms`],
34
+ output: [`${output}/forms`],
35
+ },
36
+ buttons: {
37
+ input: [`${source}/buttons`],
38
+ output: [`${output}/buttons`],
39
+ },
40
+ badges: {
41
+ input: [`${source}/badges`],
42
+ output: [`${output}/badges`],
43
+ },
44
+ buttonGroups: {
45
+ input: [`${source}/button_groups`],
46
+ output: [`${output}/button_groups`],
47
+ },
48
+ fields: {
49
+ input: [`${source}/fields`],
50
+ output: [`${output}/fields`],
51
+ },
52
+ options: {
53
+ input: [`${source}/options`],
54
+ output: [`${output}/options`],
55
+ },
56
+ navs: {
57
+ input: [`${source}/navs`],
58
+ output: [`${output}/navs`],
59
+ },
60
+ menu: {
61
+ input: [`${source}/menu`],
62
+ output: [`${output}/menu`],
63
+ },
64
+ headers: {
65
+ input: [`${source}/headers`],
66
+ output: [`${output}/headers`],
67
+ },
68
+ modal: {
69
+ input: [`${source}/modal`],
70
+ output: [`${output}/modal`],
71
+ },
72
+ copy: {
73
+ input: [source],
74
+ output: [output],
75
+ },
76
+ workers: {
77
+ input: [`${source}/workers`],
78
+ output: [`${output}/workers`],
79
+ },
80
+ cards: {
81
+ input: [`${source}/cards`],
82
+ output: [`${output}/cards`],
83
+ },
84
+ charts: {
85
+ input: [`${source}/charts`],
86
+ output: [`${output}/charts`],
87
+ },
88
+ jumbotron: {
89
+ input: [`${source}/jumbotron`],
90
+ output: [`${output}/jumbotron`],
91
+ },
92
+ watermark: {
93
+ input: [`${source}/watermark`],
94
+ output: [`${output}/watermark`],
95
+ },
96
+ tabs: {
97
+ input: [`${source}/tabs`],
98
+ output: [`${output}/tabs`],
99
+ },
100
+ remote: {
101
+ input: [`${source}/remote`],
102
+ output: [`${output}/remote`],
103
+ },
104
+ ul: {
105
+ input: [`${source}/ul`],
106
+ output: [`${output}/ul`],
107
+ },
108
+ datePicker: {
109
+ input: [`${source}/date_picker`],
110
+ output: [`${output}/date_picker`],
111
+ },
112
+ stepper: {
113
+ input: [`${source}/stepper`],
114
+ output: [`${output}/stepper`],
115
+ },
116
+ carousel: {
117
+ input: [`${source}/carousel`],
118
+ output: [`${output}/carousel`],
119
+ },
120
+ steps: {
121
+ input: [`${source}/steps`],
122
+ output: [`${output}/steps`],
123
+ },
124
+ pagination: {
125
+ input: [`${source}/pagination`],
126
+ output: [`${output}/pagination`],
127
+ },
128
+ sort: {
129
+ input: [`${source}/sort`],
130
+ output: [`${output}/sort`],
131
+ },
132
+ table: {
133
+ input: [`${source}/table`],
134
+ output: [`${output}/table`],
135
+ },
136
+ accordions: {
137
+ input: [`${source}/accordions`],
138
+ output: [`${output}/accordions`],
139
+ },
140
+ accordion_groups: {
141
+ input: [`${source}/accordion_groups`],
142
+ output: [`${output}/accordion_groups`],
143
+ },
144
+ graphs: {
145
+ input: [`${source}/graphs`],
146
+ output: [`${output}/graphs`],
147
+ },
148
+ settings: {
149
+ input: [`${source}/settings`],
150
+ output: [`${output}/settings`],
151
+ },
152
+ };
153
+ }
154
+ // Function to generate paths from multiple PathsConfig (array support)
155
+ function generateMultiplePaths(pathsConfig = exports.DEFAULT_PATHS_CONFIG) {
156
+ // Handle single PathsConfig (backward compatibility)
157
+ if (!Array.isArray(pathsConfig)) {
158
+ return generatePaths(pathsConfig);
159
+ }
160
+ // Handle array of PathsConfig
161
+ const mergedPaths = {
162
+ svg: { input: [], output: [] },
163
+ logo: { input: [], output: [] },
164
+ theme: { input: [], output: [] },
165
+ i18n: { input: [], output: [] },
166
+ forms: { input: [], output: [] },
167
+ buttons: { input: [], output: [] },
168
+ buttonGroups: { input: [], output: [] },
169
+ fields: { input: [], output: [] },
170
+ options: { input: [], output: [] },
171
+ navs: { input: [], output: [] },
172
+ menu: { input: [], output: [] },
173
+ headers: { input: [], output: [] },
174
+ copy: { input: [], output: [] },
175
+ workers: { input: [], output: [] },
176
+ cards: { input: [], output: [] },
177
+ charts: { input: [], output: [] },
178
+ jumbotron: { input: [], output: [] },
179
+ watermark: { input: [], output: [] },
180
+ tabs: { input: [], output: [] },
181
+ modal: { input: [], output: [] },
182
+ remote: { input: [], output: [] },
183
+ ul: { input: [], output: [] },
184
+ datePicker: { input: [], output: [] },
185
+ stepper: { input: [], output: [] },
186
+ carousel: { input: [], output: [] },
187
+ steps: { input: [], output: [] },
188
+ pagination: { input: [], output: [] },
189
+ sort: { input: [], output: [] },
190
+ table: { input: [], output: [] },
191
+ accordions: { input: [], output: [] },
192
+ accordion_groups: { input: [], output: [] },
193
+ graphs: { input: [], output: [] },
194
+ settings: { input: [], output: [] },
195
+ };
196
+ // Merge paths from all projects
197
+ pathsConfig.forEach((config) => {
198
+ const paths = generatePaths(config);
199
+ Object.keys(mergedPaths).forEach((key) => {
200
+ const typedKey = key;
201
+ mergedPaths[typedKey].input.push(...paths[typedKey].input);
202
+ // For output, we need to handle the fact that some types have different structures
203
+ if (Array.isArray(paths[typedKey].output)) {
204
+ mergedPaths[typedKey].output.push(...paths[typedKey].output);
205
+ }
206
+ else {
207
+ mergedPaths[typedKey].output.push(paths[typedKey].output);
208
+ }
209
+ });
210
+ });
211
+ // Return all output paths to support multi-path compilation
212
+ return {
213
+ svg: {
214
+ input: mergedPaths.svg.input,
215
+ output: mergedPaths.svg.output.length > 0
216
+ ? mergedPaths.svg.output
217
+ : [exports.DEFAULT_PATHS_CONFIG.output],
218
+ },
219
+ logo: {
220
+ input: mergedPaths.logo.input,
221
+ output: mergedPaths.logo.output.length > 0
222
+ ? mergedPaths.logo.output
223
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/logo`],
224
+ },
225
+ theme: {
226
+ input: mergedPaths.theme.input,
227
+ output: mergedPaths.theme.output.length > 0
228
+ ? mergedPaths.theme.output
229
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/theme`],
230
+ },
231
+ i18n: {
232
+ input: mergedPaths.i18n.input,
233
+ output: mergedPaths.i18n.output.length > 0
234
+ ? mergedPaths.i18n.output
235
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/i18n`],
236
+ },
237
+ forms: {
238
+ input: mergedPaths.forms.input,
239
+ output: mergedPaths.forms.output.length > 0
240
+ ? mergedPaths.forms.output
241
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/forms`],
242
+ },
243
+ buttons: {
244
+ input: mergedPaths.buttons.input,
245
+ output: mergedPaths.buttons.output.length > 0
246
+ ? mergedPaths.buttons.output
247
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/buttons`],
248
+ },
249
+ buttonGroups: {
250
+ input: mergedPaths.buttonGroups.input,
251
+ output: mergedPaths.buttonGroups.output.length > 0
252
+ ? mergedPaths.buttonGroups.output
253
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/button_groups`],
254
+ },
255
+ fields: {
256
+ input: mergedPaths.fields.input,
257
+ output: mergedPaths.fields.output.length > 0
258
+ ? mergedPaths.fields.output
259
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/fields`],
260
+ },
261
+ options: {
262
+ input: mergedPaths.options.input,
263
+ output: mergedPaths.options.output.length > 0
264
+ ? mergedPaths.options.output
265
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/options`],
266
+ },
267
+ navs: {
268
+ input: mergedPaths.navs.input,
269
+ output: mergedPaths.navs.output.length > 0
270
+ ? mergedPaths.navs.output
271
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/navs`],
272
+ },
273
+ menu: {
274
+ input: mergedPaths.menu.input,
275
+ output: mergedPaths.menu.output.length > 0
276
+ ? mergedPaths.menu.output
277
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/menu`],
278
+ },
279
+ headers: {
280
+ input: mergedPaths.headers.input,
281
+ output: mergedPaths.headers.output.length > 0
282
+ ? mergedPaths.headers.output
283
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/menu`],
284
+ },
285
+ modal: {
286
+ input: mergedPaths.modal.input,
287
+ output: mergedPaths.modal.output.length > 0
288
+ ? mergedPaths.modal.output
289
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/modal`],
290
+ },
291
+ copy: {
292
+ input: mergedPaths.copy.input,
293
+ output: mergedPaths.copy.output.length > 0
294
+ ? mergedPaths.copy.output
295
+ : [exports.DEFAULT_PATHS_CONFIG.output],
296
+ },
297
+ workers: {
298
+ input: mergedPaths.workers.input,
299
+ output: mergedPaths.workers.output.length > 0
300
+ ? mergedPaths.workers.output
301
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/workers`],
302
+ },
303
+ cards: {
304
+ input: mergedPaths.cards.input,
305
+ output: mergedPaths.cards.output.length > 0
306
+ ? mergedPaths.cards.output
307
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/cards`],
308
+ },
309
+ charts: {
310
+ input: mergedPaths.charts.input,
311
+ output: mergedPaths.charts.output.length > 0
312
+ ? mergedPaths.charts.output
313
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/charts`],
314
+ },
315
+ jumbotron: {
316
+ input: mergedPaths.jumbotron.input,
317
+ output: mergedPaths.jumbotron.output.length > 0
318
+ ? mergedPaths.jumbotron.output
319
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/jumbotron`],
320
+ },
321
+ watermark: {
322
+ input: mergedPaths.watermark.input,
323
+ output: mergedPaths.watermark.output.length > 0
324
+ ? mergedPaths.watermark.output
325
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/watermark`],
326
+ },
327
+ tabs: {
328
+ input: mergedPaths.tabs.input,
329
+ output: mergedPaths.tabs.output.length > 0
330
+ ? mergedPaths.tabs.output
331
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/tabs`],
332
+ },
333
+ remote: {
334
+ input: mergedPaths.remote.input,
335
+ output: mergedPaths.remote.output.length > 0
336
+ ? mergedPaths.remote.output
337
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/remote`],
338
+ },
339
+ ul: {
340
+ input: mergedPaths.ul.input,
341
+ output: mergedPaths.ul.output.length > 0
342
+ ? mergedPaths.ul.output
343
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/ul`],
344
+ },
345
+ datePicker: {
346
+ input: mergedPaths.datePicker.input,
347
+ output: mergedPaths.datePicker.output.length > 0
348
+ ? mergedPaths.datePicker.output
349
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/date_picker`],
350
+ },
351
+ stepper: {
352
+ input: mergedPaths.stepper.input,
353
+ output: mergedPaths.stepper.output.length > 0
354
+ ? mergedPaths.stepper.output
355
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/stepper`],
356
+ },
357
+ carousel: {
358
+ input: mergedPaths.carousel.input,
359
+ output: mergedPaths.carousel.output.length > 0
360
+ ? mergedPaths.carousel.output
361
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/carousel`],
362
+ },
363
+ steps: {
364
+ input: mergedPaths.steps.input,
365
+ output: mergedPaths.steps.output.length > 0
366
+ ? mergedPaths.steps.output
367
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/steps`],
368
+ },
369
+ pagination: {
370
+ input: mergedPaths.pagination.input,
371
+ output: mergedPaths.pagination.output.length > 0
372
+ ? mergedPaths.pagination.output
373
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/pagination`],
374
+ },
375
+ sort: {
376
+ input: mergedPaths.sort.input,
377
+ output: mergedPaths.sort.output.length > 0
378
+ ? mergedPaths.sort.output
379
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/sort`],
380
+ },
381
+ table: {
382
+ input: mergedPaths.table.input,
383
+ output: mergedPaths.table.output.length > 0
384
+ ? mergedPaths.table.output
385
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/table`],
386
+ },
387
+ accordions: {
388
+ input: mergedPaths.accordions.input,
389
+ output: mergedPaths.accordions.output.length > 0
390
+ ? mergedPaths.accordions.output
391
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/accordions`],
392
+ },
393
+ accordion_groups: {
394
+ input: mergedPaths.accordion_groups.input,
395
+ output: mergedPaths.accordion_groups.output.length > 0
396
+ ? mergedPaths.accordion_groups.output
397
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/accordion_groups`],
398
+ },
399
+ graphs: {
400
+ input: mergedPaths.graphs.input,
401
+ output: mergedPaths.graphs.output.length > 0
402
+ ? mergedPaths.graphs.output
403
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/graphs`],
404
+ },
405
+ settings: {
406
+ input: mergedPaths.settings.input,
407
+ output: mergedPaths.settings.output.length > 0
408
+ ? mergedPaths.settings.output
409
+ : [`${exports.DEFAULT_PATHS_CONFIG.output}/settings`],
410
+ },
411
+ };
412
+ }
413
+ // Function to generate source-isolated paths (new isolated compilation approach)
414
+ function generateIsolatedPaths(pathsConfig = exports.DEFAULT_PATHS_CONFIG) {
415
+ // Handle single PathsConfig (backward compatibility)
416
+ if (!Array.isArray(pathsConfig)) {
417
+ return [
418
+ {
419
+ source: pathsConfig.source,
420
+ paths: generatePaths(pathsConfig),
421
+ },
422
+ ];
423
+ }
424
+ // Handle array of PathsConfig - return isolated source-path pairs
425
+ return pathsConfig.map((config) => ({
426
+ source: config.source,
427
+ paths: generatePaths(config),
428
+ }));
429
+ }
430
+ // Default paths (for backward compatibility)
431
+ exports.DEFAULT_PATHS = generatePaths();
432
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../libs/cli/src/core/config.ts"],"names":[],"mappings":";;;AAqHA,sCA6IC;AAGD,sDA4SC;AAGD,sDAkBC;AAxdD,8BAA8B;AACjB,QAAA,oBAAoB,GAAgB;IAC/C,MAAM,EAAE,uBAAuB;IAC/B,MAAM,EAAE,mBAAmB;CAC5B,CAAC;AAEF,qDAAqD;AACrD,SAAgB,aAAa,CAAC,cAA2B,4BAAoB;IAC3E,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,CAAC;IAEvC,OAAO;QACL,GAAG,EAAE;YACH,KAAK,EAAE,CAAC,GAAG,MAAM,QAAQ,CAAC;YAC1B,MAAM,EAAE,CAAC,MAAM,CAAC;SACjB;QACD,IAAI,EAAE;YACJ,KAAK,EAAE,CAAC,GAAG,MAAM,OAAO,CAAC;YACzB,MAAM,EAAE,CAAC,GAAG,MAAM,OAAO,CAAC;SAC3B;QAC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AAM,EAAE,WAAW,CAAC,MAAM;gBAC1B,KAAK,EAAE,aAAa,CAAC,WAAW,CAAC;aAClC;SACF,CAAC;IACJ,CAAC;IAED,kEAAkE;IAClE,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAClC,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC;KAC7B,CAAC,CAAC,CAAC;AACN,CAAC;AAED,6CAA6C;AAChC,QAAA,aAAa,GAAG,aAAa,EAAE,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { EventEmitter } from 'events';
2
+ export interface WatcherOptions {
3
+ ignored?: string[];
4
+ ignoreInitial?: boolean;
5
+ verbose?: boolean;
6
+ }
7
+ export interface ChokidarWatcher {
8
+ on(event: 'add' | 'change' | 'unlink' | 'addDir' | 'unlinkDir', callback: (path: string) => void): this;
9
+ on(event: 'error', callback: (error: Error) => void): this;
10
+ on(event: 'ready', callback: () => void): this;
11
+ on(event: string, callback: (...args: unknown[]) => void): this;
12
+ close(): Promise<void>;
13
+ }
14
+ export declare class FileWatcher extends EventEmitter {
15
+ private options;
16
+ private watcher;
17
+ private logger;
18
+ constructor(options?: WatcherOptions);
19
+ watch(paths: string | string[]): void;
20
+ stop(): Promise<void>;
21
+ isWatching(): boolean;
22
+ }
23
+ //# sourceMappingURL=file-watcher.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-watcher.d.ts","sourceRoot":"","sources":["../../../../../libs/cli/src/core/file-watcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAGtC,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,CACA,KAAK,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,EAC3D,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAC/B,IAAI,CAAC;IACR,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,GAAG,IAAI,CAAC;IAC3D,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;IAC/C,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,GAAG,IAAI,CAAC;IAChE,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAED,qBAAa,WAAY,SAAQ,YAAY;IAI/B,OAAO,CAAC,OAAO;IAH3B,OAAO,CAAC,OAAO,CAAgC;IAC/C,OAAO,CAAC,MAAM,CAAS;gBAEH,OAAO,GAAE,cAAmB;IAKhD,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI;IAwCrC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAOrB,UAAU,IAAI,OAAO;CAGtB"}
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FileWatcher = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const chokidar_1 = tslib_1.__importDefault(require("chokidar"));
6
+ const events_1 = require("events");
7
+ const logger_1 = require("../utils/logger");
8
+ class FileWatcher extends events_1.EventEmitter {
9
+ constructor(options = {}) {
10
+ super();
11
+ this.options = options;
12
+ this.watcher = null;
13
+ this.logger = new logger_1.Logger(options.verbose);
14
+ }
15
+ watch(paths) {
16
+ const watchPaths = Array.isArray(paths) ? paths : [paths];
17
+ this.watcher = chokidar_1.default.watch(watchPaths, {
18
+ ignored: this.options.ignored || ['**/node_modules/**', '**/.git/**'],
19
+ ignoreInitial: this.options.ignoreInitial !== false,
20
+ persistent: true,
21
+ });
22
+ this.watcher
23
+ .on('add', (filePath) => {
24
+ this.logger.debug(`File added: ${filePath}`);
25
+ this.emit('add', filePath);
26
+ })
27
+ .on('change', (filePath) => {
28
+ this.logger.debug(`File changed: ${filePath}`);
29
+ this.emit('change', filePath);
30
+ })
31
+ .on('unlink', (filePath) => {
32
+ this.logger.debug(`File removed: ${filePath}`);
33
+ this.emit('unlink', filePath);
34
+ })
35
+ .on('addDir', (filePath) => {
36
+ this.logger.debug(`Directory added: ${filePath}`);
37
+ this.emit('addDir', filePath);
38
+ })
39
+ .on('unlinkDir', (filePath) => {
40
+ this.logger.debug(`Directory removed: ${filePath}`);
41
+ this.emit('unlinkDir', filePath);
42
+ })
43
+ .on('error', (error) => {
44
+ this.logger.error(`Watcher error: ${error.message}`);
45
+ this.emit('error', error);
46
+ })
47
+ .on('ready', () => {
48
+ this.logger.info('File watcher ready');
49
+ this.emit('ready');
50
+ });
51
+ }
52
+ stop() {
53
+ if (this.watcher) {
54
+ return this.watcher.close();
55
+ }
56
+ return Promise.resolve();
57
+ }
58
+ isWatching() {
59
+ return this.watcher !== null;
60
+ }
61
+ }
62
+ exports.FileWatcher = FileWatcher;
63
+ //# sourceMappingURL=file-watcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-watcher.js","sourceRoot":"","sources":["../../../../../libs/cli/src/core/file-watcher.ts"],"names":[],"mappings":";;;;AAAA,gEAAgC;AAChC,mCAAsC;AACtC,4CAAyC;AAmBzC,MAAa,WAAY,SAAQ,qBAAY;IAI3C,YAAoB,UAA0B,EAAE;QAC9C,KAAK,EAAE,CAAC;QADU,YAAO,GAAP,OAAO,CAAqB;QAHxC,YAAO,GAA2B,IAAI,CAAC;QAK7C,IAAI,CAAC,MAAM,GAAG,IAAI,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,KA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Q,CAAC,CAAC;QAChC,CAAC,CAAC;aACD,EAAE,CAAC,WAAW,EAAE,CAAC,QAAgB,EAAE,EAAE;YACpC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,sBAAsB,QAAQ,EAAE,CAAC,CAAC;YACpD,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QACnC,CAAC,CAAC;aACD,EAAE,CAAC,OAAO,EAAE,CAAC,KAAY,EAAE,EAAE;YAC5B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,kBAAkB,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;YACrD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QAC5B,CAAC,CAAC;aACD,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE;YAChB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;YACvC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACrB,CAAC,CAAC,CAAC;IACP,CAAC;IAED,IAAI;QACF,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QAC9B,CAAC;QACD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;IAED,UAAU;QACR,OAAO,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC;IAC/B,CAAC;CACF;AA3DD,kCA2DC"}
package/src/index.d.ts ADDED
@@ -0,0 +1,31 @@
1
+ export * from './compilers/svg-compiler';
2
+ export * from './compilers/logo-compiler';
3
+ export * from './compilers/theme-compiler';
4
+ export * from './compilers/translation-compiler';
5
+ export * from './compilers/form-compiler';
6
+ export * from './compilers/button-group-compiler';
7
+ export * from './compilers/field-compiler';
8
+ export * from './compilers/options-compiler';
9
+ export * from './compilers/copy-compiler';
10
+ export * from './compilers/pwa-build';
11
+ export * from './utils/pwa-utils';
12
+ export * from './compilers/worker-compiler';
13
+ export * from './compilers/tabs-compiler';
14
+ export * from './compilers/yaml-compiler';
15
+ export * from './core/base-compiler';
16
+ export * from './compilers/web-component/lib/builder';
17
+ export * from './compilers/web-component/model/type';
18
+ export * from './core/file-watcher';
19
+ export * from './core/config';
20
+ export * from './utils/logger';
21
+ export * from './utils/file-utils';
22
+ export * from './utils/translation-manager';
23
+ export * from './utils/interactive-translator';
24
+ export * from './utils/ollama-translator';
25
+ export * from './utils/web-translation-providers';
26
+ export * from './utils/i18n-fixer';
27
+ export * from './utils/i18n-sanitizer';
28
+ export * from './utils/i18n-compile-validator';
29
+ export * from './types/theme';
30
+ export * from './types/asset-configs';
31
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/cli/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uCAAuC,CAAC;AACtD,cAAc,sCAAsC,CAAC;AACrD,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC"}
package/src/index.js ADDED
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./compilers/svg-compiler"), exports);
5
+ tslib_1.__exportStar(require("./compilers/logo-compiler"), exports);
6
+ tslib_1.__exportStar(require("./compilers/theme-compiler"), exports);
7
+ tslib_1.__exportStar(require("./compilers/translation-compiler"), exports);
8
+ tslib_1.__exportStar(require("./compilers/form-compiler"), exports);
9
+ tslib_1.__exportStar(require("./compilers/button-group-compiler"), exports);
10
+ tslib_1.__exportStar(require("./compilers/field-compiler"), exports);
11
+ tslib_1.__exportStar(require("./compilers/options-compiler"), exports);
12
+ tslib_1.__exportStar(require("./compilers/copy-compiler"), exports);
13
+ tslib_1.__exportStar(require("./compilers/pwa-build"), exports);
14
+ tslib_1.__exportStar(require("./utils/pwa-utils"), exports);
15
+ tslib_1.__exportStar(require("./compilers/worker-compiler"), exports);
16
+ tslib_1.__exportStar(require("./compilers/tabs-compiler"), exports);
17
+ tslib_1.__exportStar(require("./compilers/yaml-compiler"), exports);
18
+ tslib_1.__exportStar(require("./core/base-compiler"), exports);
19
+ tslib_1.__exportStar(require("./compilers/web-component/lib/builder"), exports);
20
+ tslib_1.__exportStar(require("./compilers/web-component/model/type"), exports);
21
+ tslib_1.__exportStar(require("./core/file-watcher"), exports);
22
+ tslib_1.__exportStar(require("./core/config"), exports);
23
+ tslib_1.__exportStar(require("./utils/logger"), exports);
24
+ tslib_1.__exportStar(require("./utils/file-utils"), exports);
25
+ tslib_1.__exportStar(require("./utils/translation-manager"), exports);
26
+ tslib_1.__exportStar(require("./utils/interactive-translator"), exports);
27
+ tslib_1.__exportStar(require("./utils/ollama-translator"), exports);
28
+ tslib_1.__exportStar(require("./utils/web-translation-providers"), exports);
29
+ tslib_1.__exportStar(require("./utils/i18n-fixer"), exports);
30
+ tslib_1.__exportStar(require("./utils/i18n-sanitizer"), exports);
31
+ tslib_1.__exportStar(require("./utils/i18n-compile-validator"), exports);
32
+ tslib_1.__exportStar(require("./types/theme"), exports);
33
+ tslib_1.__exportStar(require("./types/asset-configs"), exports);
34
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/cli/src/index.ts"],"names":[],"mappings":";;;AAAA,mEAAyC;AACzC,oEAA0C;AAC1C,qEAA2C;AAC3C,2EAAiD;AACjD,oEAA0C;AAC1C,4EAAkD;AAClD,qEAA2C;AAC3C,uEAA6C;AAC7C,oEAA0C;AAC1C,gEAAsC;AACtC,4DAAkC;AAClC,sEAA4C;AAC5C,oEAA0C;AAC1C,oEAA0C;AAC1C,+DAAqC;AACrC,gFAAsD;AACtD,+EAAqD;AACrD,8DAAoC;AACpC,wDAA8B;AAC9B,yDAA+B;AAC/B,6DAAmC;AACnC,sEAA4C;AAC5C,yEAA+C;AAC/C,oEAA0C;AAC1C,4EAAkD;AAClD,6DAAmC;AACnC,iEAAuC;AACvC,yEAA+C;AAC/C,wDAA8B;AAC9B,gEAAsC"}