@xylabs/ts-scripts-react-yarn3 3.10.0 → 3.10.2

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 (48) hide show
  1. package/dist/actions/index.js +0 -8
  2. package/dist/actions/index.js.map +1 -1
  3. package/dist/actions/index.mjs +0 -4
  4. package/dist/actions/index.mjs.map +1 -1
  5. package/dist/index.d.mts +1 -14
  6. package/dist/index.d.ts +1 -14
  7. package/dist/lib/index.js +1 -3
  8. package/dist/lib/index.js.map +1 -1
  9. package/dist/lib/index.mjs +0 -1
  10. package/dist/lib/index.mjs.map +1 -1
  11. package/dist/lib/xyReact.js +1 -2
  12. package/dist/lib/xyReact.js.map +1 -1
  13. package/dist/lib/xyReact.mjs +2 -3
  14. package/dist/lib/xyReact.mjs.map +1 -1
  15. package/package.json +4 -4
  16. package/src/actions/index.ts +0 -4
  17. package/src/lib/index.ts +1 -1
  18. package/src/lib/xyReact.ts +2 -3
  19. package/dist/actions/build-ci.js +0 -38
  20. package/dist/actions/build-ci.js.map +0 -1
  21. package/dist/actions/build-ci.mjs +0 -14
  22. package/dist/actions/build-ci.mjs.map +0 -1
  23. package/dist/actions/build.js +0 -36
  24. package/dist/actions/build.js.map +0 -1
  25. package/dist/actions/build.mjs +0 -12
  26. package/dist/actions/build.mjs.map +0 -1
  27. package/dist/actions/package/compile.js +0 -43
  28. package/dist/actions/package/compile.js.map +0 -1
  29. package/dist/actions/package/compile.mjs +0 -18
  30. package/dist/actions/package/compile.mjs.map +0 -1
  31. package/dist/actions/package/index.js +0 -23
  32. package/dist/actions/package/index.js.map +0 -1
  33. package/dist/actions/package/index.mjs +0 -2
  34. package/dist/actions/package/index.mjs.map +0 -1
  35. package/dist/actions/rebuild.js +0 -35
  36. package/dist/actions/rebuild.js.map +0 -1
  37. package/dist/actions/rebuild.mjs +0 -11
  38. package/dist/actions/rebuild.mjs.map +0 -1
  39. package/dist/lib/xyReactBuildCommands.js +0 -92
  40. package/dist/lib/xyReactBuildCommands.js.map +0 -1
  41. package/dist/lib/xyReactBuildCommands.mjs +0 -68
  42. package/dist/lib/xyReactBuildCommands.mjs.map +0 -1
  43. package/src/actions/build-ci.ts +0 -11
  44. package/src/actions/build.ts +0 -9
  45. package/src/actions/package/compile.ts +0 -15
  46. package/src/actions/package/index.ts +0 -1
  47. package/src/actions/rebuild.ts +0 -8
  48. package/src/lib/xyReactBuildCommands.ts +0 -67
@@ -16,22 +16,14 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
16
16
  var actions_exports = {};
17
17
  module.exports = __toCommonJS(actions_exports);
18
18
  __reExport(actions_exports, require("./analyze"), module.exports);
19
- __reExport(actions_exports, require("./build"), module.exports);
20
- __reExport(actions_exports, require("./build-ci"), module.exports);
21
19
  __reExport(actions_exports, require("./eject"), module.exports);
22
- __reExport(actions_exports, require("./package"), module.exports);
23
- __reExport(actions_exports, require("./rebuild"), module.exports);
24
20
  __reExport(actions_exports, require("./sitemap"), module.exports);
25
21
  __reExport(actions_exports, require("./start"), module.exports);
26
22
  __reExport(actions_exports, require("./test"), module.exports);
27
23
  // Annotate the CommonJS export names for ESM import in node:
