@ms-cloudpack/cli 0.37.9 → 0.38.1

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 (106) hide show
  1. package/lib/commands/bundle/bundle.d.ts +1 -1
  2. package/lib/commands/bundle/bundle.d.ts.map +1 -1
  3. package/lib/commands/bundle/bundle.js.map +1 -1
  4. package/lib/commands/bundle/index.js.map +1 -1
  5. package/lib/commands/bundle/{types.d.ts → types/BundleOptions.d.ts} +1 -1
  6. package/lib/commands/bundle/types/BundleOptions.d.ts.map +1 -0
  7. package/lib/commands/bundle/types/BundleOptions.js +2 -0
  8. package/lib/commands/bundle/types/BundleOptions.js.map +1 -0
  9. package/lib/commands/init/getImportsFromBundle.js.map +1 -1
  10. package/lib/commands/init/index.js.map +1 -1
  11. package/lib/commands/init/init.d.ts +1 -1
  12. package/lib/commands/init/init.d.ts.map +1 -1
  13. package/lib/commands/init/init.js.map +1 -1
  14. package/lib/commands/init/{types.d.ts → types/InitOptions.d.ts} +1 -1
  15. package/lib/commands/init/types/InitOptions.d.ts.map +1 -0
  16. package/lib/commands/init/types/InitOptions.js +2 -0
  17. package/lib/commands/init/types/InitOptions.js.map +1 -0
  18. package/lib/commands/start/appServer/createRoutes.d.ts +1 -1
  19. package/lib/commands/start/appServer/createRoutes.d.ts.map +1 -1
  20. package/lib/commands/start/appServer/createRoutes.js.map +1 -1
  21. package/lib/commands/start/appServer/getDefaultHtmlResponse.d.ts +2 -1
  22. package/lib/commands/start/appServer/getDefaultHtmlResponse.d.ts.map +1 -1
  23. package/lib/commands/start/appServer/getDefaultHtmlResponse.js.map +1 -1
  24. package/lib/commands/start/appServer/getHtmlResponse.d.ts +2 -1
  25. package/lib/commands/start/appServer/getHtmlResponse.d.ts.map +1 -1
  26. package/lib/commands/start/appServer/getHtmlResponse.js.map +1 -1
  27. package/lib/commands/start/appServer/startAppServer.d.ts +1 -1
  28. package/lib/commands/start/appServer/startAppServer.d.ts.map +1 -1
  29. package/lib/commands/start/appServer/startAppServer.js.map +1 -1
  30. package/lib/commands/start/createBundleRequestForPackage.d.ts +1 -1
  31. package/lib/commands/start/createBundleRequestForPackage.d.ts.map +1 -1
  32. package/lib/commands/start/createBundleRequestForPackage.js.map +1 -1
  33. package/lib/commands/start/createBundleTask.d.ts +2 -1
  34. package/lib/commands/start/createBundleTask.d.ts.map +1 -1
  35. package/lib/commands/start/createBundleTask.js.map +1 -1
  36. package/lib/commands/start/index.js +1 -1
  37. package/lib/commands/start/index.js.map +1 -1
  38. package/lib/commands/start/mergeFeatures.d.ts +9 -0
  39. package/lib/commands/start/mergeFeatures.d.ts.map +1 -0
  40. package/lib/commands/start/mergeFeatures.js +14 -0
  41. package/lib/commands/start/mergeFeatures.js.map +1 -0
  42. package/lib/commands/start/start.d.ts +1 -1
  43. package/lib/commands/start/start.d.ts.map +1 -1
  44. package/lib/commands/start/start.js +17 -2
  45. package/lib/commands/start/start.js.map +1 -1
  46. package/lib/commands/start/startBundleServer.d.ts +2 -5
  47. package/lib/commands/start/startBundleServer.d.ts.map +1 -1
  48. package/lib/commands/start/startBundleServer.js +5 -4
  49. package/lib/commands/start/startBundleServer.js.map +1 -1
  50. package/lib/commands/start/{types.d.ts → types/StartOptions.d.ts} +2 -2
  51. package/lib/commands/start/types/StartOptions.d.ts.map +1 -0
  52. package/lib/commands/start/types/StartOptions.js +2 -0
  53. package/lib/commands/start/types/StartOptions.js.map +1 -0
  54. package/lib/index.d.ts +8 -1
  55. package/lib/index.d.ts.map +1 -1
  56. package/lib/index.js.map +1 -1
  57. package/lib/tasks/bundleTask.d.ts +2 -1
  58. package/lib/tasks/bundleTask.d.ts.map +1 -1
  59. package/lib/tasks/bundleTask.js.map +1 -1
  60. package/lib/tsdoc-metadata.json +1 -1
  61. package/lib/types/BundleRequest.d.ts +24 -0
  62. package/lib/types/BundleRequest.d.ts.map +1 -0
  63. package/lib/types/BundleRequest.js +2 -0
  64. package/lib/types/BundleRequest.js.map +1 -0
  65. package/lib/types/BundleServer.d.ts +6 -0
  66. package/lib/types/BundleServer.d.ts.map +1 -0
  67. package/lib/types/BundleServer.js +2 -0
  68. package/lib/types/BundleServer.js.map +1 -0
  69. package/lib/types/BundleTaskOptions.d.ts +4 -0
  70. package/lib/types/BundleTaskOptions.d.ts.map +1 -0
  71. package/lib/types/BundleTaskOptions.js +2 -0
  72. package/lib/types/BundleTaskOptions.js.map +1 -0
  73. package/lib/types/CreateHtmlFunction.d.ts +7 -0
  74. package/lib/types/CreateHtmlFunction.d.ts.map +1 -0
  75. package/lib/types/CreateHtmlFunction.js +2 -0
  76. package/lib/types/CreateHtmlFunction.js.map +1 -0
  77. package/lib/types/CreateHtmlOptions.d.ts +18 -0
  78. package/lib/types/CreateHtmlOptions.d.ts.map +1 -0
  79. package/lib/types/CreateHtmlOptions.js +2 -0
  80. package/lib/types/CreateHtmlOptions.js.map +1 -0
  81. package/lib/types/CreateHtmlResult.d.ts +8 -0
  82. package/lib/types/CreateHtmlResult.d.ts.map +1 -0
  83. package/lib/types/CreateHtmlResult.js +2 -0
  84. package/lib/types/CreateHtmlResult.js.map +1 -0
  85. package/lib/types/CreateHtmlScript.d.ts +8 -0
  86. package/lib/types/CreateHtmlScript.d.ts.map +1 -0
  87. package/lib/types/CreateHtmlScript.js +2 -0
  88. package/lib/types/CreateHtmlScript.js.map +1 -0
  89. package/lib/types/Watcher.d.ts +5 -0
  90. package/lib/types/Watcher.d.ts.map +1 -0
  91. package/lib/types/Watcher.js +2 -0
  92. package/lib/types/Watcher.js.map +1 -0
  93. package/package.json +7 -7
  94. package/lib/commands/bundle/types.d.ts.map +0 -1
  95. package/lib/commands/bundle/types.js +0 -2
  96. package/lib/commands/bundle/types.js.map +0 -1
  97. package/lib/commands/init/types.d.ts.map +0 -1
  98. package/lib/commands/init/types.js +0 -2
  99. package/lib/commands/init/types.js.map +0 -1
  100. package/lib/commands/start/types.d.ts.map +0 -1
  101. package/lib/commands/start/types.js +0 -2
  102. package/lib/commands/start/types.js.map +0 -1
  103. package/lib/types.d.ts +0 -68
  104. package/lib/types.d.ts.map +0 -1
  105. package/lib/types.js +0 -2
  106. package/lib/types.js.map +0 -1
