piral-cli 1.0.0-pre.2217 → 1.0.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 (408) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +30 -7
  3. package/lib/api.js +23 -23
  4. package/lib/api.js.map +1 -1
  5. package/lib/apps/add-piral-instance-pilet.d.ts +26 -0
  6. package/lib/apps/add-piral-instance-pilet.js +53 -0
  7. package/lib/apps/add-piral-instance-pilet.js.map +1 -0
  8. package/lib/apps/build-pilet.d.ts +33 -2
  9. package/lib/apps/build-pilet.js +159 -32
  10. package/lib/apps/build-pilet.js.map +1 -1
  11. package/lib/apps/build-piral.d.ts +18 -1
  12. package/lib/apps/build-piral.js +68 -52
  13. package/lib/apps/build-piral.js.map +1 -1
  14. package/lib/apps/debug-pilet.d.ts +38 -2
  15. package/lib/apps/debug-pilet.js +150 -108
  16. package/lib/apps/debug-pilet.js.map +1 -1
  17. package/lib/apps/debug-piral.d.ts +23 -0
  18. package/lib/apps/debug-piral.js +63 -52
  19. package/lib/apps/debug-piral.js.map +1 -1
  20. package/lib/apps/declaration-piral.js +5 -3
  21. package/lib/apps/declaration-piral.js.map +1 -1
  22. package/lib/apps/index.d.ts +3 -0
  23. package/lib/apps/index.js +8 -1
  24. package/lib/apps/index.js.map +1 -1
  25. package/lib/apps/new-pilet.d.ts +7 -3
  26. package/lib/apps/new-pilet.js +47 -52
  27. package/lib/apps/new-pilet.js.map +1 -1
  28. package/lib/apps/new-piral.d.ts +7 -3
  29. package/lib/apps/new-piral.js +33 -23
  30. package/lib/apps/new-piral.js.map +1 -1
  31. package/lib/apps/pack-pilet.d.ts +9 -0
  32. package/lib/apps/pack-pilet.js +6 -13
  33. package/lib/apps/pack-pilet.js.map +1 -1
  34. package/lib/apps/publish-pilet.d.ts +23 -3
  35. package/lib/apps/publish-pilet.js +112 -62
  36. package/lib/apps/publish-pilet.js.map +1 -1
  37. package/lib/apps/publish-piral.d.ts +6 -2
  38. package/lib/apps/publish-piral.js +30 -26
  39. package/lib/apps/publish-piral.js.map +1 -1
  40. package/lib/apps/remove-piral-instance-pilet.d.ts +22 -0
  41. package/lib/apps/remove-piral-instance-pilet.js +52 -0
  42. package/lib/apps/remove-piral-instance-pilet.js.map +1 -0
  43. package/lib/apps/run-emulator-piral.d.ts +34 -0
  44. package/lib/apps/run-emulator-piral.js +91 -0
  45. package/lib/apps/run-emulator-piral.js.map +1 -0
  46. package/lib/apps/upgrade-pilet.d.ts +6 -2
  47. package/lib/apps/upgrade-pilet.js +41 -43
  48. package/lib/apps/upgrade-pilet.js.map +1 -1
  49. package/lib/apps/upgrade-piral.d.ts +2 -2
  50. package/lib/apps/upgrade-piral.js +21 -20
  51. package/lib/apps/upgrade-piral.js.map +1 -1
  52. package/lib/apps/validate-pilet.js +30 -36
  53. package/lib/apps/validate-pilet.js.map +1 -1
  54. package/lib/apps/validate-piral.js +13 -10
  55. package/lib/apps/validate-piral.js.map +1 -1
  56. package/lib/build/bundler-calls.d.ts +3 -0
  57. package/lib/build/bundler-calls.js +117 -0
  58. package/lib/build/bundler-calls.js.map +1 -0
  59. package/lib/build/run-build-pilet.d.ts +1 -0
  60. package/lib/build/run-build-pilet.js +65 -0
  61. package/lib/build/run-build-pilet.js.map +1 -0
  62. package/lib/build/run-build-piral.d.ts +1 -0
  63. package/lib/build/run-build-piral.js +67 -0
  64. package/lib/build/run-build-piral.js.map +1 -0
  65. package/lib/build/run-debug-mono-piral.d.ts +1 -0
  66. package/lib/build/run-debug-mono-piral.js +70 -0
  67. package/lib/build/run-debug-mono-piral.js.map +1 -0
  68. package/lib/build/run-debug-pilet.d.ts +1 -0
  69. package/lib/build/run-debug-pilet.js +89 -0
  70. package/lib/build/run-debug-pilet.js.map +1 -0
  71. package/lib/build/run-debug-piral.d.ts +1 -0
  72. package/lib/build/run-debug-piral.js +85 -0
  73. package/lib/build/run-debug-piral.js.map +1 -0
  74. package/lib/bundler.js +75 -26
  75. package/lib/bundler.js.map +1 -1
  76. package/lib/cli.js +7 -4
  77. package/lib/cli.js.map +1 -1
  78. package/lib/commands.js +266 -46
  79. package/lib/commands.js.map +1 -1
  80. package/lib/common/archive.d.ts +4 -0
  81. package/lib/common/archive.js +31 -10
  82. package/lib/common/archive.js.map +1 -1
  83. package/lib/common/browser.d.ts +2 -1
  84. package/lib/common/browser.js +17 -8
  85. package/lib/common/browser.js.map +1 -1
  86. package/lib/common/clients/index.d.ts +21 -0
  87. package/lib/common/clients/index.js +48 -0
  88. package/lib/common/clients/index.js.map +1 -0
  89. package/lib/common/clients/lerna.d.ts +7 -1
  90. package/lib/common/clients/lerna.js +93 -7
  91. package/lib/common/clients/lerna.js.map +1 -1
  92. package/lib/common/clients/npm.d.ts +6 -1
  93. package/lib/common/clients/npm.js +66 -18
  94. package/lib/common/clients/npm.js.map +1 -1
  95. package/lib/common/clients/pnp.d.ts +7 -0
  96. package/lib/common/clients/pnp.js +104 -0
  97. package/lib/common/clients/pnp.js.map +1 -0
  98. package/lib/common/clients/pnpm.d.ts +5 -0
  99. package/lib/common/clients/pnpm.js +55 -6
  100. package/lib/common/clients/pnpm.js.map +1 -1
  101. package/lib/common/clients/rush.d.ts +7 -0
  102. package/lib/common/clients/rush.js +127 -0
  103. package/lib/common/clients/rush.js.map +1 -0
  104. package/lib/common/clients/yarn.d.ts +5 -0
  105. package/lib/common/clients/yarn.js +57 -6
  106. package/lib/common/clients/yarn.js.map +1 -1
  107. package/lib/common/compatibility.js +14 -9
  108. package/lib/common/compatibility.js.map +1 -1
  109. package/lib/common/config.d.ts +52 -1
  110. package/lib/common/config.js +10 -30
  111. package/lib/common/config.js.map +1 -1
  112. package/lib/common/constants.d.ts +10 -2
  113. package/lib/common/constants.js +22 -4
  114. package/lib/common/constants.js.map +1 -1
  115. package/lib/common/declaration.d.ts +2 -1
  116. package/lib/common/declaration.js +113 -56
  117. package/lib/common/declaration.js.map +1 -1
  118. package/lib/common/emoji.d.ts +8 -0
  119. package/lib/common/emoji.js +10 -1
  120. package/lib/common/emoji.js.map +1 -1
  121. package/lib/common/emulator.d.ts +2 -2
  122. package/lib/common/emulator.js +45 -32
  123. package/lib/common/emulator.js.map +1 -1
  124. package/lib/common/enums.d.ts +0 -4
  125. package/lib/common/enums.js +1 -6
  126. package/lib/common/enums.js.map +1 -1
  127. package/lib/common/envs.js +16 -5
  128. package/lib/common/envs.js.map +1 -1
  129. package/lib/common/hash.d.ts +1 -0
  130. package/lib/common/hash.js +8 -3
  131. package/lib/common/hash.js.map +1 -1
  132. package/lib/common/http.d.ts +5 -2
  133. package/lib/common/http.js +65 -23
  134. package/lib/common/http.js.map +1 -1
  135. package/lib/common/importmap.d.ts +2 -0
  136. package/lib/common/importmap.js +202 -0
  137. package/lib/common/importmap.js.map +1 -0
  138. package/lib/common/index.d.ts +10 -0
  139. package/lib/common/index.js +15 -1
  140. package/lib/common/index.js.map +1 -1
  141. package/lib/common/info.d.ts +5 -0
  142. package/lib/common/info.js +9 -2
  143. package/lib/common/info.js.map +1 -1
  144. package/lib/common/injectors.d.ts +36 -8
  145. package/lib/common/injectors.js +46 -19
  146. package/lib/common/injectors.js.map +1 -1
  147. package/lib/common/inspect.d.ts +5 -3
  148. package/lib/common/inspect.js +15 -15
  149. package/lib/common/inspect.js.map +1 -1
  150. package/lib/common/interactive.d.ts +9 -0
  151. package/lib/common/interactive.js +60 -1
  152. package/lib/common/interactive.js.map +1 -1
  153. package/lib/common/io.d.ts +9 -3
  154. package/lib/common/io.js +219 -116
  155. package/lib/common/io.js.map +1 -1
  156. package/lib/common/language.d.ts +9 -6
  157. package/lib/common/language.js +68 -12
  158. package/lib/common/language.js.map +1 -1
  159. package/lib/common/log.d.ts +5 -3
  160. package/lib/common/log.js +34 -48
  161. package/lib/common/log.js.map +1 -1
  162. package/lib/common/npm.d.ts +17 -16
  163. package/lib/common/npm.js +262 -158
  164. package/lib/common/npm.js.map +1 -1
  165. package/lib/common/pack.js +47 -26
  166. package/lib/common/pack.js.map +1 -1
  167. package/lib/common/package.d.ts +43 -20
  168. package/lib/common/package.js +377 -213
  169. package/lib/common/package.js.map +1 -1
  170. package/lib/common/parallel.d.ts +1 -0
  171. package/lib/common/parallel.js +29 -0
  172. package/lib/common/parallel.js.map +1 -0
  173. package/lib/common/patcher.js +20 -20
  174. package/lib/common/patcher.js.map +1 -1
  175. package/lib/common/platform.d.ts +13 -0
  176. package/lib/common/platform.js +29 -0
  177. package/lib/common/platform.js.map +1 -0
  178. package/lib/common/port.d.ts +1 -0
  179. package/lib/common/port.js +14 -4
  180. package/lib/common/port.js.map +1 -1
  181. package/lib/common/rules.js +4 -4
  182. package/lib/common/rules.js.map +1 -1
  183. package/lib/common/scaffold.d.ts +18 -4
  184. package/lib/common/scaffold.js +59 -36
  185. package/lib/common/scaffold.js.map +1 -1
  186. package/lib/common/scripts.js +8 -8
  187. package/lib/common/scripts.js.map +1 -1
  188. package/lib/common/shell.d.ts +2 -0
  189. package/lib/common/shell.js +33 -0
  190. package/lib/common/shell.js.map +1 -0
  191. package/lib/common/spec.d.ts +29 -0
  192. package/lib/common/spec.js +69 -0
  193. package/lib/common/spec.js.map +1 -0
  194. package/lib/common/template.d.ts +1 -2
  195. package/lib/common/template.js +23 -22
  196. package/lib/common/template.js.map +1 -1
  197. package/lib/common/url.d.ts +1 -0
  198. package/lib/common/url.js +17 -0
  199. package/lib/common/url.js.map +1 -0
  200. package/lib/common/utils.d.ts +1 -0
  201. package/lib/common/utils.js +8 -0
  202. package/lib/common/utils.js.map +1 -0
  203. package/lib/common/version.d.ts +2 -0
  204. package/lib/common/version.js +130 -0
  205. package/lib/common/version.js.map +1 -0
  206. package/lib/common/watcher.d.ts +13 -0
  207. package/lib/common/watcher.js +78 -0
  208. package/lib/common/watcher.js.map +1 -0
  209. package/lib/external/index.js +59413 -57862
  210. package/lib/helpers.d.ts +6 -6
  211. package/lib/helpers.js +10 -25
  212. package/lib/helpers.js.map +1 -1
  213. package/lib/index.js +5 -1
  214. package/lib/index.js.map +1 -1
  215. package/lib/inject.js +2 -2
  216. package/lib/inject.js.map +1 -1
  217. package/lib/injectors/pilet-injector.d.ts +75 -0
  218. package/lib/injectors/pilet-injector.js +246 -0
  219. package/lib/injectors/pilet-injector.js.map +1 -0
  220. package/lib/injectors/{piral.d.ts → piral-injector.d.ts} +10 -2
  221. package/lib/injectors/piral-injector.js +97 -0
  222. package/lib/injectors/piral-injector.js.map +1 -0
  223. package/lib/messages.d.ts +567 -47
  224. package/lib/messages.js +638 -51
  225. package/lib/messages.js.map +1 -1
  226. package/lib/pb-cli.js +1 -1
  227. package/lib/pb-cli.js.map +1 -1
  228. package/lib/pilet-cli.js +1 -1
  229. package/lib/pilet-cli.js.map +1 -1
  230. package/lib/piral-cli.js +1 -1
  231. package/lib/piral-cli.js.map +1 -1
  232. package/lib/platforms/node.d.ts +8 -0
  233. package/lib/platforms/node.js +30 -0
  234. package/lib/platforms/node.js.map +1 -0
  235. package/lib/platforms/web.d.ts +8 -0
  236. package/lib/platforms/web.js +120 -0
  237. package/lib/platforms/web.js.map +1 -0
  238. package/lib/plugin.js +36 -11
  239. package/lib/plugin.js.map +1 -1
  240. package/lib/questionnaire.d.ts +1 -1
  241. package/lib/questionnaire.js +9 -4
  242. package/lib/questionnaire.js.map +1 -1
  243. package/lib/release.d.ts +1 -1
  244. package/lib/release.js +38 -6
  245. package/lib/release.js.map +1 -1
  246. package/lib/resolvers.js +13 -13
  247. package/lib/resolvers.js.map +1 -1
  248. package/lib/rules/index.js +8 -8
  249. package/lib/rules/index.js.map +1 -1
  250. package/lib/rules/pilet-has-externals-as-peers.d.ts +1 -1
  251. package/lib/rules/pilet-has-externals-as-peers.js +9 -7
  252. package/lib/rules/pilet-has-externals-as-peers.js.map +1 -1
  253. package/lib/rules/pilet-has-no-self-reference.d.ts +1 -1
  254. package/lib/rules/pilet-has-no-self-reference.js +2 -2
  255. package/lib/rules/pilet-has-no-self-reference.js.map +1 -1
  256. package/lib/rules/pilet-has-no-third-party-dependency.d.ts +1 -1
  257. package/lib/rules/pilet-stays-small.d.ts +1 -1
  258. package/lib/rules/pilet-stays-small.js +4 -4
  259. package/lib/rules/pilet-stays-small.js.map +1 -1
  260. package/lib/rules/pilet-uses-latest-piral.d.ts +1 -1
  261. package/lib/rules/pilet-uses-latest-piral.js +18 -9
  262. package/lib/rules/pilet-uses-latest-piral.js.map +1 -1
  263. package/lib/rules/piral-depends-on-piral.d.ts +1 -1
  264. package/lib/rules/piral-entry-ends-with-html.d.ts +1 -1
  265. package/lib/rules/piral-entry-ends-with-html.js +1 -1
  266. package/lib/rules/piral-entry-ends-with-html.js.map +1 -1
  267. package/lib/rules/piral-has-valid-devDependencies.d.ts +1 -1
  268. package/lib/rules/piral-has-valid-externals.d.ts +1 -1
  269. package/lib/rules/piral-has-valid-externals.js +10 -24
  270. package/lib/rules/piral-has-valid-externals.js.map +1 -1
  271. package/lib/rules/piral-has-valid-files.d.ts +1 -1
  272. package/lib/rules/piral-has-valid-files.js +5 -5
  273. package/lib/rules/piral-has-valid-files.js.map +1 -1
  274. package/lib/rules/piral-has-valid-scripts.d.ts +1 -1
  275. package/lib/runner.js +1 -1
  276. package/lib/runner.js.map +1 -1
  277. package/lib/select.js +6 -6
  278. package/lib/select.js.map +1 -1
  279. package/lib/types/common.d.ts +88 -8
  280. package/lib/types/common.js.map +1 -1
  281. package/lib/types/index.js +5 -1
  282. package/lib/types/index.js.map +1 -1
  283. package/lib/types/internal.d.ts +12 -13
  284. package/lib/types/public.d.ts +89 -23
  285. package/package.json +19 -16
  286. package/src/apps/add-piral-instance-pilet.ts +98 -0
  287. package/src/apps/build-pilet.ts +286 -38
  288. package/src/apps/build-piral.test.ts +20 -7
  289. package/src/apps/build-piral.ts +90 -39
  290. package/src/apps/debug-pilet.ts +229 -123
  291. package/src/apps/debug-piral.ts +121 -68
  292. package/src/apps/declaration-piral.ts +4 -2
  293. package/src/apps/index.ts +3 -0
  294. package/src/apps/new-pilet.test.ts +28 -11
  295. package/src/apps/new-pilet.ts +60 -48
  296. package/src/apps/new-piral.test.ts +25 -13
  297. package/src/apps/new-piral.ts +43 -19
  298. package/src/apps/pack-pilet.test.ts +2 -2
  299. package/src/apps/pack-pilet.ts +12 -10
  300. package/src/apps/publish-pilet.ts +148 -43
  301. package/src/apps/publish-piral.ts +38 -11
  302. package/src/apps/remove-piral-instance-pilet.ts +92 -0
  303. package/src/apps/run-emulator-piral.ts +154 -0
  304. package/src/apps/upgrade-pilet.ts +37 -31
  305. package/src/apps/upgrade-piral.ts +9 -7
  306. package/src/apps/validate-pilet.ts +30 -22
  307. package/src/apps/validate-piral.ts +5 -2
  308. package/src/build/bundler-calls.ts +133 -0
  309. package/src/build/run-build-pilet.ts +91 -0
  310. package/src/build/run-build-piral.ts +93 -0
  311. package/src/build/run-debug-mono-piral.ts +86 -0
  312. package/src/build/run-debug-pilet.ts +116 -0
  313. package/src/build/run-debug-piral.ts +105 -0
  314. package/src/bundler.test.ts +86 -68
  315. package/src/bundler.ts +74 -19
  316. package/src/cli.ts +6 -2
  317. package/src/commands.ts +273 -44
  318. package/src/common/archive.test.ts +51 -45
  319. package/src/common/archive.ts +28 -1
  320. package/src/common/browser.test.ts +20 -10
  321. package/src/common/browser.ts +13 -6
  322. package/src/common/clients/index.ts +41 -0
  323. package/src/common/clients/lerna.ts +85 -1
  324. package/src/common/clients/npm.ts +56 -14
  325. package/src/common/clients/pnp.ts +84 -0
  326. package/src/common/clients/pnpm.ts +45 -1
  327. package/src/common/clients/rush.ts +118 -0
  328. package/src/common/clients/yarn.ts +49 -3
  329. package/src/common/compatibility.ts +8 -1
  330. package/src/common/config.ts +57 -22
  331. package/src/common/constants.ts +21 -3
  332. package/src/common/declaration.ts +124 -50
  333. package/src/common/emoji.ts +9 -0
  334. package/src/common/emulator.ts +43 -23
  335. package/src/common/enums.ts +0 -5
  336. package/src/common/envs.ts +15 -3
  337. package/src/common/hash.ts +5 -0
  338. package/src/common/http.test.ts +76 -64
  339. package/src/common/http.ts +88 -24
  340. package/src/common/importmap.ts +242 -0
  341. package/src/common/index.ts +10 -0
  342. package/src/common/info.ts +9 -1
  343. package/src/common/injectors.ts +49 -22
  344. package/src/common/inspect.ts +13 -14
  345. package/src/common/interactive.test.ts +6 -0
  346. package/src/common/interactive.ts +69 -1
  347. package/src/common/io.ts +199 -82
  348. package/src/common/language.ts +87 -10
  349. package/src/common/log.ts +32 -46
  350. package/src/common/npm.test.ts +187 -166
  351. package/src/common/npm.ts +263 -119
  352. package/src/common/pack.test.ts +11 -13
  353. package/src/common/pack.ts +60 -21
  354. package/src/common/package.test.ts +59 -49
  355. package/src/common/package.ts +406 -167
  356. package/src/common/parallel.test.ts +28 -0
  357. package/src/common/parallel.ts +21 -0
  358. package/src/common/platform.ts +31 -0
  359. package/src/common/port.test.ts +4 -1
  360. package/src/common/port.ts +10 -0
  361. package/src/common/rules.test.ts +3 -3
  362. package/src/common/scaffold.ts +69 -41
  363. package/src/common/scripts.ts +5 -4
  364. package/src/common/shell.ts +34 -0
  365. package/src/common/spec.ts +69 -0
  366. package/src/common/template.ts +20 -18
  367. package/src/common/url.test.ts +28 -0
  368. package/src/common/url.ts +15 -0
  369. package/src/common/utils.ts +3 -0
  370. package/src/common/version.test.ts +233 -0
  371. package/src/common/version.ts +142 -0
  372. package/src/common/watcher.ts +89 -0
  373. package/src/external/index.test.ts +2 -2
  374. package/src/external/index.ts +7 -3
  375. package/src/external/resolve.ts +29 -0
  376. package/src/helpers.test.ts +2 -22
  377. package/src/helpers.ts +21 -30
  378. package/src/injectors/{pilet.test.ts → pilet-injector.test.ts} +13 -4
  379. package/src/injectors/pilet-injector.ts +346 -0
  380. package/src/injectors/{piral.test.ts → piral-injector.test.ts} +14 -5
  381. package/src/injectors/piral-injector.ts +130 -0
  382. package/src/messages.ts +649 -63
  383. package/src/platforms/node.ts +16 -0
  384. package/src/platforms/web.ts +148 -0
  385. package/src/plugin.ts +34 -5
  386. package/src/questionnaire.ts +17 -3
  387. package/src/release.ts +47 -5
  388. package/src/rules/index.ts +1 -1
  389. package/src/rules/pilet-has-externals-as-peers.test.ts +3 -2
  390. package/src/rules/pilet-has-externals-as-peers.ts +9 -7
  391. package/src/rules/pilet-has-no-self-reference.ts +1 -1
  392. package/src/rules/pilet-stays-small.ts +1 -1
  393. package/src/rules/pilet-uses-latest-piral.ts +22 -12
  394. package/src/rules/piral-has-valid-externals.ts +10 -29
  395. package/src/types/common.ts +99 -9
  396. package/src/types/internal.ts +14 -14
  397. package/src/types/public.ts +93 -27
  398. package/lib/external/child.js +0 -144
  399. package/lib/external/classes.trie +0 -0
  400. package/lib/external/xdg-open +0 -1066
  401. package/lib/injectors/pilet.d.ts +0 -47
  402. package/lib/injectors/pilet.js +0 -187
  403. package/lib/injectors/pilet.js.map +0 -1
  404. package/lib/injectors/piral.js +0 -62
  405. package/lib/injectors/piral.js.map +0 -1
  406. package/src/injectors/pilet.ts +0 -219
  407. package/src/injectors/piral.ts +0 -76
  408. package/templates/piral-index.js.ejs +0 -16
