@xylabs/ts-scripts-react-yarn3 2.19.9 → 2.19.10

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 (198) hide show
  1. package/dist/actions/analyze.js +32 -0
  2. package/dist/actions/analyze.js.map +1 -0
  3. package/dist/actions/analyze.mjs +8 -0
  4. package/dist/actions/analyze.mjs.map +1 -0
  5. package/dist/actions/build-ci.js +38 -0
  6. package/dist/actions/build-ci.js.map +1 -0
  7. package/dist/actions/build-ci.mjs +14 -0
  8. package/dist/actions/build-ci.mjs.map +1 -0
  9. package/dist/actions/build.js +36 -0
  10. package/dist/actions/build.js.map +1 -0
  11. package/dist/actions/build.mjs +12 -0
  12. package/dist/actions/build.mjs.map +1 -0
  13. package/dist/actions/eject.js +33 -0
  14. package/dist/actions/eject.js.map +1 -0
  15. package/dist/actions/eject.mjs +9 -0
  16. package/dist/actions/eject.mjs.map +1 -0
  17. package/dist/actions/index.js +39 -0
  18. package/dist/actions/index.js.map +1 -0
  19. package/dist/actions/index.mjs +10 -0
  20. package/dist/actions/index.mjs.map +1 -0
  21. package/dist/actions/package/compile.js +43 -0
  22. package/dist/actions/package/compile.js.map +1 -0
  23. package/dist/actions/package/compile.mjs +18 -0
  24. package/dist/actions/package/compile.mjs.map +1 -0
  25. package/dist/actions/package/index.js +23 -0
  26. package/dist/actions/package/index.js.map +1 -0
  27. package/dist/actions/package/index.mjs +2 -0
  28. package/dist/actions/package/index.mjs.map +1 -0
  29. package/dist/actions/rebuild.js +35 -0
  30. package/dist/actions/rebuild.js.map +1 -0
  31. package/dist/actions/rebuild.mjs +11 -0
  32. package/dist/actions/rebuild.mjs.map +1 -0
  33. package/dist/actions/sitemap.js +33 -0
  34. package/dist/actions/sitemap.js.map +1 -0
  35. package/dist/actions/sitemap.mjs +9 -0
  36. package/dist/actions/sitemap.mjs.map +1 -0
  37. package/dist/actions/start.js +33 -0
  38. package/dist/actions/start.js.map +1 -0
  39. package/dist/actions/start.mjs +9 -0
  40. package/dist/actions/start.mjs.map +1 -0
  41. package/dist/actions/test.js +33 -0
  42. package/dist/actions/test.js.map +1 -0
  43. package/dist/actions/test.mjs +9 -0
  44. package/dist/actions/test.mjs.map +1 -0
  45. package/dist/bin/analyze.js +5 -0
  46. package/dist/bin/analyze.js.map +1 -0
  47. package/dist/bin/analyze.mjs +4 -0
  48. package/dist/bin/analyze.mjs.map +1 -0
  49. package/dist/bin/build-ci.js +5 -0
  50. package/dist/bin/build-ci.js.map +1 -0
  51. package/dist/bin/build-ci.mjs +4 -0
  52. package/dist/bin/build-ci.mjs.map +1 -0
  53. package/dist/bin/build.js +5 -0
  54. package/dist/bin/build.js.map +1 -0
  55. package/dist/bin/build.mjs +4 -0
  56. package/dist/bin/build.mjs.map +1 -0
  57. package/dist/bin/clean.js +5 -0
  58. package/dist/bin/clean.js.map +1 -0
  59. package/dist/bin/clean.mjs +4 -0
  60. package/dist/bin/clean.mjs.map +1 -0
  61. package/dist/bin/compile.js +5 -0
  62. package/dist/bin/compile.js.map +1 -0
  63. package/dist/bin/compile.mjs +4 -0
  64. package/dist/bin/compile.mjs.map +1 -0
  65. package/dist/bin/cycle.js +5 -0
  66. package/dist/bin/cycle.js.map +1 -0
  67. package/dist/bin/cycle.mjs +4 -0
  68. package/dist/bin/cycle.mjs.map +1 -0
  69. package/dist/bin/dead.js +5 -0
  70. package/dist/bin/dead.js.map +1 -0
  71. package/dist/bin/dead.mjs +4 -0
  72. package/dist/bin/dead.mjs.map +1 -0
  73. package/dist/bin/deps.js +5 -0
  74. package/dist/bin/deps.js.map +1 -0
  75. package/dist/bin/deps.mjs +4 -0
  76. package/dist/bin/deps.mjs.map +1 -0
  77. package/dist/bin/eject.js +5 -0
  78. package/dist/bin/eject.js.map +1 -0
  79. package/dist/bin/eject.mjs +4 -0
  80. package/dist/bin/eject.mjs.map +1 -0
  81. package/dist/bin/fix.js +5 -0
  82. package/dist/bin/fix.js.map +1 -0
  83. package/dist/bin/fix.mjs +4 -0
  84. package/dist/bin/fix.mjs.map +1 -0
  85. package/dist/bin/gitlint-fix.js +5 -0
  86. package/dist/bin/gitlint-fix.js.map +1 -0
  87. package/dist/bin/gitlint-fix.mjs +4 -0
  88. package/dist/bin/gitlint-fix.mjs.map +1 -0
  89. package/dist/bin/gitlint.js +5 -0
  90. package/dist/bin/gitlint.js.map +1 -0
  91. package/dist/bin/gitlint.mjs +4 -0
  92. package/dist/bin/gitlint.mjs.map +1 -0
  93. package/dist/bin/license.js +5 -0
  94. package/dist/bin/license.js.map +1 -0
  95. package/dist/bin/license.mjs +4 -0
  96. package/dist/bin/license.mjs.map +1 -0
  97. package/dist/bin/lint-clean.js +5 -0
  98. package/dist/bin/lint-clean.js.map +1 -0
  99. package/dist/bin/lint-clean.mjs +4 -0
  100. package/dist/bin/lint-clean.mjs.map +1 -0
  101. package/dist/bin/lint-fast.js +5 -0
  102. package/dist/bin/lint-fast.js.map +1 -0
  103. package/dist/bin/lint-fast.mjs +4 -0
  104. package/dist/bin/lint-fast.mjs.map +1 -0
  105. package/dist/bin/lint-profile.js +5 -0
  106. package/dist/bin/lint-profile.js.map +1 -0
  107. package/dist/bin/lint-profile.mjs +4 -0
  108. package/dist/bin/lint-profile.mjs.map +1 -0
  109. package/dist/bin/lint.js +5 -0
  110. package/dist/bin/lint.js.map +1 -0
  111. package/dist/bin/lint.mjs +4 -0
  112. package/dist/bin/lint.mjs.map +1 -0
  113. package/dist/bin/package/clean.js +5 -0
  114. package/dist/bin/package/clean.js.map +1 -0
  115. package/dist/bin/package/clean.mjs +4 -0
  116. package/dist/bin/package/clean.mjs.map +1 -0
  117. package/dist/bin/package/compile.js +5 -0
  118. package/dist/bin/package/compile.js.map +1 -0
  119. package/dist/bin/package/compile.mjs +4 -0
  120. package/dist/bin/package/compile.mjs.map +1 -0
  121. package/dist/bin/package/deps.js +5 -0
  122. package/dist/bin/package/deps.js.map +1 -0
  123. package/dist/bin/package/deps.mjs +4 -0
  124. package/dist/bin/package/deps.mjs.map +1 -0
  125. package/dist/bin/rebuild.js +5 -0
  126. package/dist/bin/rebuild.js.map +1 -0
  127. package/dist/bin/rebuild.mjs +4 -0
  128. package/dist/bin/rebuild.mjs.map +1 -0
  129. package/dist/bin/reinstall.js +5 -0
  130. package/dist/bin/reinstall.js.map +1 -0
  131. package/dist/bin/reinstall.mjs +4 -0
  132. package/dist/bin/reinstall.mjs.map +1 -0
  133. package/dist/bin/relint.js +5 -0
  134. package/dist/bin/relint.js.map +1 -0
  135. package/dist/bin/relint.mjs +4 -0
  136. package/dist/bin/relint.mjs.map +1 -0
  137. package/dist/bin/sitemap.js +5 -0
  138. package/dist/bin/sitemap.js.map +1 -0
  139. package/dist/bin/sitemap.mjs +4 -0
  140. package/dist/bin/sitemap.mjs.map +1 -0
  141. package/dist/bin/sonar.js +5 -0
  142. package/dist/bin/sonar.js.map +1 -0
  143. package/dist/bin/sonar.mjs +4 -0
  144. package/dist/bin/sonar.mjs.map +1 -0
  145. package/dist/bin/start.js +5 -0
  146. package/dist/bin/start.js.map +1 -0
  147. package/dist/bin/start.mjs +4 -0
  148. package/dist/bin/start.mjs.map +1 -0
  149. package/dist/bin/test.js +5 -0
  150. package/dist/bin/test.js.map +1 -0
  151. package/dist/bin/test.mjs +4 -0
  152. package/dist/bin/test.mjs.map +1 -0
  153. package/dist/bin/tsconfig-gen-clean.js +5 -0
  154. package/dist/bin/tsconfig-gen-clean.js.map +1 -0
  155. package/dist/bin/tsconfig-gen-clean.mjs +4 -0
  156. package/dist/bin/tsconfig-gen-clean.mjs.map +1 -0
  157. package/dist/bin/tsconfig-gen.js +5 -0
  158. package/dist/bin/tsconfig-gen.js.map +1 -0
  159. package/dist/bin/tsconfig-gen.mjs +4 -0
  160. package/dist/bin/tsconfig-gen.mjs.map +1 -0
  161. package/dist/bin/up.js +5 -0
  162. package/dist/bin/up.js.map +1 -0
  163. package/dist/bin/up.mjs +4 -0
  164. package/dist/bin/up.mjs.map +1 -0
  165. package/dist/bin/updo.js +5 -0
  166. package/dist/bin/updo.js.map +1 -0
  167. package/dist/bin/updo.mjs +4 -0
  168. package/dist/bin/updo.mjs.map +1 -0
  169. package/dist/bin/xy.js +5 -0
  170. package/dist/bin/xy.js.map +1 -0
  171. package/dist/bin/xy.mjs +4 -0
  172. package/dist/bin/xy.mjs.map +1 -0
  173. package/dist/bin/yarn3only.js +5 -0
  174. package/dist/bin/yarn3only.js.map +1 -0
  175. package/dist/bin/yarn3only.mjs +4 -0
  176. package/dist/bin/yarn3only.mjs.map +1 -0
  177. package/dist/index.d.mts +34 -0
  178. package/dist/index.d.ts +34 -0
  179. package/dist/index.js +25 -0
  180. package/dist/index.js.map +1 -0
  181. package/dist/index.mjs +3 -0
  182. package/dist/index.mjs.map +1 -0
  183. package/dist/lib/index.js +25 -0
  184. package/dist/lib/index.js.map +1 -0
  185. package/dist/lib/index.mjs +3 -0
  186. package/dist/lib/index.mjs.map +1 -0
  187. package/dist/lib/xyReact.js +93 -0
  188. package/dist/lib/xyReact.js.map +1 -0
  189. package/dist/lib/xyReact.mjs +59 -0
  190. package/dist/lib/xyReact.mjs.map +1 -0
  191. package/dist/lib/xyReactBuildCommands.js +92 -0
  192. package/dist/lib/xyReactBuildCommands.js.map +1 -0
  193. package/dist/lib/xyReactBuildCommands.mjs +68 -0
  194. package/dist/lib/xyReactBuildCommands.mjs.map +1 -0
  195. package/package.json +29 -17
  196. package/src/index.ts +2 -0
  197. package/tsconfig.json +1 -3
  198. package/tsup.config.ts +16 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/bin/tsconfig-gen.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { runXyWithWarning } from '@xylabs/ts-scripts-yarn3'\n\nrunXyWithWarning('tsconfig-gen')\n"],"mappings":";AAEA,SAAS,wBAAwB;AAEjC,iBAAiB,cAAc;","names":[]}