package/lib/types.d.ts DELETED
@@ -1,68 +0,0 @@
1
- import type { ImportMap } from '@ms-cloudpack/package-utilities';
2
- import type { BundleResult, PackageJson, PackageDefinitionsCache } from '@ms-cloudpack/bundler-types';
3
- import type { Route } from '@ms-cloudpack/config';
4
- import type { Session } from '@ms-cloudpack/api-server';
5
- /**
6
- * Tracks a given bundle request and its result.
7
- */
8
- export interface BundleRequest {
9
- id: string;
10
- packageName: string;
11
- version: string;
12
- packagePath: string;
13
- outputPath: string;
14
- isExternal: boolean;
15
- bundlerType?: string;
16
- result?: BundleResult & {
17
- dependencies?: string[];
18
- hash?: string;
19
- };
20
- resultFromCache?: boolean;
21
- isRebuildRequired?: boolean;
22
- disableSourceMaps?: boolean;
23
- enableFindImports?: boolean;
24
- enableCacheInternalPackages?: boolean;
25
- packages?: PackageDefinitionsCache;
26
- }
27
- export interface BundleTaskOptions {
28
- force?: boolean;
29
- }
30
- export interface BundleServer {
31
- url: string;
32
- port: number;
33
- close: () => Promise<void>;
34
- }
35
- export interface Watcher {
36
- watch: (bundleRequest: BundleRequest) => void;
37
- }
38
- /**
39
- * The input options for a createHtml custom server render function.
40
- */
41
- export type CreateHtmlOptions = {
42
- session: Session;
43
- route: Route;
44
- baseUrl: string;
45
- definition: PackageJson;
46
- importMap: ImportMap;
47
- overlayScript: string | undefined;
48
- entryScript: string | undefined;
49
- inlineScripts: string[];
50
- };
51
- /**
52
- * The expected result of the createHtml custom server render function.
53
- */
54
- export type CreateHtmlResult = string | {
55
- html: string;
56
- statusCode: number;
57
- };
58
- /**
59
- * A custom server render function that can be used to override the default HTML response.
60
- */
61
- export type CreateHtmlFunction = (options: CreateHtmlOptions) => Promise<CreateHtmlResult> | CreateHtmlResult;
62
- /**
63
- * The expected shape of the createHtml custom server render function script.
64
- */
65
- export type CreateHtmlScript = {
66
- default: CreateHtmlFunction;
67
- };
68
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtG,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,YAAY,GAAG;QAAE,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACnE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,QAAQ,CAAC,EAAE,uBAAuB,CAAC;CACpC;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5B;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,CAAC,aAAa,EAAE,aAAa,KAAK,IAAI,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,WAAW,CAAC;IACxB,SAAS,EAAE,SAAS,CAAC;IACrB,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GACxB,MAAM,GACN;IACE,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEN;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,gBAAgB,CAAC,GAAG,gBAAgB,CAAC;AAE9G;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAAE,OAAO,EAAE,kBAAkB,CAAA;CAAE,CAAC"}
package/lib/types.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
package/lib/types.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ImportMap } from '@ms-cloudpack/package-utilities';\nimport type { BundleResult, PackageJson, PackageDefinitionsCache } from '@ms-cloudpack/bundler-types';\nimport type { Route } from '@ms-cloudpack/config';\nimport type { Session } from '@ms-cloudpack/api-server';\n\n/**\n * Tracks a given bundle request and its result.\n */\nexport interface BundleRequest {\n id: string;\n packageName: string;\n version: string;\n packagePath: string;\n outputPath: string;\n isExternal: boolean;\n bundlerType?: string;\n result?: BundleResult & { dependencies?: string[]; hash?: string };\n resultFromCache?: boolean;\n isRebuildRequired?: boolean;\n disableSourceMaps?: boolean;\n enableFindImports?: boolean;\n enableCacheInternalPackages?: boolean;\n packages?: PackageDefinitionsCache;\n}\n\nexport interface BundleTaskOptions {\n force?: boolean;\n}\n\nexport interface BundleServer {\n url: string;\n port: number;\n close: () => Promise<void>;\n}\n\nexport interface Watcher {\n watch: (bundleRequest: BundleRequest) => void;\n}\n\n/**\n * The input options for a createHtml custom server render function.\n */\nexport type CreateHtmlOptions = {\n session: Session;\n route: Route;\n baseUrl: string;\n definition: PackageJson;\n importMap: ImportMap;\n overlayScript: string | undefined;\n entryScript: string | undefined;\n inlineScripts: string[];\n};\n\n/**\n * The expected result of the createHtml custom server render function.\n */\nexport type CreateHtmlResult =\n | string\n | {\n html: string;\n statusCode: number;\n };\n\n/**\n * A custom server render function that can be used to override the default HTML response.\n */\nexport type CreateHtmlFunction = (options: CreateHtmlOptions) => Promise<CreateHtmlResult> | CreateHtmlResult;\n\n/**\n * The expected shape of the createHtml custom server render function script.\n */\nexport type CreateHtmlScript = { default: CreateHtmlFunction };\n"]}