package/lib/messages.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.piletMultiDebugExternalsDifferent_0303 = exports.piletMultiDebugAppShellVersions_0302 = exports.piletMultiDebugAppShellDifferent_0301 = exports.apiReleaseProviderInvalid_0207 = exports.apiBundlerInvalid_0206 = exports.pluginCouldNotBeLoaded_0205 = exports.apiPatchInvalid_0204 = exports.apiValidateRunInvalid_0203 = exports.apiValidateNameInvalid_0202 = exports.apiArgumentInvalid_0201 = exports.apiCommandNameInvalid_0200 = exports.bundlerUnspecified_0175 = exports.bundlingFailed_0174 = exports.defaultBundlerMissing_0173 = exports.bundlerMissing_0172 = exports.invalidSchemaVersion_0171 = exports.failedToOpenBrowser_0170 = exports.publishEmulatorSourcesInvalid_0114 = exports.publishProviderMissing_0113 = exports.publishXcopyMissingTarget_0112 = exports.publishEmulatorFilesUnexpected_0111 = exports.publishDirectoryMissing_0110 = exports.toolingIncompatible_0101 = exports.appShellIncompatible_0100 = exports.validationWarned_0081 = exports.validationFailed_0080 = exports.entryFileMissing_0077 = exports.declarationCouldNotBeGenerated_0076 = exports.packageJsonMissing_0075 = exports.packageJsonMissing_0074 = exports.entryPointDoesNotExist_0073 = exports.expectedArray_0072 = exports.entryPointMissing_0071 = exports.entryPointMissing_0070 = exports.failedToUploadSize_0163 = exports.failedToUploadVersion_0162 = exports.failedToUploadPayment_0161 = exports.failedHttpGet_0068 = exports.httpPostResponse_0067 = exports.unsuccessfulHttpPost_0066 = exports.failedHttpPost_0065 = exports.failedUploading_0064 = exports.failedToRead_0063 = exports.failedToUpload_0062 = exports.missingPiletTarball_0061 = exports.missingPiletFeedUrl_0060 = exports.cannotResolveDependency_0053 = exports.cannotResolveVersion_0052 = exports.gitLatestForUpgradeMissing_0051 = exports.localeFileForUpgradeMissing_0050 = exports.cannotFindFile_0046 = exports.didNotOverWriteFile_0045 = exports.cannotCreateDirectory_0044 = exports.invalidPiralReference_0043 = exports.invalidPiletPackage_0042 = exports.invalidPiletPackage_0041 = exports.invalidPiletTarget_0040 = exports.projectReferenceNotSupported_0032 = exports.upgradePathDoesNotExist_0031 = exports.scaffoldPathDoesNotExist_0030 = exports.packageVersionInvalid_0024 = exports.packageNotInstalled_0023 = exports.packageJsonMissingVersion_0022 = exports.packageJsonMissingName_0021 = exports.packageJsonNotFound_0020 = exports.appInstanceInvalid_0011 = exports.appInstanceNotFound_0010 = exports.generalVerbose_0004 = exports.generalDebug_0003 = exports.generalError_0002 = exports.generalWarning_0001 = exports.generalInfo_0000 = void 0;
3
+ exports.packageJsonMissing_0074 = exports.entryPointDoesNotExist_0073 = exports.expectedArray_0072 = exports.entryPointMissing_0071 = exports.entryPointMissing_0070 = exports.failedToUploadSize_0163 = exports.failedToUploadVersion_0162 = exports.failedToUploadPayment_0161 = exports.failedHttpGet_0068 = exports.httpPostResponse_0067 = exports.unsuccessfulHttpPost_0066 = exports.failedHttpPost_0065 = exports.failedUploading_0064 = exports.failedToRead_0063 = exports.failedToUpload_0062 = exports.missingPiletTarball_0061 = exports.missingPiletFeedUrl_0060 = exports.cannotResolveDependency_0053 = exports.cannotResolveVersion_0052 = exports.gitLatestForUpgradeMissing_0051 = exports.localeFileForUpgradeMissing_0050 = exports.portNotFree_0047 = exports.cannotFindFile_0046 = exports.didNotOverWriteFile_0045 = exports.cannotCreateDirectory_0044 = exports.invalidPiralReference_0043 = exports.invalidPiletPackage_0042 = exports.invalidPiletPackage_0041 = exports.invalidPiletTarget_0040 = exports.projectReferenceNotSupported_0032 = exports.upgradePathDoesNotExist_0031 = exports.scaffoldPathDoesNotExist_0030 = exports.invalidSharedDependency_0029 = exports.importMapFileNotFound_0028 = exports.importMapReferenceNotFound_0027 = exports.importMapVersionSpecInvalid_0026 = exports.importMapVersionSpecNotSatisfied_0025 = exports.packageVersionInvalid_0024 = exports.packageNotInstalled_0023 = exports.packageJsonMissingVersion_0022 = exports.packageJsonMissingName_0021 = exports.packageJsonNotFound_0020 = exports.appInstancesNotGiven_0012 = exports.appInstanceInvalid_0011 = exports.appInstanceNotFound_0010 = exports.generalVerbose_0004 = exports.generalDebug_0003 = exports.generalError_0002 = exports.generalWarning_0001 = exports.generalInfo_0000 = void 0;
4
+ exports.piletMultiDebugExternalsDifferent_0303 = exports.piletMultiDebugAppShellVersions_0302 = exports.piletMultiDebugAppShellDifferent_0301 = exports.apiReleaseProviderInvalid_0207 = exports.apiBundlerInvalid_0206 = exports.pluginCouldNotBeLoaded_0205 = exports.apiPatchInvalid_0204 = exports.apiValidateRunInvalid_0203 = exports.apiValidateNameInvalid_0202 = exports.apiArgumentInvalid_0201 = exports.apiCommandNameInvalid_0200 = exports.platformNotSupported_0190 = exports.piletJsonNotAvailable_0180 = exports.bundlerNotInstalled_0176 = exports.bundlerUnspecified_0175 = exports.bundlingFailed_0174 = exports.defaultBundlerMissing_0173 = exports.bundlerMissing_0172 = exports.invalidSchemaVersion_0171 = exports.failedToOpenBrowser_0170 = exports.publishFeedMissingVersion_0116 = exports.publishFeedMissingUrl_0115 = exports.publishEmulatorSourcesInvalid_0114 = exports.publishProviderMissing_0113 = exports.publishXcopyMissingTarget_0112 = exports.publishEmulatorFilesUnexpected_0111 = exports.publishDirectoryMissing_0110 = exports.appShellMaybeIncompatible_0102 = exports.toolingIncompatible_0101 = exports.appShellIncompatible_0100 = exports.validationWarned_0081 = exports.validationFailed_0080 = exports.frameworkLibMissing_0078 = exports.entryFileMissing_0077 = exports.declarationCouldNotBeGenerated_0076 = exports.packageJsonMissing_0075 = void 0;
4
5
  const types_1 = require("./types");