package/dist/bin/up.js ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ var import_ts_scripts_yarn3 = require("@xylabs/ts-scripts-yarn3");
4
+ (0, import_ts_scripts_yarn3.runXyWithWarning)("up");
5
+ //# sourceMappingURL=up.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/bin/up.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { runXyWithWarning } from '@xylabs/ts-scripts-yarn3'\n\nrunXyWithWarning('up')"],"mappings":";;AAEA,8BAAiC;AAAA,IAEjC,0CAAiB,IAAI;","names":[]}
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import { runXyWithWarning } from "@xylabs/ts-scripts-yarn3";
3
+ runXyWithWarning("up");
4
+ //# sourceMappingURL=up.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/bin/up.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { runXyWithWarning } from '@xylabs/ts-scripts-yarn3'\n\nrunXyWithWarning('up')"],"mappings":";AAEA,SAAS,wBAAwB;AAEjC,iBAAiB,IAAI;","names":[]}
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ var import_ts_scripts_yarn3 = require("@xylabs/ts-scripts-yarn3");
4
+ (0, import_ts_scripts_yarn3.runXyWithWarning)("updo");
5
+ //# sourceMappingURL=updo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/bin/updo.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { runXyWithWarning } from '@xylabs/ts-scripts-yarn3'\n\nrunXyWithWarning('updo')"],"mappings":";;AAEA,8BAAiC;AAAA,IAEjC,0CAAiB,MAAM;","names":[]}
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import { runXyWithWarning } from "@xylabs/ts-scripts-yarn3";
3
+ runXyWithWarning("updo");
4
+ //# sourceMappingURL=updo.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/bin/updo.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { runXyWithWarning } from '@xylabs/ts-scripts-yarn3'\n\nrunXyWithWarning('updo')"],"mappings":";AAEA,SAAS,wBAAwB;AAEjC,iBAAiB,MAAM;","names":[]}
package/dist/bin/xy.js ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ var import_lib = require("../lib");
4
+ (0, import_lib.xyReact)();
5
+ //# sourceMappingURL=xy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/bin/xy.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { xyReact } from '../lib'\n\nxyReact()"],"mappings":";;AAEA,iBAAwB;AAAA,IAExB,oBAAQ;","names":[]}
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import { xyReact } from "../lib";
3
+ xyReact();
4
+ //# sourceMappingURL=xy.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/bin/xy.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { xyReact } from '../lib'\n\nxyReact()"],"mappings":";AAEA,SAAS,eAAe;AAExB,QAAQ;","names":[]}
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ var import_ts_scripts_yarn3 = require("@xylabs/ts-scripts-yarn3");
4
+ (0, import_ts_scripts_yarn3.runXyWithWarning)("yarn3only");
5
+ //# sourceMappingURL=yarn3only.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/bin/yarn3only.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { runXyWithWarning } from '@xylabs/ts-scripts-yarn3'\n\nrunXyWithWarning('yarn3only')"],"mappings":";;AAEA,8BAAiC;AAAA,IAEjC,0CAAiB,WAAW;","names":[]}
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import { runXyWithWarning } from "@xylabs/ts-scripts-yarn3";
3
+ runXyWithWarning("yarn3only");
4
+ //# sourceMappingURL=yarn3only.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/bin/yarn3only.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { runXyWithWarning } from '@xylabs/ts-scripts-yarn3'\n\nrunXyWithWarning('yarn3only')"],"mappings":";AAEA,SAAS,wBAAwB;AAEjC,iBAAiB,WAAW;","names":[]}
@@ -0,0 +1,34 @@
1
+ import yargs from 'yargs';
2
+
3
+ declare const analyze: () => number;
4
+
5
+ declare const build: () => number;
6
+
7
+ declare const buildci: () => number;
8
+
9
+ declare const eject: () => number;
10
+
11
+ declare const packageCompile: () => number;
12
+ declare const packageCompileAsync: () => Promise<number>;
13
+
14
+ declare const rebuild: () => number;
15
+
16
+ declare const sitemap: () => number;
17
+
18
+ declare const start: () => number;
19
+
20
+ declare const test: () => number;
21
+
22
+ declare const xyReact: () => {
23
+ [x: string]: unknown;
24
+ _: (string | number)[];
25
+ $0: string;
26
+ } | Promise<{
27
+ [x: string]: unknown;
28
+ _: (string | number)[];
29
+ $0: string;
30
+ }>;
31
+
32
+ declare const xyReactBuildCommands: (args: yargs.Argv) => yargs.Argv<{}>;
33
+
34
+ export { analyze, build, buildci, eject, packageCompile, packageCompileAsync, rebuild, sitemap, start, test, xyReact, xyReactBuildCommands };
@@ -0,0 +1,34 @@
1
+ import yargs from 'yargs';
2
+
3
+ declare const analyze: () => number;
4
+
5
+ declare const build: () => number;
6
+
7
+ declare const buildci: () => number;
8
+
9
+ declare const eject: () => number;
10
+
11
+ declare const packageCompile: () => number;
12
+ declare const packageCompileAsync: () => Promise<number>;
13
+
14
+ declare const rebuild: () => number;
15
+
16
+ declare const sitemap: () => number;
17
+
18
+ declare const start: () => number;
19
+
20
+ declare const test: () => number;
21
+
22
+ declare const xyReact: () => {
23
+ [x: string]: unknown;
24
+ _: (string | number)[];
25
+ $0: string;
26
+ } | Promise<{
27
+ [x: string]: unknown;
28
+ _: (string | number)[];
29
+ $0: string;
30
+ }>;
31
+
32
+ declare const xyReactBuildCommands: (args: yargs.Argv) => yargs.Argv<{}>;
33
+
34
+ export { analyze, build, buildci, eject, packageCompile, packageCompileAsync, rebuild, sitemap, start, test, xyReact, xyReactBuildCommands };
package/dist/index.js ADDED
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
+ var src_exports = {};
17
+ module.exports = __toCommonJS(src_exports);
18
+ __reExport(src_exports, require("./actions"), module.exports);
19
+ __reExport(src_exports, require("./lib"), module.exports);
20
+ // Annotate the CommonJS export names for ESM import in node:
21
+ 0 && (module.exports = {
22
+ ...require("./actions"),
23
+ ...require("./lib")
24
+ });
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './actions'\nexport * from './lib'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,sBAAd;AACA,wBAAc,kBADd;","names":[]}
package/dist/index.mjs ADDED
@@ -0,0 +1,3 @@
1
+ export * from "./actions";
2
+ export * from "./lib";
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './actions'\nexport * from './lib'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;","names":[]}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
+ var lib_exports = {};
17
+ module.exports = __toCommonJS(lib_exports);
18
+ __reExport(lib_exports, require("./xyReact"), module.exports);
19
+ __reExport(lib_exports, require("./xyReactBuildCommands"), module.exports);
20
+ // Annotate the CommonJS export names for ESM import in node:
21
+ 0 && (module.exports = {
22
+ ...require("./xyReact"),
23
+ ...require("./xyReactBuildCommands")
24
+ });
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/lib/index.ts"],"sourcesContent":["export * from './xyReact'\nexport * from './xyReactBuildCommands'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,sBAAd;AACA,wBAAc,mCADd;","names":[]}
@@ -0,0 +1,3 @@
1
+ export * from "./xyReact";
2
+ export * from "./xyReactBuildCommands";
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/lib/index.ts"],"sourcesContent":["export * from './xyReact'\nexport * from './xyReactBuildCommands'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;","names":[]}
@@ -0,0 +1,93 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from))
16
+ if (!__hasOwnProp.call(to, key) && key !== except)
17
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
+ }
19
+ return to;
20
+ };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+ var xyReact_exports = {};
31
+ __export(xyReact_exports, {
32
+ xyReact: () => xyReact
33
+ });
34
+ module.exports = __toCommonJS(xyReact_exports);
35
+ var import_ts_scripts_yarn3 = require("@xylabs/ts-scripts-yarn3");
36
+ var import_chalk = __toESM(require("chalk"));
37
+ var import_actions = require("../actions");
38
+ var import_xyReactBuildCommands = require("./xyReactBuildCommands");
39
+ const xyReact = () => {
40
+ return (0, import_xyReactBuildCommands.xyReactBuildCommands)((0, import_ts_scripts_yarn3.xyInstallCommands)((0, import_ts_scripts_yarn3.xyLintCommands)((0, import_ts_scripts_yarn3.xyInstallCommands)((0, import_ts_scripts_yarn3.xyCommonCommands)((0, import_ts_scripts_yarn3.xyParseOptions)()))))).command(
41
+ "analyze",
42
+ "Analyze - Analyze Bundles",
43
+ (yargs) => {
44
+ return yargs;
45
+ },
46
+ (argv) => {
47
+ if (argv.verbose)
48
+ console.log("Analyzing");
49
+ process.exitCode = (0, import_actions.analyze)();
50
+ }
51
+ ).command(
52
+ "eject",
53
+ "Eject - Eject React project",
54
+ (yargs) => {
55
+ return yargs;
56
+ },
57
+ (argv) => {
58
+ if (argv.verbose)
59
+ console.log("Ejecting");
60
+ process.exitCode = (0, import_actions.eject)();
61
+ }
62
+ ).command(
63
+ "sitemap",
64
+ "Sitemap - Generate sitemap for the project",
65
+ (yargs) => {
66
+ return yargs;
67
+ },
68
+ (argv) => {
69
+ if (argv.verbose)
70
+ console.log("Generating Sitemap");
71
+ process.exitCode = (0, import_actions.sitemap)();
72
+ }
73
+ ).command(
74
+ "start",
75
+ "Start - Start project in browser",
76
+ (yargs) => {
77
+ return yargs;
78
+ },
79
+ (argv) => {
80
+ if (argv.verbose)
81
+ console.log("Starting");
82
+ process.exitCode = (0, import_actions.start)();
83
+ }
84
+ ).demandCommand(1).command("*", "", () => {
85
+ console.error(import_chalk.default.yellow(`Command not found [${import_chalk.default.magenta(process.argv[2])}]`));
86
+ console.log(import_chalk.default.gray("Try 'yarn xy --help' for list of commands"));
87
+ }).help().argv;
88
+ };
89
+ // Annotate the CommonJS export names for ESM import in node:
90
+ 0 && (module.exports = {
91
+ xyReact
92
+ });
93
+ //# sourceMappingURL=xyReact.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/lib/xyReact.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions } from '@xylabs/ts-scripts-yarn3'\nimport chalk from 'chalk'\n\nimport { analyze, eject, sitemap, start } from '../actions'\nimport { xyReactBuildCommands } from './xyReactBuildCommands'\n\nexport const xyReact = () => {\n return xyReactBuildCommands(xyInstallCommands(xyLintCommands(xyInstallCommands(xyCommonCommands(xyParseOptions())))))\n .command(\n 'analyze',\n 'Analyze - Analyze Bundles',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Analyzing')\n process.exitCode = analyze()\n },\n )\n .command(\n 'eject',\n 'Eject - Eject React project',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Ejecting')\n process.exitCode = eject()\n },\n )\n .command(\n 'sitemap',\n 'Sitemap - Generate sitemap for the project',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Generating Sitemap')\n process.exitCode = sitemap()\n },\n )\n .command(\n 'start',\n 'Start - Start project in browser',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Starting')\n process.exitCode = start()\n },\n )\n .demandCommand(1)\n .command('*', '', () => {\n console.error(chalk.yellow(`Command not found [${chalk.magenta(process.argv[2])}]`))\n console.log(chalk.gray(\"Try 'yarn xy --help' for list of commands\"))\n })\n .help().argv\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,8BAAoF;AACpF,mBAAkB;AAElB,qBAA+C;AAC/C,kCAAqC;AAE9B,MAAM,UAAU,MAAM;AAC3B,aAAO,sDAAqB,+CAAkB,4CAAe,+CAAkB,8CAAiB,wCAAe,CAAC,CAAC,CAAC,CAAC,CAAC,EACjH;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAAC,UAAU;AACT,aAAO;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,WAAW;AACzC,cAAQ,eAAW,wBAAQ;AAAA,IAC7B;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAAC,UAAU;AACT,aAAO;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,UAAU;AACxC,cAAQ,eAAW,sBAAM;AAAA,IAC3B;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAAC,UAAU;AACT,aAAO;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,oBAAoB;AAClD,cAAQ,eAAW,wBAAQ;AAAA,IAC7B;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAAC,UAAU;AACT,aAAO;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,UAAU;AACxC,cAAQ,eAAW,sBAAM;AAAA,IAC3B;AAAA,EACF,EACC,cAAc,CAAC,EACf,QAAQ,KAAK,IAAI,MAAM;AACtB,YAAQ,MAAM,aAAAA,QAAM,OAAO,sBAAsB,aAAAA,QAAM,QAAQ,QAAQ,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC;AACnF,YAAQ,IAAI,aAAAA,QAAM,KAAK,2CAA2C,CAAC;AAAA,EACrE,CAAC,EACA,KAAK,EAAE;AACZ;","names":["chalk"]}
@@ -0,0 +1,59 @@
1
+ #!/usr/bin/env node
2
+ import { xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions } from "@xylabs/ts-scripts-yarn3";
3
+ import chalk from "chalk";
4
+ import { analyze, eject, sitemap, start } from "../actions";
5
+ import { xyReactBuildCommands } from "./xyReactBuildCommands";
6
+ const xyReact = () => {
7
+ return xyReactBuildCommands(xyInstallCommands(xyLintCommands(xyInstallCommands(xyCommonCommands(xyParseOptions()))))).command(
8
+ "analyze",
9
+ "Analyze - Analyze Bundles",
10
+ (yargs) => {
11
+ return yargs;
12
+ },
13
+ (argv) => {
14
+ if (argv.verbose)
15
+ console.log("Analyzing");
16
+ process.exitCode = analyze();
17
+ }
18
+ ).command(
19
+ "eject",
20
+ "Eject - Eject React project",
21
+ (yargs) => {
22
+ return yargs;
23
+ },
24
+ (argv) => {
25
+ if (argv.verbose)
26
+ console.log("Ejecting");
27
+ process.exitCode = eject();
28
+ }
29
+ ).command(
30
+ "sitemap",
31
+ "Sitemap - Generate sitemap for the project",
32
+ (yargs) => {
33
+ return yargs;
34
+ },
35
+ (argv) => {
36
+ if (argv.verbose)
37
+ console.log("Generating Sitemap");
38
+ process.exitCode = sitemap();
39
+ }
40
+ ).command(
41
+ "start",
42
+ "Start - Start project in browser",
43
+ (yargs) => {
44
+ return yargs;
45
+ },
46
+ (argv) => {
47
+ if (argv.verbose)
48
+ console.log("Starting");
49
+ process.exitCode = start();
50
+ }
51
+ ).demandCommand(1).command("*", "", () => {
52
+ console.error(chalk.yellow(`Command not found [${chalk.magenta(process.argv[2])}]`));
53
+ console.log(chalk.gray("Try 'yarn xy --help' for list of commands"));
54
+ }).help().argv;
55
+ };
56
+ export {
57
+ xyReact
58
+ };
59
+ //# sourceMappingURL=xyReact.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/lib/xyReact.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions } from '@xylabs/ts-scripts-yarn3'\nimport chalk from 'chalk'\n\nimport { analyze, eject, sitemap, start } from '../actions'\nimport { xyReactBuildCommands } from './xyReactBuildCommands'\n\nexport const xyReact = () => {\n return xyReactBuildCommands(xyInstallCommands(xyLintCommands(xyInstallCommands(xyCommonCommands(xyParseOptions())))))\n .command(\n 'analyze',\n 'Analyze - Analyze Bundles',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Analyzing')\n process.exitCode = analyze()\n },\n )\n .command(\n 'eject',\n 'Eject - Eject React project',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Ejecting')\n process.exitCode = eject()\n },\n )\n .command(\n 'sitemap',\n 'Sitemap - Generate sitemap for the project',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Generating Sitemap')\n process.exitCode = sitemap()\n },\n )\n .command(\n 'start',\n 'Start - Start project in browser',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Starting')\n process.exitCode = start()\n },\n )\n .demandCommand(1)\n .command('*', '', () => {\n console.error(chalk.yellow(`Command not found [${chalk.magenta(process.argv[2])}]`))\n console.log(chalk.gray(\"Try 'yarn xy --help' for list of commands\"))\n })\n .help().argv\n}\n"],"mappings":";AAEA,SAAS,kBAAkB,mBAAmB,gBAAgB,sBAAsB;AACpF,OAAO,WAAW;AAElB,SAAS,SAAS,OAAO,SAAS,aAAa;AAC/C,SAAS,4BAA4B;AAE9B,MAAM,UAAU,MAAM;AAC3B,SAAO,qBAAqB,kBAAkB,eAAe,kBAAkB,iBAAiB,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,EACjH;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAAC,UAAU;AACT,aAAO;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,WAAW;AACzC,cAAQ,WAAW,QAAQ;AAAA,IAC7B;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAAC,UAAU;AACT,aAAO;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,UAAU;AACxC,cAAQ,WAAW,MAAM;AAAA,IAC3B;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAAC,UAAU;AACT,aAAO;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,oBAAoB;AAClD,cAAQ,WAAW,QAAQ;AAAA,IAC7B;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAAC,UAAU;AACT,aAAO;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,UAAU;AACxC,cAAQ,WAAW,MAAM;AAAA,IAC3B;AAAA,EACF,EACC,cAAc,CAAC,EACf,QAAQ,KAAK,IAAI,MAAM;AACtB,YAAQ,MAAM,MAAM,OAAO,sBAAsB,MAAM,QAAQ,QAAQ,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC;AACnF,YAAQ,IAAI,MAAM,KAAK,2CAA2C,CAAC;AAAA,EACrE,CAAC,EACA,KAAK,EAAE;AACZ;","names":[]}
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var xyReactBuildCommands_exports = {};
20
+ __export(xyReactBuildCommands_exports, {
21
+ xyReactBuildCommands: () => xyReactBuildCommands
22
+ });
23
+ module.exports = __toCommonJS(xyReactBuildCommands_exports);
24
+ var import_ts_scripts_yarn3 = require("@xylabs/ts-scripts-yarn3");
25
+ var import_actions = require("../actions");
26
+ const xyReactBuildCommands = (args) => {
27
+ return args.command(
28
+ "build",
29
+ "Build - Build React project && Packages",
30
+ (yargs2) => {
31
+ return yargs2;
32
+ },
33
+ (argv) => {
34
+ if (argv.verbose)
35
+ console.log("Building");
36
+ process.exitCode = (0, import_actions.build)();
37
+ }
38
+ ).command(
39
+ "build-ci",
40
+ "Build CI - Build React project for continuous integration",
41
+ (yargs2) => {
42
+ return yargs2;
43
+ },
44
+ (argv) => {
45
+ if (argv.verbose)
46
+ console.log("Building CI");
47
+ process.exitCode = (0, import_actions.buildci)();
48
+ }
49
+ ).command(
50
+ "compile [package]",
51
+ "Compile with Typescript & Copy Images",
52
+ (yargs2) => {
53
+ return yargs2.positional("package", {
54
+ describe: "Specific package to compile"
55
+ });
56
+ },
57
+ async (argv) => {
58
+ if (argv.verbose)
59
+ console.log(`Compiling: ${argv.package ?? "all"}`);
60
+ process.exitCode = await (0, import_ts_scripts_yarn3.compile)({ target: argv.target });
61
+ }
62
+ ).command(
63
+ "copy-assets [package]",
64
+ "Copy Assets - Copy the assets from src to dist",
65
+ (yargs2) => {
66
+ return yargs2.positional("package", {
67
+ describe: "Specific package to copy assets"
68
+ });
69
+ },
70
+ async (argv) => {
71
+ if (argv.verbose)
72
+ console.log(`Copying Assets: ${argv.package ?? "all"}`);
73
+ process.exitCode = await (0, import_ts_scripts_yarn3.copyAssets)({ target: argv.target });
74
+ }
75
+ ).command(
76
+ "rebuild",
77
+ "Rebuild - Clean, Compile & Lint",
78
+ (yargs2) => {
79
+ return yargs2;
80
+ },
81
+ (argv) => {
82
+ if (argv.verbose)
83
+ console.log("Rebuilding");
84
+ process.exitCode = (0, import_actions.rebuild)();
85
+ }
86
+ );
87
+ };
88
+ // Annotate the CommonJS export names for ESM import in node:
89
+ 0 && (module.exports = {
90
+ xyReactBuildCommands
91
+ });
92
+ //# sourceMappingURL=xyReactBuildCommands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/lib/xyReactBuildCommands.ts"],"sourcesContent":["import { compile, copyAssets } from '@xylabs/ts-scripts-yarn3'\nimport yargs from 'yargs'\n\nimport { build, buildci, rebuild } from '../actions'\n\nexport const xyReactBuildCommands = (args: yargs.Argv) => {\n return args\n .command(\n 'build',\n 'Build - Build React project && Packages',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Building')\n process.exitCode = build()\n },\n )\n .command(\n 'build-ci',\n 'Build CI - Build React project for continuous integration',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Building CI')\n process.exitCode = buildci()\n },\n )\n .command(\n 'compile [package]',\n 'Compile with Typescript & Copy Images',\n (yargs) => {\n return yargs.positional('package', {\n describe: 'Specific package to compile',\n })\n },\n async (argv) => {\n if (argv.verbose) console.log(`Compiling: ${argv.package ?? 'all'}`)\n process.exitCode = await compile({ target: argv.target as 'esm' | 'cjs' })\n },\n )\n .command(\n 'copy-assets [package]',\n 'Copy Assets - Copy the assets from src to dist',\n (yargs) => {\n return yargs.positional('package', {\n describe: 'Specific package to copy assets',\n })\n },\n async (argv) => {\n if (argv.verbose) console.log(`Copying Assets: ${argv.package ?? 'all'}`)\n process.exitCode = await copyAssets({ target: argv.target as 'esm' | 'cjs' })\n },\n )\n .command(\n 'rebuild',\n 'Rebuild - Clean, Compile & Lint',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Rebuilding')\n process.exitCode = rebuild()\n },\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAoC;AAGpC,qBAAwC;AAEjC,MAAM,uBAAuB,CAAC,SAAqB;AACxD,SAAO,KACJ;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAACA,WAAU;AACT,aAAOA;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,UAAU;AACxC,cAAQ,eAAW,sBAAM;AAAA,IAC3B;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAACA,WAAU;AACT,aAAOA;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,aAAa;AAC3C,cAAQ,eAAW,wBAAQ;AAAA,IAC7B;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAACA,WAAU;AACT,aAAOA,OAAM,WAAW,WAAW;AAAA,QACjC,UAAU;AAAA,MACZ,CAAC;AAAA,IACH;AAAA,IACA,OAAO,SAAS;AACd,UAAI,KAAK;AAAS,gBAAQ,IAAI,cAAc,KAAK,WAAW,KAAK,EAAE;AACnE,cAAQ,WAAW,UAAM,iCAAQ,EAAE,QAAQ,KAAK,OAAwB,CAAC;AAAA,IAC3E;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAACA,WAAU;AACT,aAAOA,OAAM,WAAW,WAAW;AAAA,QACjC,UAAU;AAAA,MACZ,CAAC;AAAA,IACH;AAAA,IACA,OAAO,SAAS;AACd,UAAI,KAAK;AAAS,gBAAQ,IAAI,mBAAmB,KAAK,WAAW,KAAK,EAAE;AACxE,cAAQ,WAAW,UAAM,oCAAW,EAAE,QAAQ,KAAK,OAAwB,CAAC;AAAA,IAC9E;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAACA,WAAU;AACT,aAAOA;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,YAAY;AAC1C,cAAQ,eAAW,wBAAQ;AAAA,IAC7B;AAAA,EACF;AACJ;","names":["yargs"]}
@@ -0,0 +1,68 @@
1
+ import { compile, copyAssets } from "@xylabs/ts-scripts-yarn3";
2
+ import { build, buildci, rebuild } from "../actions";
3
+ const xyReactBuildCommands = (args) => {
4
+ return args.command(
5
+ "build",
6
+ "Build - Build React project && Packages",
7
+ (yargs2) => {
8
+ return yargs2;
9
+ },
10
+ (argv) => {
11
+ if (argv.verbose)
12
+ console.log("Building");
13
+ process.exitCode = build();
14
+ }
15
+ ).command(
16
+ "build-ci",
17
+ "Build CI - Build React project for continuous integration",
18
+ (yargs2) => {
19
+ return yargs2;
20
+ },
21
+ (argv) => {
22
+ if (argv.verbose)
23
+ console.log("Building CI");
24
+ process.exitCode = buildci();
25
+ }
26
+ ).command(
27
+ "compile [package]",
28
+ "Compile with Typescript & Copy Images",
29
+ (yargs2) => {
30
+ return yargs2.positional("package", {
31
+ describe: "Specific package to compile"
32
+ });
33
+ },
34
+ async (argv) => {
35
+ if (argv.verbose)
36
+ console.log(`Compiling: ${argv.package ?? "all"}`);
37
+ process.exitCode = await compile({ target: argv.target });
38
+ }
39
+ ).command(
40
+ "copy-assets [package]",
41
+ "Copy Assets - Copy the assets from src to dist",
42
+ (yargs2) => {
43
+ return yargs2.positional("package", {
44
+ describe: "Specific package to copy assets"
45
+ });
46
+ },
47
+ async (argv) => {
48
+ if (argv.verbose)
49
+ console.log(`Copying Assets: ${argv.package ?? "all"}`);
50
+ process.exitCode = await copyAssets({ target: argv.target });
51
+ }
52
+ ).command(
53
+ "rebuild",
54
+ "Rebuild - Clean, Compile & Lint",
55
+ (yargs2) => {
56
+ return yargs2;
57
+ },
58
+ (argv) => {
59
+ if (argv.verbose)
60
+ console.log("Rebuilding");
61
+ process.exitCode = rebuild();
62
+ }
63
+ );
64
+ };
65
+ export {
66
+ xyReactBuildCommands
67
+ };
68
+ //# sourceMappingURL=xyReactBuildCommands.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/lib/xyReactBuildCommands.ts"],"sourcesContent":["import { compile, copyAssets } from '@xylabs/ts-scripts-yarn3'\nimport yargs from 'yargs'\n\nimport { build, buildci, rebuild } from '../actions'\n\nexport const xyReactBuildCommands = (args: yargs.Argv) => {\n return args\n .command(\n 'build',\n 'Build - Build React project && Packages',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Building')\n process.exitCode = build()\n },\n )\n .command(\n 'build-ci',\n 'Build CI - Build React project for continuous integration',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Building CI')\n process.exitCode = buildci()\n },\n )\n .command(\n 'compile [package]',\n 'Compile with Typescript & Copy Images',\n (yargs) => {\n return yargs.positional('package', {\n describe: 'Specific package to compile',\n })\n },\n async (argv) => {\n if (argv.verbose) console.log(`Compiling: ${argv.package ?? 'all'}`)\n process.exitCode = await compile({ target: argv.target as 'esm' | 'cjs' })\n },\n )\n .command(\n 'copy-assets [package]',\n 'Copy Assets - Copy the assets from src to dist',\n (yargs) => {\n return yargs.positional('package', {\n describe: 'Specific package to copy assets',\n })\n },\n async (argv) => {\n if (argv.verbose) console.log(`Copying Assets: ${argv.package ?? 'all'}`)\n process.exitCode = await copyAssets({ target: argv.target as 'esm' | 'cjs' })\n },\n )\n .command(\n 'rebuild',\n 'Rebuild - Clean, Compile & Lint',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Rebuilding')\n process.exitCode = rebuild()\n },\n )\n}\n"],"mappings":"AAAA,SAAS,SAAS,kBAAkB;AAGpC,SAAS,OAAO,SAAS,eAAe;AAEjC,MAAM,uBAAuB,CAAC,SAAqB;AACxD,SAAO,KACJ;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAACA,WAAU;AACT,aAAOA;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,UAAU;AACxC,cAAQ,WAAW,MAAM;AAAA,IAC3B;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAACA,WAAU;AACT,aAAOA;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,aAAa;AAC3C,cAAQ,WAAW,QAAQ;AAAA,IAC7B;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAACA,WAAU;AACT,aAAOA,OAAM,WAAW,WAAW;AAAA,QACjC,UAAU;AAAA,MACZ,CAAC;AAAA,IACH;AAAA,IACA,OAAO,SAAS;AACd,UAAI,KAAK;AAAS,gBAAQ,IAAI,cAAc,KAAK,WAAW,KAAK,EAAE;AACnE,cAAQ,WAAW,MAAM,QAAQ,EAAE,QAAQ,KAAK,OAAwB,CAAC;AAAA,IAC3E;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAACA,WAAU;AACT,aAAOA,OAAM,WAAW,WAAW;AAAA,QACjC,UAAU;AAAA,MACZ,CAAC;AAAA,IACH;AAAA,IACA,OAAO,SAAS;AACd,UAAI,KAAK;AAAS,gBAAQ,IAAI,mBAAmB,KAAK,WAAW,KAAK,EAAE;AACxE,cAAQ,WAAW,MAAM,WAAW,EAAE,QAAQ,KAAK,OAAwB,CAAC;AAAA,IAC9E;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAACA,WAAU;AACT,aAAOA;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,YAAY;AAC1C,cAAQ,WAAW,QAAQ;AAAA,IAC7B;AAAA,EACF;AACJ;","names":["yargs"]}