@xylabs/ts-scripts-react-yarn3 3.10.1 → 3.10.3

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 (98) hide show
  1. package/dist/actions/index.js +0 -6
  2. package/dist/actions/index.js.map +1 -1
  3. package/dist/actions/index.mjs +0 -3
  4. package/dist/actions/index.mjs.map +1 -1
  5. package/dist/bin/package/clean-outputs.js +5 -0
  6. package/dist/bin/package/clean-outputs.js.map +1 -0
  7. package/dist/bin/package/clean-outputs.mjs +13 -0
  8. package/dist/bin/package/clean-outputs.mjs.map +1 -0
  9. package/dist/bin/package/clean-typescript.js +5 -0
  10. package/dist/bin/package/clean-typescript.js.map +1 -0
  11. package/dist/bin/package/clean-typescript.mjs +13 -0
  12. package/dist/bin/package/clean-typescript.mjs.map +1 -0
  13. package/dist/bin/package/clean.js +2 -2
  14. package/dist/bin/package/clean.js.map +1 -1
  15. package/dist/bin/package/clean.mjs +1 -1
  16. package/dist/bin/package/clean.mjs.map +1 -1
  17. package/dist/bin/package/compile-only.js +31 -0
  18. package/dist/bin/package/compile-only.js.map +1 -0
  19. package/dist/bin/package/compile-only.mjs +17 -0
  20. package/dist/bin/package/compile-only.mjs.map +1 -0
  21. package/dist/bin/package/compile-tsup.js +31 -0
  22. package/dist/bin/package/compile-tsup.js.map +1 -0
  23. package/dist/bin/package/compile-tsup.mjs +17 -0
  24. package/dist/bin/package/compile-tsup.mjs.map +1 -0
  25. package/dist/bin/package/compile.js +31 -1
  26. package/dist/bin/package/compile.js.map +1 -1
  27. package/dist/bin/package/compile.mjs +9 -1
  28. package/dist/bin/package/compile.mjs.map +1 -1
  29. package/dist/bin/package/copy-assets-cjs.js +31 -0
  30. package/dist/bin/package/copy-assets-cjs.js.map +1 -0
  31. package/dist/bin/package/copy-assets-cjs.mjs +17 -0
  32. package/dist/bin/package/copy-assets-cjs.mjs.map +1 -0
  33. package/dist/bin/package/copy-assets-esm.js +31 -0
  34. package/dist/bin/package/copy-assets-esm.js.map +1 -0
  35. package/dist/bin/package/copy-assets-esm.mjs +17 -0
  36. package/dist/bin/package/copy-assets-esm.mjs.map +1 -0
  37. package/dist/bin/package/deps.js +28 -2
  38. package/dist/bin/package/deps.js.map +1 -1
  39. package/dist/bin/package/deps.mjs +6 -2
  40. package/dist/bin/package/deps.mjs.map +1 -1
  41. package/dist/bin/package/gen-docs.js +5 -0
  42. package/dist/bin/package/gen-docs.js.map +1 -0
  43. package/dist/bin/package/gen-docs.mjs +13 -0
  44. package/dist/bin/package/gen-docs.mjs.map +1 -0
  45. package/dist/bin/package/publint.js +32 -0
  46. package/dist/bin/package/publint.js.map +1 -0
  47. package/dist/bin/package/publint.mjs +18 -0
  48. package/dist/bin/package/publint.mjs.map +1 -0
  49. package/dist/bin/package/recompile.js +31 -0
  50. package/dist/bin/package/recompile.js.map +1 -0
  51. package/dist/bin/package/recompile.mjs +17 -0
  52. package/dist/bin/package/recompile.mjs.map +1 -0
  53. package/dist/index.d.mts +1 -11
  54. package/dist/index.d.ts +1 -11
  55. package/dist/lib/index.js +1 -3
  56. package/dist/lib/index.js.map +1 -1
  57. package/dist/lib/index.mjs +0 -1
  58. package/dist/lib/index.mjs.map +1 -1
  59. package/dist/lib/xyReact.js +1 -2
  60. package/dist/lib/xyReact.js.map +1 -1
  61. package/dist/lib/xyReact.mjs +2 -3
  62. package/dist/lib/xyReact.mjs.map +1 -1
  63. package/package.json +4 -4
  64. package/src/actions/index.ts +0 -3
  65. package/src/bin/package/clean-outputs.ts +5 -0
  66. package/src/bin/package/clean-typescript.ts +5 -0
  67. package/src/bin/package/clean.ts +1 -1
  68. package/src/bin/package/compile-only.ts +9 -0
  69. package/src/bin/package/compile-tsup.ts +9 -0
  70. package/src/bin/package/compile.ts +10 -2
  71. package/src/bin/package/copy-assets-cjs.ts +9 -0
  72. package/src/bin/package/copy-assets-esm.ts +9 -0
  73. package/src/bin/package/deps.ts +6 -2
  74. package/src/bin/package/gen-docs.ts +5 -0
  75. package/src/bin/package/publint.ts +10 -0
  76. package/src/bin/package/recompile.ts +9 -0
  77. package/src/lib/index.ts +1 -1
  78. package/src/lib/xyReact.ts +2 -3
  79. package/dist/actions/build-ci.js +0 -38
  80. package/dist/actions/build-ci.js.map +0 -1
  81. package/dist/actions/build-ci.mjs +0 -14
  82. package/dist/actions/build-ci.mjs.map +0 -1
  83. package/dist/actions/build.js +0 -36
  84. package/dist/actions/build.js.map +0 -1
  85. package/dist/actions/build.mjs +0 -12
  86. package/dist/actions/build.mjs.map +0 -1
  87. package/dist/actions/rebuild.js +0 -35
  88. package/dist/actions/rebuild.js.map +0 -1
  89. package/dist/actions/rebuild.mjs +0 -11
  90. package/dist/actions/rebuild.mjs.map +0 -1
  91. package/dist/lib/xyReactBuildCommands.js +0 -92
  92. package/dist/lib/xyReactBuildCommands.js.map +0 -1
  93. package/dist/lib/xyReactBuildCommands.mjs +0 -68
  94. package/dist/lib/xyReactBuildCommands.mjs.map +0 -1
  95. package/src/actions/build-ci.ts +0 -11
  96. package/src/actions/build.ts +0 -9
  97. package/src/actions/rebuild.ts +0 -8
  98. package/src/lib/xyReactBuildCommands.ts +0 -67
@@ -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,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
- }