5
6
  /**
6
7
  * @kind Info
@@ -163,7 +164,7 @@ exports.appInstanceNotFound_0010 = appInstanceNotFound_0010;
163
164
  * It should be an HTML file.
164
165
  *
165
166
  * @see
166
- * - [Parcel HTML Asset](https://parceljs.org/html.html)
167
+ * - [Parcel HTML Asset](https://parceljs.org/languages/html/)
167
168
  *
168
169
  * @example
169
170
  * Make sure the package.json of the Piral instance is valid (has an "app" field).
@@ -182,6 +183,53 @@ function appInstanceInvalid_0011() {
182
183
  return [types_1.LogLevels.error, '0011', `Could not find a valid Piral instance.`];
183
184
  }
184
185
  exports.appInstanceInvalid_0011 = appInstanceInvalid_0011;
186
+ /**
187
+ * @kind Error
188
+ *
189
+ * @summary
190
+ * Reported when no valid Piral instance was specified.
191
+ *
192
+ * @abstract
193
+ * The Piral instance is defined either in the package.json or in the pilet.json.
194
+ *
195
+ * The resolution of the Piral instance is done via the `require.resolve` function of Node.js. Thus, if the defined module is simply not yet installed this error will be shown.
196
+ *
197
+ * @see
198
+ * - [npm i](https://docs.npmjs.com/cli/install)
199
+ * - [npm install is missing modules](https://stackoverflow.com/questions/24652681/npm-install-is-missing-modules)
200
+ *
201
+ * @example
202
+ * Assuming that the available pilet.json of your pilet contains content such as:
203
+ *
204
+ * ```json
205
+ * {
206
+ * // ...
207
+ * "piralInstances": {
208
+ * "my-app-shell": {}
209
+ * }
210
+ * }
211
+ * ```
212
+ *
213
+ * However, running
214
+ *
215
+ * ```sh
216
+ * ls node_modules/my-app-shell
217
+ * ```
218
+ *
219
+ * returns an error.
220
+ *
221
+ * To mitigate it try running
222
+ *
223
+ * ```sh
224
+ * npm i
225
+ * ```
226
+ *
227
+ * which will install all dependencies.
228
+ */
229
+ function appInstancesNotGiven_0012() {
230
+ return [types_1.LogLevels.error, '0012', `No Piral instances have been provided.`];
231
+ }
232
+ exports.appInstancesNotGiven_0012 = appInstancesNotGiven_0012;
185
233
  /**
186
234
  * @kind Error
187
235
  *
@@ -200,7 +248,7 @@ exports.appInstanceInvalid_0011 = appInstanceInvalid_0011;
200
248
  * project folder has a package.json in its root.
201
249
  *
202
250
  * @see
203
- * - [NPM Package Specification](https://docs.npmjs.com/files/package.json)
251
+ * - [npm Package Specification](https://docs.npmjs.com/files/package.json)
204
252
  *
205
253
  * @example
206
254
  * You can see if you are currently in a correct folder.
@@ -237,7 +285,7 @@ exports.packageJsonNotFound_0020 = packageJsonNotFound_0020;
237
285
  * The name of the pilet is provided by the name field specified in its package.json.
238
286
  *
239
287
  * A valid package.json file requires a valid name. The name has to follow standard naming
240
- * conventions of the NPM system.
288
+ * conventions of the npm system.
241
289
  *
242
290
  * @see
243
291
  * - [Package Naming Guidelines](https://docs.npmjs.com/package-name-guidelines)
@@ -287,7 +335,7 @@ exports.packageJsonMissingName_0021 = packageJsonMissingName_0021;
287
335
  * specification.
288
336
  *
289
337
  * @see
290
- * - [NPM on Semantic Versioning](https://docs.npmjs.com/about-semantic-versioning)
338
+ * - [npm on Semantic Versioning](https://docs.npmjs.com/about-semantic-versioning)
291
339
  *
292
340
  * @example
293
341
  * Check the contents of the available package.json:
@@ -332,7 +380,7 @@ exports.packageJsonMissingVersion_0022 = packageJsonMissingVersion_0022;
332
380
  * and which ones can remain at their current version.
333
381
  *
334
382
  * @see
335
- * - [NPM Install](https://docs.npmjs.com/cli/install)
383
+ * - [npm Install](https://docs.npmjs.com/cli/install)
336
384
  *
337
385
  * @example
338
386
  * Check that the package is indeed installed:
@@ -372,7 +420,7 @@ exports.packageNotInstalled_0023 = packageNotInstalled_0023;
372
420
  * versions. If no release for the given version was found then an error is emitted.
373
421
  *
374
422
  * @see
375
- * - [StackOverflow Listing NPM Versions](https://stackoverflow.com/questions/41415945/how-to-list-all-versions-of-an-npm-module)
423
+ * - [StackOverflow Listing npm Versions](https://stackoverflow.com/questions/41415945/how-to-list-all-versions-of-an-npm-module)
376
424
  *
377
425
  * @example
378
426
  * Check that the version is valid:
@@ -394,6 +442,273 @@ function packageVersionInvalid_0024(version) {
394
442
  return [types_1.LogLevels.error, '0024', `The given package version "${version}" is invalid.`];
395
443
  }
396
444
  exports.packageVersionInvalid_0024 = packageVersionInvalid_0024;
445
+ /**
446
+ * @kind Error
447
+ *
448
+ * @summary
449
+ * Cannot add the shared dependency since its version constraint is not satisfied.
450
+ *
451
+ * @abstract
452
+ * The importmap definition allows you to define a version specifier separated with
453
+ * the '@' character. If you write down a version specifier then it has to be
454
+ * fulfilled already from the local version, otherwise the packaged version can
455
+ * potentially not be resolved at runtime. This would resolve in a pilet that fails
456
+ * when running in isolation and most likely fails when running with other pilets.
457
+ *
458
+ * @see
459
+ * - [import-maps specification](https://github.com/WICG/import-maps)
460
+ *
461
+ * @example
462
+ * Check the contents of the available package.json:
463
+ *
464
+ * ```sh
465
+ * cat package.json
466
+ * ```
467
+ *
468
+ * The displayed content should look similar to (i.e., contain an importmap such as):
469
+ *
470
+ * ```json
471
+ * {
472
+ * "importmap": {
473
+ * "imports": {
474
+ * "foo@^3.2.1": "foo"
475
+ * }
476
+ * }
477
+ * }
478
+ * ```
479
+ *
480
+ * For the error to occur the specifier (^3.2.1) potentially does not match the version (e.g., if
481
+ * the version of the dependency is 3.1.2).
482
+ *
483
+ * One strategy is to remove the specifier, which will automatically use the exact current version
484
+ * as specifier:
485
+ *
486
+ * ```json
487
+ * {
488
+ * "importmap": {
489
+ * "imports": {
490
+ * "foo": "foo"
491
+ * }
492
+ * }
493
+ * }
494
+ * ```
495
+ *
496
+ * The best way, however, is to look at the used version and adjust the specifier to be correct again.
497
+ * Alternatively, change the used version to satisfy the constraint again.
498
+ */
499
+ function importMapVersionSpecNotSatisfied_0025(depName, version) {
500
+ return [types_1.LogLevels.error, '0025', `The dependency "${depName}" in only available in version "${version}".`];
501
+ }
502
+ exports.importMapVersionSpecNotSatisfied_0025 = importMapVersionSpecNotSatisfied_0025;
503
+ /**
504
+ * @kind Error
505
+ *
506
+ * @summary
507
+ * The version spec part of the importmap identifer is invalid.
508
+ *
509
+ * @abstract
510
+ * The importmap definition allows you to define a version specifier separated with
511
+ * the '@' character. This part has to follow the semver convention and rules.
512
+ *
513
+ * Check your specifier via online tools such as "Semver check" to verify it is
514
+ * valid and follows the semver specification.
515
+ *
516
+ * @see
517
+ * - [Online Checker](https://jubianchi.github.io/semver-check/)
518
+ *
519
+ * @example
520
+ * Check the contents of the available package.json:
521
+ *
522
+ * ```sh
523
+ * cat package.json
524
+ * ```
525
+ *
526
+ * The displayed content should look similar to (i.e., contain an importmap such as):
527
+ *
528
+ * ```json
529
+ * {
530
+ * "importmap": {
531
+ * "imports": {
532
+ * "foo@bar": "foo"
533
+ * }
534
+ * }
535
+ * }
536
+ * ```
537
+ *
538
+ * For the error to occur the specifier (bar) is not following the semver specification.
539
+ *
540
+ * One way is to remove the version spec, which will resolve to an exact version specifier
541
+ * and therefore always works:
542
+ *
543
+ * ```json
544
+ * {
545
+ * "importmap": {
546
+ * "imports": {
547
+ * "foo": "foo"
548
+ * }
549
+ * }
550
+ * }
551
+ * ```
552
+ *
553
+ * The best way, however, is to look at the used version and adjust the specifier to be correct again,
554
+ * such as "^1.2.3" or "1.x" or "3" etc.
555
+ */
556
+ function importMapVersionSpecInvalid_0026(depName) {
557
+ return [types_1.LogLevels.error, '0026', `The dependency "${depName}" has an invalid version spec.`];
558
+ }
559
+ exports.importMapVersionSpecInvalid_0026 = importMapVersionSpecInvalid_0026;
560
+ /**
561
+ * @kind Error
562
+ *
563
+ * @summary
564
+ * The provided importmap reference could not be resolved.
565
+ *
566
+ * @abstract
567
+ * The importmap consists of keys and values. The keys represent the packages names and optional
568
+ * version specifiers to demand at runtime. The values represent the entry point or URL to use
569
+ * when the dependency is not yet loaded.
570
+ *
571
+ * In case of a non-URL value the reference has either to be a valid package name or a file path
572
+ * that leads to either a package or valid JS module. Either way, it needs to exist. If the path
573
+ * is invalid an error will be emitted.
574
+ *
575
+ * @see
576
+ * - [npm Install](https://docs.npmjs.com/cli/install)
577
+ *
578
+ * @example
579
+ * Check the contents of the available package.json:
580
+ *
581
+ * ```sh
582
+ * cat package.json
583
+ * ```
584
+ *
585
+ * The displayed content should look similar to (i.e., contain an importmap such as):
586
+ *
587
+ * ```json
588
+ * {
589
+ * "importmap": {
590
+ * "imports": {
591
+ * "foo@bar": "./node_modules/prect"
592
+ * }
593
+ * }
594
+ * }
595
+ * ```
596
+ *
597
+ * Note the potential misspelling. It maybe should have been "./node_modules/preact". In such
598
+ * cases the reference may not be resolved locally. If everything was written correctly the
599
+ * node modules are most likely not installed (correctly).
600
+ */
601
+ function importMapReferenceNotFound_0027(dir, reference) {
602
+ return [
603
+ types_1.LogLevels.error,
604
+ '0027',
605
+ `The reference to "${reference}" could not be resolved from "${dir}". Are you sure the file or package exists?`,
606
+ ];
607
+ }
608
+ exports.importMapReferenceNotFound_0027 = importMapReferenceNotFound_0027;
609
+ /**
610
+ * @kind Error
611
+ *
612
+ * @summary
613
+ * The provided importmap file could not be found.
614
+ *
615
+ * @abstract
616
+ * The importmap can be referenced in a file from the package.json. If the named
617
+ * file cannot be found the build process has to be stopped. Make sure that the
618
+ * file has been specified relative to the package.json where it was referenced
619
+ * from.
620
+ *
621
+ * @see
622
+ * - [import-maps specification](https://github.com/WICG/import-maps)
623
+ *
624
+ * @example
625
+ * Check the contents of the available package.json:
626
+ *
627
+ * ```sh
628
+ * cat package.json
629
+ * ```
630
+ *
631
+ * The displayed content should look similar to (i.e., contain an importmap such as):
632
+ *
633
+ * ```json
634
+ * {
635
+ * "importmap": "./import-map.json"
636
+ * }
637
+ * ```
638
+ *
639
+ * If the importmap has instead been (re)named "importmap.json" then this will not work.
640
+ * Likewise, with the reference above the file is expected to be in the same directory
641
+ * as the package.json. If it is, e.g., in the "src" subfolder you'd should reference it
642
+ * as "./src/import-map.json" instead.
643
+ */
644
+ function importMapFileNotFound_0028(dir, file) {
645
+ return [types_1.LogLevels.error, '0028', `The importmap "${file}" could not be found at "${dir}".`];
646
+ }
647
+ exports.importMapFileNotFound_0028 = importMapFileNotFound_0028;
648
+ /**
649
+ * @kind Warning
650
+ *
651
+ * @summary
652
+ * The given dependency seems to be a Piral plugin and should not be exposed
653
+ * as a shared dependency.
654
+ *
655
+ * @abstract
656
+ * While you should be quite restrictive in general regarding sharing dependencies,
657
+ * there are some dependencies that should never be shared. One area are dependencies
658
+ * that are only meant for the app shell and don't make sense somewhere else.
659
+ *
660
+ * Even though many dependencies might exist that fall into that area the only ones
661
+ * we know for sure are the so-called Piral plugins. These are dependencies that only
662
+ * make sense to be used within an app shell, i.e., a Piral instance (or host application).
663
+ *
664
+ * When the Piral CLI detects that you want to share such a dependency from an app shell,
665
+ * or alternatively within a pilet directly, it will print a warning. There might be false
666
+ * positives here, so having an error here might be a bit too much. Nevertheless, depending
667
+ * on your scenario you might want to treat these warnings as errors.
668
+ *
669
+ * @see
670
+ * - [Sharing dependencies](https://docs.piral.io/concepts/I08-importmap)
671
+ *
672
+ * @example
673
+ * Check the contents of the available package.json:
674
+ *
675
+ * ```sh
676
+ * cat package.json
677
+ * ```
678
+ *
679
+ * The displayed content should look similar to (i.e., contain an importmap such as):
680
+ *
681
+ * ```json
682
+ * {
683
+ * "importmap": {
684
+ * "imports": {
685
+ * "piral-ng": ""
686
+ * }
687
+ * }
688
+ * }
689
+ * ```
690
+ *
691
+ * This would share the whole Piral plugin, which does not make much sense. First of all,
692
+ * the plugin is presumably already installed - it even could only be installed in a
693
+ * Piral instance. Second, there is no use of the exported function somewhere else.
694
+ *
695
+ * Instead, you potentially might want to share a submodule. For instance, in the example
696
+ * above the "piral-ng/common" submodule should be shared.
697
+ *
698
+ * ```json
699
+ * {
700
+ * "importmap": {
701
+ * "imports": {
702
+ * "piral-ng/common": ""
703
+ * }
704
+ * }
705
+ * }
706
+ * ```
707
+ */
708
+ function invalidSharedDependency_0029(name) {
709
+ return [types_1.LogLevels.warning, '0029', `The dependency "${name}" should not be shared.`];
710
+ }
711
+ exports.invalidSharedDependency_0029 = invalidSharedDependency_0029;
397
712
  /**
398
713
  * @kind Error
399
714
  *
@@ -483,7 +798,7 @@ exports.projectReferenceNotSupported_0032 = projectReferenceNotSupported_0032;
483
798
  * CLI via command line parameters.
484
799
  *
485
800
  * @see
486
- * - [NPM Package Specification](https://docs.npmjs.com/files/package.json)
801
+ * - [npm Package Specification](https://docs.npmjs.com/files/package.json)
487
802
  *
488
803
  * @example
489
804
  * Make sure you are in the right directory by calling commands such as
@@ -529,7 +844,7 @@ exports.invalidPiletTarget_0040 = invalidPiletTarget_0040;
529
844
  * contains an object with additional fields.
530
845
  *
531
846
  * @see
532
- * - [Pilet Package Definition](https://docs.piral.io/reference/documentation/metadata#pilets---package-definition)
847
+ * - [Pilet Package Definition](https://docs.piral.io/reference/documentation/C31-pilet-metadata)
533
848
  *
534
849
  * @example
535
850
  * Your pilet's package.json may look similar to the following snippet:
@@ -578,7 +893,7 @@ exports.invalidPiletPackage_0041 = invalidPiletPackage_0041;
578
893
  * should contain (among others) a field `name` pointing to the Piral instance to use.
579
894
  *
580
895
  * @see
581
- * - [Pilet Package Definition](https://docs.piral.io/reference/documentation/metadata#pilets---package-definition)
896
+ * - [Pilet Package Definition](https://docs.piral.io/reference/documentation/C31-pilet-metadata)
582
897
  *
583
898
  * @example
584
899
  * If your Piral instance is called `my-piral` then the package.json may look similar to
@@ -613,12 +928,12 @@ exports.invalidPiletPackage_0042 = invalidPiletPackage_0042;
613
928
  * Even though everything seems to be correct on the first glance it may be that the
614
929
  * actual reference is broken. This could be due to various reasons.
615
930
  *
616
- * - NPM linking is broken
931
+ * - npm linking is broken
617
932
  * - The dependencies have not been installed yet (run `npm i`)
618
933
  * - The Piral instance's name is invalid (e.g., due to a typo)
619
934
  *
620
935
  * @see
621
- * - [Pilet Package Definition](https://docs.piral.io/reference/documentation/metadata#pilets---package-definition)
936
+ * - [Pilet Package Definition](https://docs.piral.io/reference/documentation/C31-pilet-metadata)
622
937
  * - [Node Modules Loading](https://nodejs.org/api/modules.html#modules_loading_from_node_modules_folders)
623
938
  *
624
939
  * @example
@@ -752,6 +1067,41 @@ function cannotFindFile_0046(file) {
752
1067
  return [types_1.LogLevels.error, '0046', `The file "${file}" does not exist!`];
753
1068
  }
754
1069
  exports.cannotFindFile_0046 = cannotFindFile_0046;
1070
+ /**
1071
+ * @kind Warning
1072
+ *
1073
+ * @summary
1074
+ * Reported when the provided / default port was not available.
1075
+ *
1076
+ * @abstract
1077
+ * By default, the debug commands spawn at the port 1234. However, under certain
1078
+ * circumstances (e.g., another debug command running somewhere) this port may not
1079
+ * be free.
1080
+ *
1081
+ * The piral-cli can select a new port, which is free, however, it will still report
1082
+ * a warning message in such cases. You can then always abort the current debug
1083
+ * process and start a new one - either closing the other run blocking the port or
1084
+ * explicitly selecting a new one using the `--port` flag.
1085
+ *
1086
+ * @see
1087
+ * - [Port (computer networking)](https://en.wikipedia.org/wiki/Port_(computer_networking))
1088
+ *
1089
+ * @example
1090
+ * If you start one process to debug an app shell using `piral debug` and another process
1091
+ * to debug some pilet using `pilet debug` both processes would want to run on the default
1092
+ * port 1234.
1093
+ *
1094
+ * As a mitigation you can now either be very explicit, e.g., `piral debug --port 1010` and
1095
+ * `pilet debug --port 1020` or you can just drop one of the two and always only run a single
1096
+ * debug process.
1097
+ *
1098
+ * In any case, running both without any options also works, but then a new port will be chosen.
1099
+ * The output of the Piral CLI will always show you what port is currently used.
1100
+ */
1101
+ function portNotFree_0047(newPort, oldPort) {
1102
+ return [types_1.LogLevels.warning, '0047', `The selected port "${oldPort}" is already used. Changed port to "${newPort}".`];
1103
+ }
1104
+ exports.portNotFree_0047 = portNotFree_0047;
755
1105
  /**
756
1106
  * @kind Warning
757
1107
  *
@@ -764,8 +1114,8 @@ exports.cannotFindFile_0046 = cannotFindFile_0046;
764
1114
  * Since the local resolution only works against a filename the update process has also to be triggered with
765
1115
  * a file location. Otherwise, there is no chance to know a different file location.
766
1116
  *
767
- * Potentially, you wanted to switch / resolve the module from NPM instead. Therefore, we are then trying to
768
- * obtain the Piral instance from NPM instead using the known name.
1117
+ * Potentially, you wanted to switch / resolve the module from npm instead. Therefore, we are then trying to
1118
+ * obtain the Piral instance from npm instead using the known name.
769
1119
  *
770
1120
  * @see
771
1121
  * - [Local File Dependencies](https://stackoverflow.com/questions/14381898/local-dependency-in-package-json)
@@ -802,11 +1152,11 @@ exports.localeFileForUpgradeMissing_0050 = localeFileForUpgradeMissing_0050;
802
1152
  * Right now we only support "latest" for Git resolved Piral instances. In this scenario we obtain the
803
1153
  * current head from the repository's default branch and update accordingly.
804
1154
  *
805
- * Potentially, you wanted to switch / resolve the module from NPM instead. Therefore, we are then trying to
806
- * obtain the Piral instance from NPM instead using the known name.
1155
+ * Potentially, you wanted to switch / resolve the module from npm instead. Therefore, we are then trying to
1156
+ * obtain the Piral instance from npm instead using the known name.
807
1157
  *
808
1158
  * @see
809
- * - [Git Dependencies in NPM](https://medium.com/@jonchurch/use-github-branch-as-dependency-in-package-json-5eb609c81f1a)
1159
+ * - [Git Dependencies in npm](https://medium.com/@jonchurch/use-github-branch-as-dependency-in-package-json-5eb609c81f1a)
810
1160
  *
811
1161
  * @example
812
1162
  * You may have set up the pilet using a locally available tgz file. In this case your original command may
@@ -852,7 +1202,7 @@ exports.gitLatestForUpgradeMissing_0051 = gitLatestForUpgradeMissing_0051;
852
1202
  * - Disk failures
853
1203
  *
854
1204
  * @see
855
- * - [Piral Instance Package Definition](https://docs.piral.io/reference/documentation/metadata#piral-instance---package-definition)
1205
+ * - [Piral Instance Package Definition](https://docs.piral.io/reference/documentation/C21-piral-metadata)
856
1206
  *
857
1207
  * @example
858
1208
  * The primary example hits when a dev dependency was specified that is otherwise not given.
@@ -913,7 +1263,7 @@ exports.cannotResolveVersion_0052 = cannotResolveVersion_0052;
913
1263
  * - Disk failures
914
1264
  *
915
1265
  * @see
916
- * - [Piral Instance Package Definition](https://docs.piral.io/reference/documentation/metadata#piral-instance---package-definition)
1266
+ * - [Piral Instance Package Definition](https://docs.piral.io/reference/documentation/C21-piral-metadata)
917
1267
  *
918
1268
  * @example
919
1269
  * The primary example hits when a dev dependency was specified that is otherwise not given.
@@ -946,9 +1296,14 @@ exports.cannotResolveVersion_0052 = cannotResolveVersion_0052;
946
1296
  * }
947
1297
  * }
948
1298
  * }
1299
+ * ```
949
1300
  */