28
24
  0 && (module.exports = {
29
25
  ...require("./analyze"),
30
- ...require("./build"),
31
- ...require("./build-ci"),
32
26
  ...require("./eject"),
33
- ...require("./package"),
34
- ...require("./rebuild"),
35
27
  ...require("./sitemap"),
36
28
  ...require("./start"),
37
29
  ...require("./test")
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/actions/index.ts"],"sourcesContent":["export * from './analyze'\nexport * from './build'\nexport * from './build-ci'\nexport * from './eject'\nexport * from './package'\nexport * from './rebuild'\nexport * from './sitemap'\nexport * from './start'\nexport * from './test'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,4BAAc,sBAAd;AACA,4BAAc,oBADd;AAEA,4BAAc,uBAFd;AAGA,4BAAc,oBAHd;AAIA,4BAAc,sBAJd;AAKA,4BAAc,sBALd;AAMA,4BAAc,sBANd;AAOA,4BAAc,oBAPd;AAQA,4BAAc,mBARd;","names":[]}
1
+ {"version":3,"sources":["../../src/actions/index.ts"],"sourcesContent":["export * from './analyze'\nexport * from './eject'\nexport * from './sitemap'\nexport * from './start'\nexport * from './test'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,4BAAc,sBAAd;AACA,4BAAc,oBADd;AAEA,4BAAc,sBAFd;AAGA,4BAAc,oBAHd;AAIA,4BAAc,mBAJd;","names":[]}
@@ -1,9 +1,5 @@
1
1
  export * from "./analyze";
2
- export * from "./build";
3
- export * from "./build-ci";
4
2
  export * from "./eject";
5
- export * from "./package";
6
- export * from "./rebuild";
7
3
  export * from "./sitemap";
8
4
  export * from "./start";
9
5
  export * from "./test";
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/actions/index.ts"],"sourcesContent":["export * from './analyze'\nexport * from './build'\nexport * from './build-ci'\nexport * from './eject'\nexport * from './package'\nexport * from './rebuild'\nexport * from './sitemap'\nexport * from './start'\nexport * from './test'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
1
+ {"version":3,"sources":["../../src/actions/index.ts"],"sourcesContent":["export * from './analyze'\nexport * from './eject'\nexport * from './sitemap'\nexport * from './start'\nexport * from './test'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
package/dist/index.d.mts CHANGED
@@ -1,18 +1,7 @@
1
- import yargs from 'yargs';
2
-
3
1
  declare const analyze: () => number;
4
2
 
5
- declare const build: () => number;
6
-
7
- declare const buildci: () => number;
8
-
9
3
  declare const eject: () => number;
10
4
 
11
- declare const packageCompile: () => number;
12
- declare const packageCompileAsync: () => Promise<number>;
13
-
14
- declare const rebuild: () => number;
15
-
16
5
  declare const sitemap: () => number;
17
6
 
18
7
  declare const start: () => number;
@@ -29,6 +18,4 @@ declare const xyReact: () => {
29
18
  $0: string;
30
19
  }>;
31
20
 
32
- declare const xyReactBuildCommands: (args: yargs.Argv) => yargs.Argv<{}>;
33
-
34
- export { analyze, build, buildci, eject, packageCompile, packageCompileAsync, rebuild, sitemap, start, test, xyReact, xyReactBuildCommands };
21
+ export { analyze, eject, sitemap, start, test, xyReact };
package/dist/index.d.ts CHANGED
@@ -1,18 +1,7 @@
1
- import yargs from 'yargs';
2
-
3
1
  declare const analyze: () => number;
4
2
 
5
- declare const build: () => number;
6
-
7
- declare const buildci: () => number;
8
-
9
3
  declare const eject: () => number;
10
4
 
11
- declare const packageCompile: () => number;
12
- declare const packageCompileAsync: () => Promise<number>;
13
-
14
- declare const rebuild: () => number;
15
-
16
5
  declare const sitemap: () => number;
17
6
 
18
7
  declare const start: () => number;
@@ -29,6 +18,4 @@ declare const xyReact: () => {
29
18
  $0: string;
30
19
  }>;
31
20
 
32
- declare const xyReactBuildCommands: (args: yargs.Argv) => yargs.Argv<{}>;
33
-
34
- export { analyze, build, buildci, eject, packageCompile, packageCompileAsync, rebuild, sitemap, start, test, xyReact, xyReactBuildCommands };
21
+ export { analyze, eject, sitemap, start, test, xyReact };
package/dist/lib/index.js CHANGED
@@ -16,10 +16,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
16
16
  var lib_exports = {};
17
17
  module.exports = __toCommonJS(lib_exports);
18
18
  __reExport(lib_exports, require("./xyReact"), module.exports);
19
- __reExport(lib_exports, require("./xyReactBuildCommands"), module.exports);
20
19
  // Annotate the CommonJS export names for ESM import in node:
21
20
  0 && (module.exports = {
22
- ...require("./xyReact"),
23
- ...require("./xyReactBuildCommands")
21
+ ...require("./xyReact")
24
22
  });
25
23
  //# sourceMappingURL=index.js.map
@@ -1 +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":[]}
1
+ {"version":3,"sources":["../../src/lib/index.ts"],"sourcesContent":["export * from './xyReact'\n\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,sBAAd;","names":[]}
@@ -1,3 +1,2 @@
1
1
  export * from "./xyReact";
2
- export * from "./xyReactBuildCommands";
3
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/lib/index.ts"],"sourcesContent":["export * from './xyReact'\nexport * from './xyReactBuildCommands'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;","names":[]}
1
+ {"version":3,"sources":["../../src/lib/index.ts"],"sourcesContent":["export * from './xyReact'\n\n"],"mappings":"AAAA,cAAc;","names":[]}
@@ -35,9 +35,8 @@ module.exports = __toCommonJS(xyReact_exports);
35
35
  var import_ts_scripts_yarn3 = require("@xylabs/ts-scripts-yarn3");
36
36
  var import_chalk = __toESM(require("chalk"));
37
37
  var import_actions = require("../actions");
38
- var import_xyReactBuildCommands = require("./xyReactBuildCommands");
39
38
  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(
39
+ return (0, import_ts_scripts_yarn3.xyBuildCommands)((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
40
  "analyze",
42
41
  "Analyze - Analyze Bundles",
43
42
  (yargs) => {
@@ -1 +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"]}
1
+ {"version":3,"sources":["../../src/lib/xyReact.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions, xyBuildCommands } from '@xylabs/ts-scripts-yarn3'\nimport chalk from 'chalk'\n\nimport { analyze, eject, sitemap, start } from '../actions'\n\nexport const xyReact = () => {\n return xyBuildCommands(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,8BAAqG;AACrG,mBAAkB;AAElB,qBAA+C;AAExC,MAAM,UAAU,MAAM;AAC3B,aAAO,6CAAgB,+CAAkB,4CAAe,+CAAkB,8CAAiB,wCAAe,CAAC,CAAC,CAAC,CAAC,CAAC,EAC5G;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"]}
@@ -1,10 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import { xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions } from "@xylabs/ts-scripts-yarn3";
2
+ import { xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions, xyBuildCommands } from "@xylabs/ts-scripts-yarn3";
3
3
  import chalk from "chalk";
4
4
  import { analyze, eject, sitemap, start } from "../actions";
5
- import { xyReactBuildCommands } from "./xyReactBuildCommands";
6
5
  const xyReact = () => {
7
- return xyReactBuildCommands(xyInstallCommands(xyLintCommands(xyInstallCommands(xyCommonCommands(xyParseOptions()))))).command(
6
+ return xyBuildCommands(xyInstallCommands(xyLintCommands(xyInstallCommands(xyCommonCommands(xyParseOptions()))))).command(
8
7
  "analyze",
9
8
  "Analyze - Analyze Bundles",
10
9
  (yargs) => {
@@ -1 +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":[]}
1
+ {"version":3,"sources":["../../src/lib/xyReact.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions, xyBuildCommands } from '@xylabs/ts-scripts-yarn3'\nimport chalk from 'chalk'\n\nimport { analyze, eject, sitemap, start } from '../actions'\n\nexport const xyReact = () => {\n return xyBuildCommands(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,gBAAgB,uBAAuB;AACrG,OAAO,WAAW;AAElB,SAAS,SAAS,OAAO,SAAS,aAAa;AAExC,MAAM,UAAU,MAAM;AAC3B,SAAO,gBAAgB,kBAAkB,eAAe,kBAAkB,iBAAiB,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,EAC5G;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":[]}
package/package.json CHANGED
@@ -49,15 +49,15 @@
49
49
  "url": "https://github.com/xylabs/config/issues"
50
50
  },
51
51
  "dependencies": {
52
- "@xylabs/ts-scripts-yarn3": "~3.10.0",
52
+ "@xylabs/ts-scripts-yarn3": "~3.10.2",
53
53
  "chalk": "^4.1.2",
54
54
  "yargs": "^17.7.2"
55
55
  },
56
56
  "description": "TypeScript project scripts",
57
57
  "devDependencies": {
58
58
  "@types/yargs": "^17.0.32",
59
- "@xylabs/ts-scripts-yarn3": "~3.10.0",
60
- "@xylabs/tsconfig": "~3.10.0",
59
+ "@xylabs/ts-scripts-yarn3": "~3.10.2",
60
+ "@xylabs/tsconfig": "~3.10.2",
61
61
  "publint": "^0.2.7",
62
62
  "tsup": "^8.0.2",
63
63
  "typescript": "^5.4.5"
@@ -112,6 +112,6 @@
112
112
  "package-recompile": "tsup && publint ."
113
113
  },
114
114
  "sideEffects": false,
115
- "version": "3.10.0",
115
+ "version": "3.10.2",
116
116
  "type": "commonjs"
117
117
  }
@@ -1,9 +1,5 @@
1
1
  export * from './analyze'
2
- export * from './build'
3
- export * from './build-ci'
4
2
  export * from './eject'
5
- export * from './package'
6
- export * from './rebuild'
7
3
  export * from './sitemap'
8
4
  export * from './start'
9
5
  export * from './test'
package/src/lib/index.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export * from './xyReact'
2
- export * from './xyReactBuildCommands'
2
+
@@ -1,13 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions } from '@xylabs/ts-scripts-yarn3'
3
+ import { xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions, xyBuildCommands } from '@xylabs/ts-scripts-yarn3'
4
4
  import chalk from 'chalk'
5
5
 
6
6
  import { analyze, eject, sitemap, start } from '../actions'
7
- import { xyReactBuildCommands } from './xyReactBuildCommands'
8
7
 
9
8
  export const xyReact = () => {
10
- return xyReactBuildCommands(xyInstallCommands(xyLintCommands(xyInstallCommands(xyCommonCommands(xyParseOptions())))))
9
+ return xyBuildCommands(xyInstallCommands(xyLintCommands(xyInstallCommands(xyCommonCommands(xyParseOptions())))))
11
10
  .command(
12
11
  'analyze',
13
12
  'Analyze - Analyze Bundles',
@@ -1,38 +0,0 @@
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 build_ci_exports = {};
20
- __export(build_ci_exports, {
21
- buildci: () => buildci
22
- });
23
- module.exports = __toCommonJS(build_ci_exports);
24
- var import_ts_scripts_yarn3 = require("@xylabs/ts-scripts-yarn3");
25
- const buildci = () => {
26
- return (0, import_ts_scripts_yarn3.runSteps)("Build", [
27
- ["yarn", ["xy", "compile"]],
28
- ["yarn", "react-scripts build"],
29
- ["yarn", "xy lint"],
30
- ["yarn", "xy deps"],
31
- ["ts-node-script", "./scripts/sitemap.ts"]
32
- ]);
33
- };
34
- // Annotate the CommonJS export names for ESM import in node:
35
- 0 && (module.exports = {
36
- buildci
37
- });
38
- //# sourceMappingURL=build-ci.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/actions/build-ci.ts"],"sourcesContent":["import { runSteps } from '@xylabs/ts-scripts-yarn3'\n\nexport const buildci = () => {\n return runSteps('Build', [\n ['yarn', ['xy', 'compile']],\n ['yarn', 'react-scripts build'],\n ['yarn', 'xy lint'],\n ['yarn', 'xy deps'],\n ['ts-node-script', './scripts/sitemap.ts'],\n ])\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAyB;AAElB,MAAM,UAAU,MAAM;AAC3B,aAAO,kCAAS,SAAS;AAAA,IACvB,CAAC,QAAQ,CAAC,MAAM,SAAS,CAAC;AAAA,IAC1B,CAAC,QAAQ,qBAAqB;AAAA,IAC9B,CAAC,QAAQ,SAAS;AAAA,IAClB,CAAC,QAAQ,SAAS;AAAA,IAClB,CAAC,kBAAkB,sBAAsB;AAAA,EAC3C,CAAC;AACH;","names":[]}
@@ -1,14 +0,0 @@
1
- import { runSteps } from "@xylabs/ts-scripts-yarn3";
2
- const buildci = () => {
3
- return runSteps("Build", [
4
- ["yarn", ["xy", "compile"]],
5
- ["yarn", "react-scripts build"],
6
- ["yarn", "xy lint"],
7
- ["yarn", "xy deps"],
8
- ["ts-node-script", "./scripts/sitemap.ts"]
9
- ]);
10
- };
11
- export {
12
- buildci
13
- };
14
- //# sourceMappingURL=build-ci.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/actions/build-ci.ts"],"sourcesContent":["import { runSteps } from '@xylabs/ts-scripts-yarn3'\n\nexport const buildci = () => {\n return runSteps('Build', [\n ['yarn', ['xy', 'compile']],\n ['yarn', 'react-scripts build'],\n ['yarn', 'xy lint'],\n ['yarn', 'xy deps'],\n ['ts-node-script', './scripts/sitemap.ts'],\n ])\n}\n"],"mappings":"AAAA,SAAS,gBAAgB;AAElB,MAAM,UAAU,MAAM;AAC3B,SAAO,SAAS,SAAS;AAAA,IACvB,CAAC,QAAQ,CAAC,MAAM,SAAS,CAAC;AAAA,IAC1B,CAAC,QAAQ,qBAAqB;AAAA,IAC9B,CAAC,QAAQ,SAAS;AAAA,IAClB,CAAC,QAAQ,SAAS;AAAA,IAClB,CAAC,kBAAkB,sBAAsB;AAAA,EAC3C,CAAC;AACH;","names":[]}
@@ -1,36 +0,0 @@
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 build_exports = {};
20
- __export(build_exports, {
21
- build: () => build
22
- });
23
- module.exports = __toCommonJS(build_exports);
24
- var import_ts_scripts_yarn3 = require("@xylabs/ts-scripts-yarn3");
25
- const build = () => {
26
- return (0, import_ts_scripts_yarn3.runSteps)("Build", [
27
- ["yarn", ["xy", "compile"]],
28
- ["yarn", "xy lint"],
29
- ["yarn", "xy deps"]
30
- ]);
31
- };
32
- // Annotate the CommonJS export names for ESM import in node:
33
- 0 && (module.exports = {
34
- build
35
- });
36
- //# sourceMappingURL=build.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/actions/build.ts"],"sourcesContent":["import { runSteps } from '@xylabs/ts-scripts-yarn3'\n\nexport const build = () => {\n return runSteps('Build', [\n ['yarn', ['xy', 'compile']],\n ['yarn', 'xy lint'],\n ['yarn', 'xy deps'],\n ])\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAyB;AAElB,MAAM,QAAQ,MAAM;AACzB,aAAO,kCAAS,SAAS;AAAA,IACvB,CAAC,QAAQ,CAAC,MAAM,SAAS,CAAC;AAAA,IAC1B,CAAC,QAAQ,SAAS;AAAA,IAClB,CAAC,QAAQ,SAAS;AAAA,EACpB,CAAC;AACH;","names":[]}
@@ -1,12 +0,0 @@
1
- import { runSteps } from "@xylabs/ts-scripts-yarn3";
2
- const build = () => {
3
- return runSteps("Build", [
4
- ["yarn", ["xy", "compile"]],
5
- ["yarn", "xy lint"],
6
- ["yarn", "xy deps"]
7
- ]);
8
- };
9
- export {
10
- build
11
- };
12
- //# sourceMappingURL=build.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/actions/build.ts"],"sourcesContent":["import { runSteps } from '@xylabs/ts-scripts-yarn3'\n\nexport const build = () => {\n return runSteps('Build', [\n ['yarn', ['xy', 'compile']],\n ['yarn', 'xy lint'],\n ['yarn', 'xy deps'],\n ])\n}\n"],"mappings":"AAAA,SAAS,gBAAgB;AAElB,MAAM,QAAQ,MAAM;AACzB,SAAO,SAAS,SAAS;AAAA,IACvB,CAAC,QAAQ,CAAC,MAAM,SAAS,CAAC;AAAA,IAC1B,CAAC,QAAQ,SAAS;AAAA,IAClB,CAAC,QAAQ,SAAS;AAAA,EACpB,CAAC;AACH;","names":[]}
@@ -1,43 +0,0 @@
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 compile_exports = {};
20
- __export(compile_exports, {
21
- packageCompile: () => packageCompile,
22
- packageCompileAsync: () => packageCompileAsync
23
- });
24
- module.exports = __toCommonJS(compile_exports);
25
- var import_ts_scripts_yarn3 = require("@xylabs/ts-scripts-yarn3");
26
- const packageCompile = () => {
27
- return (0, import_ts_scripts_yarn3.runSteps)("Package Compile", [
28
- ["yarn", ["react-scripts", "build"]],
29
- ["ts-node-script", "./scripts/sitemap.ts"]
30
- ]);
31
- };
32
- const packageCompileAsync = () => {
33
- return (0, import_ts_scripts_yarn3.runStepsAsync)("Package Compile", [
34
- ["yarn", ["react-scripts", "build"]],
35
- ["ts-node-script", "./scripts/sitemap.ts"]
36
- ]);
37
- };
38
- // Annotate the CommonJS export names for ESM import in node:
39
- 0 && (module.exports = {
40
- packageCompile,
41
- packageCompileAsync
42
- });
43
- //# sourceMappingURL=compile.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/actions/package/compile.ts"],"sourcesContent":["import { runSteps, runStepsAsync } from '@xylabs/ts-scripts-yarn3'\n\nexport const packageCompile = () => {\n return runSteps('Package Compile', [\n ['yarn', ['react-scripts', 'build']],\n ['ts-node-script', './scripts/sitemap.ts'],\n ])\n}\n\nexport const packageCompileAsync = () => {\n return runStepsAsync('Package Compile', [\n ['yarn', ['react-scripts', 'build']],\n ['ts-node-script', './scripts/sitemap.ts'],\n ])\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAwC;AAEjC,MAAM,iBAAiB,MAAM;AAClC,aAAO,kCAAS,mBAAmB;AAAA,IACjC,CAAC,QAAQ,CAAC,iBAAiB,OAAO,CAAC;AAAA,IACnC,CAAC,kBAAkB,sBAAsB;AAAA,EAC3C,CAAC;AACH;AAEO,MAAM,sBAAsB,MAAM;AACvC,aAAO,uCAAc,mBAAmB;AAAA,IACtC,CAAC,QAAQ,CAAC,iBAAiB,OAAO,CAAC;AAAA,IACnC,CAAC,kBAAkB,sBAAsB;AAAA,EAC3C,CAAC;AACH;","names":[]}
@@ -1,18 +0,0 @@
1
- import { runSteps, runStepsAsync } from "@xylabs/ts-scripts-yarn3";
2
- const packageCompile = () => {
3
- return runSteps("Package Compile", [
4
- ["yarn", ["react-scripts", "build"]],
5
- ["ts-node-script", "./scripts/sitemap.ts"]
6
- ]);
7
- };
8
- const packageCompileAsync = () => {
9
- return runStepsAsync("Package Compile", [
10
- ["yarn", ["react-scripts", "build"]],
11
- ["ts-node-script", "./scripts/sitemap.ts"]
12
- ]);
13
- };
14
- export {
15
- packageCompile,
16
- packageCompileAsync
17
- };
18
- //# sourceMappingURL=compile.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/actions/package/compile.ts"],"sourcesContent":["import { runSteps, runStepsAsync } from '@xylabs/ts-scripts-yarn3'\n\nexport const packageCompile = () => {\n return runSteps('Package Compile', [\n ['yarn', ['react-scripts', 'build']],\n ['ts-node-script', './scripts/sitemap.ts'],\n ])\n}\n\nexport const packageCompileAsync = () => {\n return runStepsAsync('Package Compile', [\n ['yarn', ['react-scripts', 'build']],\n ['ts-node-script', './scripts/sitemap.ts'],\n ])\n}\n"],"mappings":"AAAA,SAAS,UAAU,qBAAqB;AAEjC,MAAM,iBAAiB,MAAM;AAClC,SAAO,SAAS,mBAAmB;AAAA,IACjC,CAAC,QAAQ,CAAC,iBAAiB,OAAO,CAAC;AAAA,IACnC,CAAC,kBAAkB,sBAAsB;AAAA,EAC3C,CAAC;AACH;AAEO,MAAM,sBAAsB,MAAM;AACvC,SAAO,cAAc,mBAAmB;AAAA,IACtC,CAAC,QAAQ,CAAC,iBAAiB,OAAO,CAAC;AAAA,IACnC,CAAC,kBAAkB,sBAAsB;AAAA,EAC3C,CAAC;AACH;","names":[]}
@@ -1,23 +0,0 @@
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 package_exports = {};
17
- module.exports = __toCommonJS(package_exports);
18
- __reExport(package_exports, require("./compile"), module.exports);
19
- // Annotate the CommonJS export names for ESM import in node:
20
- 0 && (module.exports = {
21
- ...require("./compile")
22
- });
23
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/actions/package/index.ts"],"sourcesContent":["export * from './compile'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,4BAAc,sBAAd;","names":[]}
@@ -1,2 +0,0 @@
1
- export * from "./compile";
2
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/actions/package/index.ts"],"sourcesContent":["export * from './compile'\n"],"mappings":"AAAA,cAAc;","names":[]}
@@ -1,35 +0,0 @@
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 rebuild_exports = {};
20
- __export(rebuild_exports, {
21
- rebuild: () => rebuild
22
- });
23
- module.exports = __toCommonJS(rebuild_exports);
24
- var import_ts_scripts_yarn3 = require("@xylabs/ts-scripts-yarn3");
25
- const rebuild = () => {
26
- return (0, import_ts_scripts_yarn3.runSteps)("Rebuild", [
27
- ["yarn", "xy clean"],
28
- ["yarn", "xy build"]
29
- ]);
30
- };
31
- // Annotate the CommonJS export names for ESM import in node:
32
- 0 && (module.exports = {
33
- rebuild
34
- });
35
- //# sourceMappingURL=rebuild.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/actions/rebuild.ts"],"sourcesContent":["import { runSteps } from '@xylabs/ts-scripts-yarn3'\n\nexport const rebuild = () => {\n return runSteps('Rebuild', [\n ['yarn', 'xy clean'],\n ['yarn', 'xy build'],\n ])\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAyB;AAElB,MAAM,UAAU,MAAM;AAC3B,aAAO,kCAAS,WAAW;AAAA,IACzB,CAAC,QAAQ,UAAU;AAAA,IACnB,CAAC,QAAQ,UAAU;AAAA,EACrB,CAAC;AACH;","names":[]}
@@ -1,11 +0,0 @@
1
- import { runSteps } from "@xylabs/ts-scripts-yarn3";
2
- const rebuild = () => {
3
- return runSteps("Rebuild", [
4
- ["yarn", "xy clean"],
5
- ["yarn", "xy build"]
6
- ]);
7
- };
8
- export {
9
- rebuild
10
- };
11
- //# sourceMappingURL=rebuild.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/actions/rebuild.ts"],"sourcesContent":["import { runSteps } from '@xylabs/ts-scripts-yarn3'\n\nexport const rebuild = () => {\n return runSteps('Rebuild', [\n ['yarn', 'xy clean'],\n ['yarn', 'xy build'],\n ])\n}\n"],"mappings":"AAAA,SAAS,gBAAgB;AAElB,MAAM,UAAU,MAAM;AAC3B,SAAO,SAAS,WAAW;AAAA,IACzB,CAAC,QAAQ,UAAU;AAAA,IACnB,CAAC,QAAQ,UAAU;AAAA,EACrB,CAAC;AACH;","names":[]}
@@ -1,92 +0,0 @@
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
@@ -1 +0,0 @@
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"]}
@@ -1,68 +0,0 @@
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
@@ -1 +0,0 @@
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"]}
@@ -1,11 +0,0 @@
1
- import { runSteps } from '@xylabs/ts-scripts-yarn3'
2
-
3
- export const buildci = () => {
4
- return runSteps('Build', [
5
- ['yarn', ['xy', 'compile']],
6
- ['yarn', 'react-scripts build'],
7
- ['yarn', 'xy lint'],
8
- ['yarn', 'xy deps'],
9
- ['ts-node-script', './scripts/sitemap.ts'],
10
- ])
11
- }
@@ -1,9 +0,0 @@
1
- import { runSteps } from '@xylabs/ts-scripts-yarn3'
2
-
3
- export const build = () => {
4
- return runSteps('Build', [
5
- ['yarn', ['xy', 'compile']],
6
- ['yarn', 'xy lint'],
7
- ['yarn', 'xy deps'],
8
- ])
9
- }
@@ -1,15 +0,0 @@
1
- import { runSteps, runStepsAsync } from '@xylabs/ts-scripts-yarn3'
2
-
3
- export const packageCompile = () => {
4
- return runSteps('Package Compile', [
5
- ['yarn', ['react-scripts', 'build']],
6
- ['ts-node-script', './scripts/sitemap.ts'],
7
- ])
8
- }
9
-
10
- export const packageCompileAsync = () => {
11
- return runStepsAsync('Package Compile', [
12
- ['yarn', ['react-scripts', 'build']],
13
- ['ts-node-script', './scripts/sitemap.ts'],
14
- ])
15
- }
@@ -1 +0,0 @@
1
- export * from './compile'
@@ -1,8 +0,0 @@
1
- import { runSteps } from '@xylabs/ts-scripts-yarn3'
2
-
3
- export const rebuild = () => {
4
- return runSteps('Rebuild', [
5
- ['yarn', 'xy clean'],
6
- ['yarn', 'xy build'],
7
- ])
8
- }
@@ -1,67 +0,0 @@
1
- import { compile, copyAssets } from '@xylabs/ts-scripts-yarn3'
2
- import yargs from 'yargs'
3
-
4
- import { build, buildci, rebuild } from '../actions'
5
-
6
- export const xyReactBuildCommands = (args: yargs.Argv) => {
7
- return args
8
- .command(
9
- 'build',
10
- 'Build - Build React project && Packages',
11
- (yargs) => {
12
- return yargs
13
- },
14
- (argv) => {
15
- if (argv.verbose) console.log('Building')
16
- process.exitCode = build()
17
- },
18
- )
19
- .command(
20
- 'build-ci',
21
- 'Build CI - Build React project for continuous integration',
22
- (yargs) => {
23
- return yargs
24
- },
25
- (argv) => {
26
- if (argv.verbose) console.log('Building CI')
27
- process.exitCode = buildci()
28
- },
29
- )
30
- .command(
31
- 'compile [package]',
32
- 'Compile with Typescript & Copy Images',
33
- (yargs) => {
34
- return yargs.positional('package', {
35
- describe: 'Specific package to compile',
36
- })
37
- },
38
- async (argv) => {
39
- if (argv.verbose) console.log(`Compiling: ${argv.package ?? 'all'}`)
40
- process.exitCode = await compile({ target: argv.target as 'esm' | 'cjs' })
41
- },
42
- )
43
- .command(
44
- 'copy-assets [package]',
45
- 'Copy Assets - Copy the assets from src to dist',
46
- (yargs) => {
47
- return yargs.positional('package', {
48
- describe: 'Specific package to copy assets',
49
- })
50
- },
51
- async (argv) => {
52
- if (argv.verbose) console.log(`Copying Assets: ${argv.package ?? 'all'}`)
53
- process.exitCode = await copyAssets({ target: argv.target as 'esm' | 'cjs' })
54
- },
55
- )
56
- .command(
57
- 'rebuild',
58
- 'Rebuild - Clean, Compile & Lint',
59
- (yargs) => {
60
- return yargs
61
- },
62
- (argv) => {
63
- if (argv.verbose) console.log('Rebuilding')
64
- process.exitCode = rebuild()
65
- },
66
- )
67
- }