@xylabs/ts-scripts-react-yarn3 3.15.6 → 3.15.7
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.
- package/dist/actions/analyze.cjs +12 -3
- package/dist/actions/analyze.cjs.map +1 -1
- package/dist/actions/analyze.mjs +13 -3
- package/dist/actions/analyze.mjs.map +1 -1
- package/dist/actions/eject.cjs +9 -3
- package/dist/actions/eject.cjs.map +1 -1
- package/dist/actions/eject.mjs +10 -3
- package/dist/actions/eject.mjs.map +1 -1
- package/dist/actions/index.cjs +10 -10
- package/dist/actions/index.cjs.map +1 -1
- package/dist/actions/index.mjs +5 -5
- package/dist/actions/index.mjs.map +1 -1
- package/dist/actions/sitemap.cjs +9 -3
- package/dist/actions/sitemap.cjs.map +1 -1
- package/dist/actions/sitemap.mjs +10 -3
- package/dist/actions/sitemap.mjs.map +1 -1
- package/dist/actions/start.cjs +9 -3
- package/dist/actions/start.cjs.map +1 -1
- package/dist/actions/start.mjs +10 -3
- package/dist/actions/start.mjs.map +1 -1
- package/dist/actions/test.cjs +9 -3
- package/dist/actions/test.cjs.map +1 -1
- package/dist/actions/test.mjs +10 -3
- package/dist/actions/test.mjs.map +1 -1
- package/dist/bin/analyze.cjs.map +1 -1
- package/dist/bin/analyze.mjs.map +1 -1
- package/dist/bin/build-ci.cjs.map +1 -1
- package/dist/bin/build-ci.mjs.map +1 -1
- package/dist/bin/build.cjs.map +1 -1
- package/dist/bin/build.mjs.map +1 -1
- package/dist/bin/clean.cjs.map +1 -1
- package/dist/bin/clean.mjs.map +1 -1
- package/dist/bin/compile.cjs.map +1 -1
- package/dist/bin/compile.mjs.map +1 -1
- package/dist/bin/cycle.cjs.map +1 -1
- package/dist/bin/cycle.mjs.map +1 -1
- package/dist/bin/dead.cjs.map +1 -1
- package/dist/bin/dead.mjs.map +1 -1
- package/dist/bin/deps.cjs.map +1 -1
- package/dist/bin/deps.mjs.map +1 -1
- package/dist/bin/eject.cjs.map +1 -1
- package/dist/bin/eject.mjs.map +1 -1
- package/dist/bin/fix.cjs.map +1 -1
- package/dist/bin/fix.mjs.map +1 -1
- package/dist/bin/gitlint-fix.cjs.map +1 -1
- package/dist/bin/gitlint-fix.mjs.map +1 -1
- package/dist/bin/gitlint.cjs.map +1 -1
- package/dist/bin/gitlint.mjs.map +1 -1
- package/dist/bin/license.cjs.map +1 -1
- package/dist/bin/license.mjs.map +1 -1
- package/dist/bin/lint-clean.cjs.map +1 -1
- package/dist/bin/lint-clean.mjs.map +1 -1
- package/dist/bin/lint-fast.cjs.map +1 -1
- package/dist/bin/lint-fast.mjs.map +1 -1
- package/dist/bin/lint-profile.cjs.map +1 -1
- package/dist/bin/lint-profile.mjs.map +1 -1
- package/dist/bin/lint.cjs.map +1 -1
- package/dist/bin/lint.mjs.map +1 -1
- package/dist/bin/package/clean-outputs.cjs.map +1 -1
- package/dist/bin/package/clean-outputs.mjs.map +1 -1
- package/dist/bin/package/clean-typescript.cjs.map +1 -1
- package/dist/bin/package/clean-typescript.mjs.map +1 -1
- package/dist/bin/package/clean.cjs.map +1 -1
- package/dist/bin/package/clean.mjs.map +1 -1
- package/dist/bin/package/compile-only.cjs +4 -1
- package/dist/bin/package/compile-only.cjs.map +1 -1
- package/dist/bin/package/compile-only.mjs +4 -1
- package/dist/bin/package/compile-only.mjs.map +1 -1
- package/dist/bin/package/compile-tsup.cjs +3 -1
- package/dist/bin/package/compile-tsup.cjs.map +1 -1
- package/dist/bin/package/compile-tsup.mjs +3 -1
- package/dist/bin/package/compile-tsup.mjs.map +1 -1
- package/dist/bin/package/compile.cjs +3 -1
- package/dist/bin/package/compile.cjs.map +1 -1
- package/dist/bin/package/compile.mjs +3 -1
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/copy-assets-cjs.cjs +3 -1
- package/dist/bin/package/copy-assets-cjs.cjs.map +1 -1
- package/dist/bin/package/copy-assets-cjs.mjs +3 -1
- package/dist/bin/package/copy-assets-cjs.mjs.map +1 -1
- package/dist/bin/package/copy-assets-esm.cjs +3 -1
- package/dist/bin/package/copy-assets-esm.cjs.map +1 -1
- package/dist/bin/package/copy-assets-esm.mjs +3 -1
- package/dist/bin/package/copy-assets-esm.mjs.map +1 -1
- package/dist/bin/package/deps.cjs.map +1 -1
- package/dist/bin/package/deps.mjs.map +1 -1
- package/dist/bin/package/gen-docs.cjs.map +1 -1
- package/dist/bin/package/gen-docs.mjs.map +1 -1
- package/dist/bin/package/publint.cjs.map +1 -1
- package/dist/bin/package/publint.mjs.map +1 -1
- package/dist/bin/package/recompile.cjs.map +1 -1
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/rebuild.cjs.map +1 -1
- package/dist/bin/rebuild.mjs.map +1 -1
- package/dist/bin/reinstall.cjs.map +1 -1
- package/dist/bin/reinstall.mjs.map +1 -1
- package/dist/bin/relint.cjs.map +1 -1
- package/dist/bin/relint.mjs.map +1 -1
- package/dist/bin/sitemap.cjs.map +1 -1
- package/dist/bin/sitemap.mjs.map +1 -1
- package/dist/bin/sonar.cjs.map +1 -1
- package/dist/bin/sonar.mjs.map +1 -1
- package/dist/bin/start.cjs.map +1 -1
- package/dist/bin/start.mjs.map +1 -1
- package/dist/bin/test.cjs.map +1 -1
- package/dist/bin/test.mjs.map +1 -1
- package/dist/bin/tsconfig-gen-clean.cjs.map +1 -1
- package/dist/bin/tsconfig-gen-clean.mjs.map +1 -1
- package/dist/bin/tsconfig-gen.cjs.map +1 -1
- package/dist/bin/tsconfig-gen.mjs.map +1 -1
- package/dist/bin/up.cjs.map +1 -1
- package/dist/bin/up.mjs.map +1 -1
- package/dist/bin/updo.cjs.map +1 -1
- package/dist/bin/updo.mjs.map +1 -1
- package/dist/bin/xy.cjs +1 -1
- package/dist/bin/xy.cjs.map +1 -1
- package/dist/bin/xy.mjs +1 -1
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/bin/yarn3only.cjs.map +1 -1
- package/dist/bin/yarn3only.mjs.map +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/lib/index.cjs +2 -2
- package/dist/lib/index.cjs.map +1 -1
- package/dist/lib/index.mjs +1 -1
- package/dist/lib/index.mjs.map +1 -1
- package/dist/lib/xyReact.cjs +25 -44
- package/dist/lib/xyReact.cjs.map +1 -1
- package/dist/lib/xyReact.mjs +26 -44
- package/dist/lib/xyReact.mjs.map +1 -1
- package/package.json +4 -4
- package/src/actions/index.ts +5 -5
- package/src/bin/xy.ts +1 -1
- package/src/index.ts +2 -2
- package/src/lib/index.ts +1 -1
- package/src/lib/xyReact.ts +1 -1
- package/tsup.config.ts +1 -1
- package/tsconfig.build.json +0 -23
package/dist/lib/xyReact.cjs
CHANGED
|
@@ -6,6 +6,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
9
10
|
var __export = (target, all) => {
|
|
10
11
|
for (var name in all)
|
|
11
12
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -34,53 +35,33 @@ __export(xyReact_exports, {
|
|
|
34
35
|
module.exports = __toCommonJS(xyReact_exports);
|
|
35
36
|
var import_ts_scripts_yarn3 = require("@xylabs/ts-scripts-yarn3");
|
|
36
37
|
var import_chalk = __toESM(require("chalk"), 1);
|
|
37
|
-
var import_actions = require("../actions");
|
|
38
|
-
const xyReact = async () => {
|
|
39
|
-
return await (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(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
).command(
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
(
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
).command(
|
|
60
|
-
"sitemap",
|
|
61
|
-
"Sitemap - Generate sitemap for the project",
|
|
62
|
-
(yargs) => {
|
|
63
|
-
return yargs;
|
|
64
|
-
},
|
|
65
|
-
(argv) => {
|
|
66
|
-
if (argv.verbose) console.log("Generating Sitemap");
|
|
67
|
-
process.exitCode = (0, import_actions.sitemap)();
|
|
68
|
-
}
|
|
69
|
-
).command(
|
|
70
|
-
"start",
|
|
71
|
-
"Start - Start project in browser",
|
|
72
|
-
(yargs) => {
|
|
73
|
-
return yargs;
|
|
74
|
-
},
|
|
75
|
-
(argv) => {
|
|
76
|
-
if (argv.verbose) console.log("Starting");
|
|
77
|
-
process.exitCode = (0, import_actions.start)();
|
|
78
|
-
}
|
|
79
|
-
).demandCommand(1).command("*", "", () => {
|
|
38
|
+
var import_actions = require("../actions/index.ts");
|
|
39
|
+
const xyReact = /* @__PURE__ */ __name(async () => {
|
|
40
|
+
return await (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("analyze", "Analyze - Analyze Bundles", (yargs) => {
|
|
41
|
+
return yargs;
|
|
42
|
+
}, (argv) => {
|
|
43
|
+
if (argv.verbose) console.log("Analyzing");
|
|
44
|
+
process.exitCode = (0, import_actions.analyze)();
|
|
45
|
+
}).command("eject", "Eject - Eject React project", (yargs) => {
|
|
46
|
+
return yargs;
|
|
47
|
+
}, (argv) => {
|
|
48
|
+
if (argv.verbose) console.log("Ejecting");
|
|
49
|
+
process.exitCode = (0, import_actions.eject)();
|
|
50
|
+
}).command("sitemap", "Sitemap - Generate sitemap for the project", (yargs) => {
|
|
51
|
+
return yargs;
|
|
52
|
+
}, (argv) => {
|
|
53
|
+
if (argv.verbose) console.log("Generating Sitemap");
|
|
54
|
+
process.exitCode = (0, import_actions.sitemap)();
|
|
55
|
+
}).command("start", "Start - Start project in browser", (yargs) => {
|
|
56
|
+
return yargs;
|
|
57
|
+
}, (argv) => {
|
|
58
|
+
if (argv.verbose) console.log("Starting");
|
|
59
|
+
process.exitCode = (0, import_actions.start)();
|
|
60
|
+
}).demandCommand(1).command("*", "", () => {
|
|
80
61
|
console.error(import_chalk.default.yellow(`Command not found [${import_chalk.default.magenta(process.argv[2])}]`));
|
|
81
62
|
console.log(import_chalk.default.gray("Try 'yarn xy --help' for list of commands"));
|
|
82
63
|
}).help().argv;
|
|
83
|
-
};
|
|
64
|
+
}, "xyReact");
|
|
84
65
|
// Annotate the CommonJS export names for ESM import in node:
|
|
85
66
|
0 && (module.exports = {
|
|
86
67
|
xyReact
|
package/dist/lib/xyReact.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/xyReact.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { xyBuildCommands, xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions } from '@xylabs/ts-scripts-yarn3'\nimport chalk from 'chalk'\n\nimport { analyze, eject, sitemap, start } from '../actions'\n\nexport const xyReact = async () => {\n return await 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":"
|
|
1
|
+
{"version":3,"sources":["../../src/lib/xyReact.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { xyBuildCommands, xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions } from '@xylabs/ts-scripts-yarn3'\nimport chalk from 'chalk'\n\nimport { analyze, eject, sitemap, start } from '../actions/index.ts'\n\nexport const xyReact = async () => {\n return await 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,8BAAqG;AACrG,mBAAkB;AAElB,qBAA+C;AAExC,MAAMA,UAAU,mCAAA;AACrB,SAAO,UAAMC,6CAAgBC,+CAAkBC,4CAAeD,+CAAkBE,8CAAiBC,wCAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,EAC9FC,QACC,WACA,6BACA,CAACC,UAAAA;AACC,WAAOA;EACT,GACA,CAACC,SAAAA;AACC,QAAIA,KAAKC,QAASC,SAAQC,IAAI,WAAA;AAC9BC,YAAQC,eAAWC,wBAAAA;EACrB,CAAA,EAEDR,QACC,SACA,+BACA,CAACC,UAAAA;AACC,WAAOA;EACT,GACA,CAACC,SAAAA;AACC,QAAIA,KAAKC,QAASC,SAAQC,IAAI,UAAA;AAC9BC,YAAQC,eAAWE,sBAAAA;EACrB,CAAA,EAEDT,QACC,WACA,8CACA,CAACC,UAAAA;AACC,WAAOA;EACT,GACA,CAACC,SAAAA;AACC,QAAIA,KAAKC,QAASC,SAAQC,IAAI,oBAAA;AAC9BC,YAAQC,eAAWG,wBAAAA;EACrB,CAAA,EAEDV,QACC,SACA,oCACA,CAACC,UAAAA;AACC,WAAOA;EACT,GACA,CAACC,SAAAA;AACC,QAAIA,KAAKC,QAASC,SAAQC,IAAI,UAAA;AAC9BC,YAAQC,eAAWI,sBAAAA;EACrB,CAAA,EAEDC,cAAc,CAAA,EACdZ,QAAQ,KAAK,IAAI,MAAA;AAChBI,YAAQS,MAAMC,aAAAA,QAAMC,OAAO,sBAAsBD,aAAAA,QAAME,QAAQV,QAAQJ,KAAK,CAAA,CAAE,CAAA,GAAI,CAAA;AAClFE,YAAQC,IAAIS,aAAAA,QAAMG,KAAK,2CAAA,CAAA;EACzB,CAAA,EACCC,KAAI,EAAGhB;AACZ,GApDuB;","names":["xyReact","xyBuildCommands","xyInstallCommands","xyLintCommands","xyCommonCommands","xyParseOptions","command","yargs","argv","verbose","console","log","process","exitCode","analyze","eject","sitemap","start","demandCommand","error","chalk","yellow","magenta","gray","help"]}
|
package/dist/lib/xyReact.mjs
CHANGED
|
@@ -1,53 +1,35 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
2
4
|
import { xyBuildCommands, xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions } from "@xylabs/ts-scripts-yarn3";
|
|
3
5
|
import chalk from "chalk";
|
|
4
|
-
import { analyze, eject, sitemap, start } from "../actions";
|
|
5
|
-
const xyReact = async () => {
|
|
6
|
-
return await xyBuildCommands(xyInstallCommands(xyLintCommands(xyInstallCommands(xyCommonCommands(xyParseOptions()))))).command(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
).command(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
).command(
|
|
27
|
-
"sitemap",
|
|
28
|
-
"Sitemap - Generate sitemap for the project",
|
|
29
|
-
(yargs) => {
|
|
30
|
-
return yargs;
|
|
31
|
-
},
|
|
32
|
-
(argv) => {
|
|
33
|
-
if (argv.verbose) console.log("Generating Sitemap");
|
|
34
|
-
process.exitCode = sitemap();
|
|
35
|
-
}
|
|
36
|
-
).command(
|
|
37
|
-
"start",
|
|
38
|
-
"Start - Start project in browser",
|
|
39
|
-
(yargs) => {
|
|
40
|
-
return yargs;
|
|
41
|
-
},
|
|
42
|
-
(argv) => {
|
|
43
|
-
if (argv.verbose) console.log("Starting");
|
|
44
|
-
process.exitCode = start();
|
|
45
|
-
}
|
|
46
|
-
).demandCommand(1).command("*", "", () => {
|
|
6
|
+
import { analyze, eject, sitemap, start } from "../actions/index.ts";
|
|
7
|
+
const xyReact = /* @__PURE__ */ __name(async () => {
|
|
8
|
+
return await xyBuildCommands(xyInstallCommands(xyLintCommands(xyInstallCommands(xyCommonCommands(xyParseOptions()))))).command("analyze", "Analyze - Analyze Bundles", (yargs) => {
|
|
9
|
+
return yargs;
|
|
10
|
+
}, (argv) => {
|
|
11
|
+
if (argv.verbose) console.log("Analyzing");
|
|
12
|
+
process.exitCode = analyze();
|
|
13
|
+
}).command("eject", "Eject - Eject React project", (yargs) => {
|
|
14
|
+
return yargs;
|
|
15
|
+
}, (argv) => {
|
|
16
|
+
if (argv.verbose) console.log("Ejecting");
|
|
17
|
+
process.exitCode = eject();
|
|
18
|
+
}).command("sitemap", "Sitemap - Generate sitemap for the project", (yargs) => {
|
|
19
|
+
return yargs;
|
|
20
|
+
}, (argv) => {
|
|
21
|
+
if (argv.verbose) console.log("Generating Sitemap");
|
|
22
|
+
process.exitCode = sitemap();
|
|
23
|
+
}).command("start", "Start - Start project in browser", (yargs) => {
|
|
24
|
+
return yargs;
|
|
25
|
+
}, (argv) => {
|
|
26
|
+
if (argv.verbose) console.log("Starting");
|
|
27
|
+
process.exitCode = start();
|
|
28
|
+
}).demandCommand(1).command("*", "", () => {
|
|
47
29
|
console.error(chalk.yellow(`Command not found [${chalk.magenta(process.argv[2])}]`));
|
|
48
30
|
console.log(chalk.gray("Try 'yarn xy --help' for list of commands"));
|
|
49
31
|
}).help().argv;
|
|
50
|
-
};
|
|
32
|
+
}, "xyReact");
|
|
51
33
|
export {
|
|
52
34
|
xyReact
|
|
53
35
|
};
|
package/dist/lib/xyReact.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/xyReact.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { xyBuildCommands, xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions } from '@xylabs/ts-scripts-yarn3'\nimport chalk from 'chalk'\n\nimport { analyze, eject, sitemap, start } from '../actions'\n\nexport const xyReact = async () => {\n return await 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":"
|
|
1
|
+
{"version":3,"sources":["../../src/lib/xyReact.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { xyBuildCommands, xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions } from '@xylabs/ts-scripts-yarn3'\nimport chalk from 'chalk'\n\nimport { analyze, eject, sitemap, start } from '../actions/index.ts'\n\nexport const xyReact = async () => {\n return await 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,SAASA,iBAAiBC,kBAAkBC,mBAAmBC,gBAAgBC,sBAAsB;AACrG,OAAOC,WAAW;AAElB,SAASC,SAASC,OAAOC,SAASC,aAAa;AAExC,MAAMC,UAAU,mCAAA;AACrB,SAAO,MAAMV,gBAAgBE,kBAAkBC,eAAeD,kBAAkBD,iBAAiBG,eAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,EAC9FO,QACC,WACA,6BACA,CAACC,UAAAA;AACC,WAAOA;EACT,GACA,CAACC,SAAAA;AACC,QAAIA,KAAKC,QAASC,SAAQC,IAAI,WAAA;AAC9BC,YAAQC,WAAWZ,QAAAA;EACrB,CAAA,EAEDK,QACC,SACA,+BACA,CAACC,UAAAA;AACC,WAAOA;EACT,GACA,CAACC,SAAAA;AACC,QAAIA,KAAKC,QAASC,SAAQC,IAAI,UAAA;AAC9BC,YAAQC,WAAWX,MAAAA;EACrB,CAAA,EAEDI,QACC,WACA,8CACA,CAACC,UAAAA;AACC,WAAOA;EACT,GACA,CAACC,SAAAA;AACC,QAAIA,KAAKC,QAASC,SAAQC,IAAI,oBAAA;AAC9BC,YAAQC,WAAWV,QAAAA;EACrB,CAAA,EAEDG,QACC,SACA,oCACA,CAACC,UAAAA;AACC,WAAOA;EACT,GACA,CAACC,SAAAA;AACC,QAAIA,KAAKC,QAASC,SAAQC,IAAI,UAAA;AAC9BC,YAAQC,WAAWT,MAAAA;EACrB,CAAA,EAEDU,cAAc,CAAA,EACdR,QAAQ,KAAK,IAAI,MAAA;AAChBI,YAAQK,MAAMf,MAAMgB,OAAO,sBAAsBhB,MAAMiB,QAAQL,QAAQJ,KAAK,CAAA,CAAE,CAAA,GAAI,CAAA;AAClFE,YAAQC,IAAIX,MAAMkB,KAAK,2CAAA,CAAA;EACzB,CAAA,EACCC,KAAI,EAAGX;AACZ,GApDuB;","names":["xyBuildCommands","xyCommonCommands","xyInstallCommands","xyLintCommands","xyParseOptions","chalk","analyze","eject","sitemap","start","xyReact","command","yargs","argv","verbose","console","log","process","exitCode","demandCommand","error","yellow","magenta","gray","help"]}
|
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.15.
|
|
52
|
+
"@xylabs/ts-scripts-yarn3": "^3.15.7",
|
|
53
53
|
"chalk": "^5.3.0",
|
|
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.15.
|
|
60
|
-
"@xylabs/tsconfig": "^3.15.
|
|
59
|
+
"@xylabs/ts-scripts-yarn3": "^3.15.7",
|
|
60
|
+
"@xylabs/tsconfig": "^3.15.7",
|
|
61
61
|
"publint": "^0.2.9",
|
|
62
62
|
"tsup": "^8.2.4",
|
|
63
63
|
"typescript": "^5.5.4"
|
|
@@ -103,6 +103,6 @@
|
|
|
103
103
|
"package-recompile": "tsup && publint ."
|
|
104
104
|
},
|
|
105
105
|
"sideEffects": false,
|
|
106
|
-
"version": "3.15.
|
|
106
|
+
"version": "3.15.7",
|
|
107
107
|
"type": "module"
|
|
108
108
|
}
|
package/src/actions/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './analyze'
|
|
2
|
-
export * from './eject'
|
|
3
|
-
export * from './sitemap'
|
|
4
|
-
export * from './start'
|
|
5
|
-
export * from './test'
|
|
1
|
+
export * from './analyze.ts'
|
|
2
|
+
export * from './eject.ts'
|
|
3
|
+
export * from './sitemap.ts'
|
|
4
|
+
export * from './start.ts'
|
|
5
|
+
export * from './test.ts'
|
package/src/bin/xy.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './actions'
|
|
2
|
-
export * from './lib'
|
|
1
|
+
export * from './actions/index.ts'
|
|
2
|
+
export * from './lib/index.ts'
|
package/src/lib/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './xyReact'
|
|
1
|
+
export * from './xyReact.ts'
|
package/src/lib/xyReact.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { xyBuildCommands, xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions } from '@xylabs/ts-scripts-yarn3'
|
|
4
4
|
import chalk from 'chalk'
|
|
5
5
|
|
|
6
|
-
import { analyze, eject, sitemap, start } from '../actions'
|
|
6
|
+
import { analyze, eject, sitemap, start } from '../actions/index.ts'
|
|
7
7
|
|
|
8
8
|
export const xyReact = async () => {
|
|
9
9
|
return await xyBuildCommands(xyInstallCommands(xyLintCommands(xyInstallCommands(xyCommonCommands(xyParseOptions())))))
|
package/tsup.config.ts
CHANGED
package/tsconfig.build.json
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"declaration": true,
|
|
4
|
-
"declarationMap": true,
|
|
5
|
-
"downlevelIteration": true,
|
|
6
|
-
"esModuleInterop": true,
|
|
7
|
-
"importHelpers": true,
|
|
8
|
-
"incremental": false,
|
|
9
|
-
"module": "ESNEXT",
|
|
10
|
-
"moduleResolution": "node",
|
|
11
|
-
"noImplicitAny": true,
|
|
12
|
-
"noImplicitOverride": true,
|
|
13
|
-
"outDir": "dist",
|
|
14
|
-
"resolveJsonModule": true,
|
|
15
|
-
"skipDefaultLibCheck": true,
|
|
16
|
-
"skipLibCheck": true,
|
|
17
|
-
"sourceMap": true,
|
|
18
|
-
"strict": true,
|
|
19
|
-
"target": "ESNEXT"
|
|
20
|
-
},
|
|
21
|
-
"exclude": ["src/**/*.spec.*", "dist", "docs", "node_modules"],
|
|
22
|
-
"include": ["src"]
|
|
23
|
-
}
|