950
- function cannotResolveDependency_0053(name, rootDir) {
951
- return [types_1.LogLevels.warning, '0053', `Could not resolve "${name}" from "${rootDir}". Taking "latest" version.`];
1301
+ function cannotResolveDependency_0053(names, rootDir) {
1302
+ return [
1303
+ types_1.LogLevels.warning,
1304
+ '0053',
1305
+ `Could not resolve any package (tried "${names.join('", "')}") from "${rootDir}". Taking "latest" version.`,
1306
+ ];
952
1307
  }
953
1308
  exports.cannotResolveDependency_0053 = cannotResolveDependency_0053;
954
1309
  /**
@@ -997,7 +1352,7 @@ exports.missingPiletFeedUrl_0060 = missingPiletFeedUrl_0060;
997
1352
  * directly.
998
1353
  *
999
1354
  * @see
1000
- * - [NPM Pack](https://docs.npmjs.com/cli-commands/pack.html)
1355
+ * - [npm Pack](https://docs.npmjs.com/cli-commands/pack.html)
1001
1356
  *
1002
1357
  * @example
1003
1358
  * Make sure to have build a pilet beforehand:
@@ -1027,8 +1382,8 @@ exports.missingPiletFeedUrl_0060 = missingPiletFeedUrl_0060;
1027
1382
  * Using multiple commands is preferred if you use custom options, otherwise
1028
1383
  * just go for the single command.
1029
1384
  */
1030
- function missingPiletTarball_0061(source) {
1031
- return [types_1.LogLevels.error, '0061', `No files found using pattern "${source}".`];
1385
+ function missingPiletTarball_0061(sources) {
1386
+ return [types_1.LogLevels.error, '0061', `No files found using pattern "${sources.join('", "')}".`];
1032
1387
  }
1033
1388
  exports.missingPiletTarball_0061 = missingPiletTarball_0061;
1034
1389
  /**
@@ -1543,10 +1898,10 @@ exports.entryPointDoesNotExist_0073 = entryPointDoesNotExist_0073;
1543
1898
  * point for the bundler.
1544
1899
  *
1545
1900
  * @see
1546
- * - [NPM Init](https://docs.npmjs.com/cli/init)
1901
+ * - [npm Init](https://docs.npmjs.com/cli/init)
1547
1902
  *
1548
1903
  * @example
1549
- * You can create a new NPM project using the `npm init` command. This will essentially guide
1904
+ * You can create a new npm project using the `npm init` command. This will essentially guide
1550
1905
  * you through a number of decisions for creating a proper package.json.
1551
1906
  *
1552
1907
  * Even better you could start a new Piral instance using the following command:
@@ -1579,10 +1934,10 @@ exports.packageJsonMissing_0074 = packageJsonMissing_0074;
1579
1934
  * point for the bundler.
1580
1935
  *
1581
1936
  * @see
1582
- * - [NPM Init](https://docs.npmjs.com/cli/init)
1937
+ * - [npm Init](https://docs.npmjs.com/cli/init)
1583
1938
  *
1584
1939
  * @example
1585
- * You can create a new NPM project using the `npm init` command. This will essentially guide
1940
+ * You can create a new npm project using the `npm init` command. This will essentially guide
1586
1941
  * you through a number of decisions for creating a proper package.json.
1587
1942
  *
1588
1943
  * Even better you could start a new pilet using the following command:
@@ -1684,6 +2039,67 @@ function entryFileMissing_0077() {
1684
2039
  return [types_1.LogLevels.error, '0077', 'No valid entry file for the pilet found.'];
1685
2040
  }
1686
2041
  exports.entryFileMissing_0077 = entryFileMissing_0077;
2042
+ /**
2043
+ * @kind Warning
2044
+ *
2045
+ * @summary
2046
+ * The Piral instance is not referencing any framework package.
2047
+ *
2048
+ * @abstract
2049
+ * A Piral instance has to reference either `piral-base`, `piral-core`
2050
+ * or the whole `piral` framework package. If none of these dependencies
2051
+ * is found then no framework dependencies can be shared automatically.
2052
+ * Framework dependencies include react and react-router.
2053
+ *
2054
+ * @example
2055
+ * You might use a monorepo where most / all dependencies are declared in
2056
+ * a top-level package.json. Therefore, the package.json of the actual
2057
+ * Piral instance could look like this:
2058
+ *
2059
+ * ```json
2060
+ * {
2061
+ * "name": "my-piral-instance",
2062
+ * "version": "1.0.0",
2063
+ * "app": "./src/index.html",
2064
+ * "pilets": {}
2065
+ * }
2066
+ * ```
2067
+ *
2068
+ * While perfectly valid, this one lacks `dependencies` and `devDependencies`.
2069
+ * Surely, those are not really needed in the described case, but under
2070
+ * those conditions we cannot know what dependencies you may want to share. It
2071
+ * could be that you only reference `piral-base` and therefore don't want to
2072
+ * share anything except `tslib`. Or you use `piral-core` and also share things
2073
+ * like `react` or `react-router-dom`.
2074
+ *
2075
+ * Either way, in order to recognize that you'll need to include the correct
2076
+ * reference:
2077
+ *
2078
+ * ```json
2079
+ * {
2080
+ * "name": "my-piral-instance",
2081
+ * "version": "1.0.0",
2082
+ * "app": "./src/index.html",
2083
+ * "pilets": {},
2084
+ * "dependencies": {
2085
+ * "piral": "latest"
2086
+ * }
2087
+ * }
2088
+ * ```
2089
+ *
2090
+ * If you only want to use `piral-base` or `piral-core` then replace `piral` in
2091
+ * the example above. Also use the version that you'll like to use - `latest`
2092
+ * is just one example.
2093
+ *
2094
+ */
2095
+ function frameworkLibMissing_0078(frameworkLibs) {
2096
+ return [
2097
+ types_1.LogLevels.warning,
2098
+ '0078',
2099
+ `Did not find any reference to either ${frameworkLibs.join(', ')}. No framework dependencies are shared.`,
2100
+ ];
2101
+ }
2102
+ exports.frameworkLibMissing_0078 = frameworkLibMissing_0078;
1687
2103
  /**
1688
2104
  * @kind Error
1689
2105
  *
@@ -1843,6 +2259,26 @@ function toolingIncompatible_0101(piralVersion, cliVersion) {
1843
2259
  ];
1844
2260
  }
1845
2261
  exports.toolingIncompatible_0101 = toolingIncompatible_0101;
2262
+ /**
2263
+ * @kind Info
2264
+ *
2265
+ * @summary
2266
+ * The Piral CLI could not detect the tooling version used by the app shell. Therefore, it may be incompatible to the
2267
+ * currently used version of the piral-cli. Keep an eye on weird errors.
2268
+ *
2269
+ * @abstract
2270
+ * The emulator contains a special section to inform the Piral CLI about the used version of the tooling. This is
2271
+ * important to detect potential alignment or incompatibilities. The used version of the emulator does not contain
2272
+ * this information and therefore may be incompatible.
2273
+ */
2274
+ function appShellMaybeIncompatible_0102(cliVersion) {
2275
+ return [
2276
+ types_1.LogLevels.info,
2277
+ '0100',
2278
+ `The Piral instance's CLI version is unknown and may be incompatible to the used version (${cliVersion}).`,
2279
+ ];
2280
+ }
2281
+ exports.appShellMaybeIncompatible_0102 = appShellMaybeIncompatible_0102;
1846
2282
  /**
1847
2283
  * @kind Error
1848
2284
  *
@@ -1857,7 +2293,7 @@ exports.toolingIncompatible_0101 = toolingIncompatible_0101;
1857
2293
  *
1858
2294
  * @example
1859
2295
  * The following command first removes the output directory, then starts the build,
1860
- * and finally publishes the emulator to NPM.
2296
+ * and finally publishes the emulator to npm.
1861
2297
  *
1862
2298
  * ```sh
1863
2299
  * rm -rf dist
@@ -1883,7 +2319,7 @@ exports.publishDirectoryMissing_0110 = publishDirectoryMissing_0110;
1883
2319
  *
1884
2320
  * @example
1885
2321
  * The following command first removes the output directory, then starts the build,
1886
- * and finally publishes the emulator to NPM.
2322
+ * and finally publishes the emulator to npm.
1887
2323
  *
1888
2324
  * ```sh
1889
2325
  * rm -rf dist
@@ -1899,24 +2335,24 @@ exports.publishEmulatorFilesUnexpected_0111 = publishEmulatorFilesUnexpected_011
1899
2335
  * @kind Error
1900
2336
  *
1901
2337
  * @summary
1902
- * The "xcopy" provider requires a "--fields.target" argument.
2338
+ * The "xcopy" provider requires a "--opts.target" argument.
1903
2339
  *
1904
2340
  * @abstract
1905
2341
  * The `piral publish --type release` command requires the selection of a suitable
1906
2342
  * provider for running successfully. The "xcopy" provider just copies the sources from
1907
2343
  * the output directory (source) to a specified target directory.
1908
2344
  *
1909
- * Make sure to supply the target directory via the `--fields.target` command line flag.
2345
+ * Make sure to supply the target directory via the `--opts.target` command line flag.
1910
2346
  *
1911
2347
  * @example
1912
2348
  * The following command would specify `/temp/dest` as target directory:
1913
2349
  *
1914
2350
  * ```sh
1915
- * piral publish --type release --provider xcopy --fields.target "/temp/dest"
2351
+ * piral publish --type release --provider xcopy --opts.target "/temp/dest"
1916
2352
  * ```
1917
2353
  */
1918
2354
  function publishXcopyMissingTarget_0112() {
1919
- return [types_1.LogLevels.error, '0112', `The "xcopy" provider requires a "--fields.target" argument.`];
2355
+ return [types_1.LogLevels.error, '0112', `The "xcopy" provider requires a "--opts.target" argument.`];
1920
2356
  }
1921
2357
  exports.publishXcopyMissingTarget_0112 = publishXcopyMissingTarget_0112;
1922
2358
  /**
@@ -1939,7 +2375,7 @@ exports.publishXcopyMissingTarget_0112 = publishXcopyMissingTarget_0112;
1939
2375
  * The following command uses the in-built "xcopy" provider for releasing to a local directory.
1940
2376
  *
1941
2377
  * ```sh
1942
- * piral publish --type release --provider xcopy --fields.target "/temp/dest"
2378
+ * piral publish --type release --provider xcopy --opts.target "/temp/dest"
1943
2379
  * ```
1944
2380
  */
1945
2381
  function publishProviderMissing_0113(providerName, availableProviders) {
@@ -1960,15 +2396,75 @@ exports.publishProviderMissing_0113 = publishProviderMissing_0113;
1960
2396
  * The following command uses the in-built "xcopy" provider for releasing to a local directory.
1961
2397
  *
1962
2398
  * ```sh
1963
- * piral publish --type release --provider xcopy --fields.target "/temp/dest"
2399
+ * piral publish --type release --provider xcopy --opts.target "/temp/dest"
1964
2400
  * ```
1965
2401
  *
1966
2402
  * The type is "release".
1967
2403
  */
1968
2404
  function publishEmulatorSourcesInvalid_0114() {
1969
- return [types_1.LogLevels.error, '0114', `The command "publish" cannot be done with "--type emulator-sources". Use another type instead.`];
2405
+ return [
2406
+ types_1.LogLevels.error,
2407
+ '0114',
2408
+ `The command "publish" cannot be done with "--type emulator-sources". Use another type instead.`,
2409
+ ];
1970
2410
  }
1971
2411
  exports.publishEmulatorSourcesInvalid_0114 = publishEmulatorSourcesInvalid_0114;
2412
+ /**
2413
+ * @kind Error
2414
+ *
2415
+ * @summary
2416
+ * The "feed" provider requires a "--opts.url" argument.
2417
+ *
2418
+ * @abstract
2419
+ * The `piral publish --type release` command requires the selection of a suitable
2420
+ * provider for running successfully. The "feed" provider releases the files to
2421
+ * the a Piral Feed Service with the static page feature.
2422
+ *
2423
+ * Make sure to supply the URL for the feed service via the `--opts.url` command
2424
+ * line flag.
2425
+ *
2426
+ * @example
2427
+ * The following command would specify `https://feed.piral.cloud/api/v1/feed/sample/page`
2428
+ * for the feed service:
2429
+ *
2430
+ * ```sh
2431
+ * piral publish --type release --provider feed --opts.url "https://feed.piral.cloud/api/v1/feed/sample/page" --opts.apikey "foobar123"
2432
+ * ```
2433
+ */
2434
+ function publishFeedMissingUrl_0115() {
2435
+ return [types_1.LogLevels.error, '0115', `The "feed" provider requires a "--opts.url" argument.`];
2436
+ }
2437
+ exports.publishFeedMissingUrl_0115 = publishFeedMissingUrl_0115;
2438
+ /**
2439
+ * @kind Error
2440
+ *
2441
+ * @summary
2442
+ * The "feed" provider requires a "--opts.version" argument.
2443
+ *
2444
+ * @abstract
2445
+ * The `piral publish --type release` command requires the selection of a suitable
2446
+ * provider for running successfully. The "feed" provider releases the files to
2447
+ * the a Piral Feed Service with the static page feature.
2448
+ *
2449
+ * Make sure to supply the version either explicitly via the `--opts.version` argument
2450
+ * or implicitly by having the artifacts stored in a sub-directory of the project's root,
2451
+ * which contains a package.json with the version to use.
2452
+ *
2453
+ * @example
2454
+ * The following command would specify version "1.2.3" for the feed service:
2455
+ *
2456
+ * ```sh
2457
+ * piral publish --type release --provider feed --opts.url "..." --opts.apikey "..." --opts.version "1.2.3"
2458
+ * ```
2459
+ */
2460
+ function publishFeedMissingVersion_0116() {
2461
+ return [
2462
+ types_1.LogLevels.error,
2463
+ '0116',
2464
+ `The "feed" provider requires either a "--opts.version" argument or a package.json with a version.`,
2465
+ ];
2466
+ }
2467
+ exports.publishFeedMissingVersion_0116 = publishFeedMissingVersion_0116;
1972
2468
  /**
1973
2469
  * @kind Warning
1974
2470
  *
@@ -1988,7 +2484,7 @@ exports.publishEmulatorSourcesInvalid_0114 = publishEmulatorSourcesInvalid_0114;
1988
2484
  * - The API for opening the default browser is invalid
1989
2485
  *
1990
2486
  * @see
1991
- * - [NPM Open Package](https://www.npmjs.com/package/open)
2487
+ * - [npm Open Package](https://www.npmjs.com/package/open)
1992
2488
  *
1993
2489
  * @example
1994
2490
  * The browser is usually just opened via the command line:
@@ -2012,13 +2508,19 @@ exports.failedToOpenBrowser_0170 = failedToOpenBrowser_0170;
2012
2508
  * the interpretation of compatible feed services slightly and has an impact of the usage
2013
2509
  * of the pilet in the browser.
2014
2510
  *
2015
- * The selected schema version needs to be either "v0" or "v1".
2511
+ * The selected schema version needs to be either "v0", "v1", or "v2".
2016
2512
  *
2017
2513
  * - v0: will download and evaluate the pilet explicitly
2018
- * - v1: will use a script tag for integration of the pilet (default)
2514
+ * - v1: will use a script tag for integration of the pilet
2515
+ * - v2: will use SystemJS for integration of the pilet (default)
2019
2516
  *
2020
2517
  * The v1 version has better support for older browsers, but requires a polyfill to work
2021
- * correctly. This polyfill is part of the standard Piral polyfills.
2518
+ * correctly. This polyfill is part of the `piral-ie11polyfills-utils` package.
2519
+ * Alternatively, use the `currentScript-polyfill` package.
2520
+ *
2521
+ * The v2 version uses a SystemJS format for the pilet. It has the broadest browser support
2522
+ * but requires the custom format as output. Most bundlers support SystemJS directly or
2523
+ * indirectly, making it a quite broad choice.
2022
2524
  *
2023
2525
  * @see
2024
2526
  * - [GitHub currentScript-polyfill](https://github.com/amiller-gh/currentScript-polyfill)
@@ -2043,8 +2545,8 @@ exports.invalidSchemaVersion_0171 = invalidSchemaVersion_0171;
2043
2545
  *
2044
2546
  * @abstract
2045
2547
  * Piral allows you to set up your own tooling for building and debugging. This
2046
- * is a powerful concept. By default, the Webpack bundler is used. Alternatives
2047
- * include Parcel and Rollup.
2548
+ * is a powerful concept. By default, the Webpack v5 bundler is used.
2549
+ * Alternatives include Parcel and Rollup.
2048
2550
  *
2049
2551
  * In case where multiple bundlers are installed the first one is picked. This
2050
2552
  * may not be what you want. In this scenario you can override the selection by
@@ -2055,7 +2557,9 @@ exports.invalidSchemaVersion_0171 = invalidSchemaVersion_0171;
2055
2557
  * @see
2056
2558
  * - [Webpack](https://webpack.js.org)
2057
2559
  * - [Parcel](https://parceljs.org)
2058
- * - [Pluggable bundlers](https://docs.piral.io/reference/documentation/bundlers)
2560
+ * - [esbuild](https://esbuild.github.io)
2561
+ * - [rspack](https://www.rspack.dev/)
2562
+ * - [Pluggable bundlers](https://docs.piral.io/concepts/T02-bundlers)
2059
2563
  *
2060
2564
  * @example
2061
2565
  * Use the following command to make the parcel bundler available:
@@ -2077,8 +2581,8 @@ exports.bundlerMissing_0172 = bundlerMissing_0172;
2077
2581
  *
2078
2582
  * @abstract
2079
2583
  * Piral allows you to set up your own tooling for building and debugging. This
2080
- * is a powerful concept. By default, the Webpack bundler is used. Alternatives
2081
- * include Parcel and Rollup.
2584
+ * is a powerful concept. By default, the Webpack v5 bundler is used.
2585
+ * Alternatives include Parcel and Rollup.
2082
2586
  *
2083
2587
  * In case where no bundler is installed and the default bundler could not be
2084
2588
  * successfully installed this error is shown.
@@ -2086,7 +2590,9 @@ exports.bundlerMissing_0172 = bundlerMissing_0172;
2086
2590
  * @see
2087
2591
  * - [Webpack](https://webpack.js.org)
2088
2592
  * - [Parcel](https://parceljs.org)
2089
- * - [Pluggable bundlers](https://docs.piral.io/reference/documentation/bundlers)
2593
+ * - [esbuild](https://esbuild.github.io)
2594
+ * - [rspack](https://www.rspack.dev/)
2595
+ * - [Pluggable bundlers](https://docs.piral.io/concepts/T02-bundlers)
2090
2596
  *
2091
2597
  * @example
2092
2598
  * Use the following command to make the parcel bundler available:
@@ -2117,7 +2623,9 @@ exports.defaultBundlerMissing_0173 = defaultBundlerMissing_0173;
2117
2623
  * @see
2118
2624
  * - [Webpack](https://webpack.js.org)
2119
2625
  * - [Parcel](https://parceljs.org)
2120
- * - [Pluggable bundlers](https://docs.piral.io/reference/documentation/bundlers)
2626
+ * - [esbuild](https://esbuild.github.io)
2627
+ * - [rspack](https://www.rspack.dev/)
2628
+ * - [Pluggable bundlers](https://docs.piral.io/concepts/T02-bundlers)
2121
2629
  *
2122
2630
  * @example
2123
2631
  * Use the following command to make the parcel bundler available:
@@ -2138,8 +2646,8 @@ exports.bundlingFailed_0174 = bundlingFailed_0174;
2138
2646
  *
2139
2647
  * @abstract
2140
2648
  * Piral allows you to set up your own tooling for building and debugging. This
2141
- * is a powerful concept. By default, the Webpack bundler is used. Alternatives
2142
- * include Parcel and Rollup.
2649
+ * is a powerful concept. By default, the Webpack v5 bundler is used.
2650
+ * Alternatives include Parcel and Rollup.
2143
2651
  *
2144
2652
  * In case where multiple bundlers are installed the first one is picked. This
2145
2653
  * may not be what you want. In this scenario you can explicitly set the bundler
@@ -2150,7 +2658,7 @@ exports.bundlingFailed_0174 = bundlingFailed_0174;
2150
2658
  * dependent we recommend setting the bundler explicitly.
2151
2659
  *
2152
2660
  * @see
2153
- * - [Pluggable bundlers](https://docs.piral.io/reference/documentation/bundlers)
2661
+ * - [Pluggable bundlers](https://docs.piral.io/concepts/T02-bundlers)
2154
2662
  *
2155
2663
  * @example
2156
2664
  * Use the following command to explicitly choose the Parcel bundler:
@@ -2168,6 +2676,85 @@ function bundlerUnspecified_0175(available) {
2168
2676
  ];
2169
2677
  }
2170
2678
  exports.bundlerUnspecified_0175 = bundlerUnspecified_0175;
2679
+ /**
2680
+ * @kind Warning
2681
+ *
2682
+ * @summary
2683
+ * No bundler has been installed yet.
2684
+ *
2685
+ * @abstract
2686
+ * Piral allows you to set up your own tooling for building and debugging. This
2687
+ * is a powerful concept. By default, the Webpack v5 bundler is used.
2688
+ * Alternatives include Parcel and Rollup.
2689
+ *
2690
+ * In case no bundler is yet installed the Piral CLI will automatically install
2691
+ * the default bundler. However, you should consider installing a bundler of your
2692
+ * choice (even if this could also be the default bundler) explicitly.
2693
+ *
2694
+ * @see
2695
+ * - [Pluggable bundlers](https://docs.piral.io/concepts/T02-bundlers)
2696
+ *
2697
+ * @example
2698
+ * Use the following command to install esbuild as a bundler with the npm client:
2699
+ *
2700
+ * ```sh
2701
+ * npm i piral-cli-esbuild --save-dev
2702
+ * ```
2703
+ */
2704
+ function bundlerNotInstalled_0176() {
2705
+ return [types_1.LogLevels.warning, '0176', `Installing default bundler since no bundler has been found.`];
2706
+ }
2707
+ exports.bundlerNotInstalled_0176 = bundlerNotInstalled_0176;
2708
+ /**
2709
+ * @kind Warning
2710
+ *
2711
+ * @summary
2712
+ * No pilet.json has been found.
2713
+ *
2714
+ * @abstract
2715
+ * For some functionality such as multi Piral instance support when debugging
2716
+ * a pilet, a special file called pilet.json is required. While this file is
2717
+ * optional in general, it must be available for certain tasks such as adding
2718
+ * or removing a Piral instance for debugging purposes.
2719
+ *
2720
+ * @see
2721
+ * - [Pluggable bundlers](https://docs.piral.io/concepts/T02-bundlers)
2722
+ *
2723
+ * @example
2724
+ * If no pilet.json is yet available you can create one. It should be adjacent to
2725
+ * the package.json of your pilet, even though different locations are also possible.
2726
+ * By default, the following content can be used for an empty file:
2727
+ *
2728
+ * ```json
2729
+ * {
2730
+ * "$schema": "https://docs.piral.io/schemas/pilet-v0.json"
2731
+ * }
2732
+ * ```
2733
+ */
2734
+ function piletJsonNotAvailable_0180(root) {
2735
+ return [types_1.LogLevels.warning, '0180', `No "pilet.json" was found for the pilet at "${root}".`];
2736
+ }
2737
+ exports.piletJsonNotAvailable_0180 = piletJsonNotAvailable_0180;
2738
+ /**
2739
+ * @kind Error
2740
+ *
2741
+ * @summary
2742
+ * Using the given platform is not supported.
2743
+ *
2744
+ * @abstract
2745
+ * The Piral instance can run on multiple platforms. The platform is specified via
2746
+ * the piral.json file.
2747
+ *
2748
+ * The standard platform is "web", which starts a web server using the server
2749
+ * proxy kras.
2750
+ *
2751
+ * @example
2752
+ * (tbd)
2753
+ */
2754
+ function platformNotSupported_0190(platform) {
2755
+ return [types_1.LogLevels.error, '0190', `The given platform "${platform}" is not supported.`];
2756
+ }
2757
+ exports.platformNotSupported_0190 = platformNotSupported_0190;
2171
2758
  /**
2172
2759
  * @kind Warning
2173
2760
  *