@xylabs/ts-scripts-react-yarn3 3.15.7 → 3.15.8
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 +3 -1
- package/dist/actions/analyze.cjs.map +1 -1
- package/dist/actions/analyze.mjs +3 -1
- package/dist/actions/analyze.mjs.map +1 -1
- package/dist/actions/eject.cjs +3 -1
- package/dist/actions/eject.cjs.map +1 -1
- package/dist/actions/eject.mjs +3 -1
- package/dist/actions/eject.mjs.map +1 -1
- package/dist/actions/index.cjs +77 -11
- package/dist/actions/index.cjs.map +1 -1
- package/dist/actions/index.mjs +67 -5
- package/dist/actions/index.mjs.map +1 -1
- package/dist/actions/sitemap.cjs +3 -1
- package/dist/actions/sitemap.cjs.map +1 -1
- package/dist/actions/sitemap.mjs +3 -1
- package/dist/actions/sitemap.mjs.map +1 -1
- package/dist/actions/start.cjs +3 -1
- package/dist/actions/start.cjs.map +1 -1
- package/dist/actions/start.mjs +3 -1
- package/dist/actions/start.mjs.map +1 -1
- package/dist/actions/test.cjs +3 -1
- package/dist/actions/test.cjs.map +1 -1
- package/dist/actions/test.mjs +3 -1
- package/dist/actions/test.mjs.map +1 -1
- package/dist/bin/analyze.cjs +2 -0
- package/dist/bin/analyze.cjs.map +1 -1
- package/dist/bin/analyze.mjs +2 -0
- package/dist/bin/analyze.mjs.map +1 -1
- package/dist/bin/build-ci.cjs +2 -0
- package/dist/bin/build-ci.cjs.map +1 -1
- package/dist/bin/build-ci.mjs +2 -0
- package/dist/bin/build-ci.mjs.map +1 -1
- package/dist/bin/build.cjs +2 -0
- package/dist/bin/build.cjs.map +1 -1
- package/dist/bin/build.mjs +2 -0
- package/dist/bin/build.mjs.map +1 -1
- package/dist/bin/clean.cjs +2 -0
- package/dist/bin/clean.cjs.map +1 -1
- package/dist/bin/clean.mjs +2 -0
- package/dist/bin/clean.mjs.map +1 -1
- package/dist/bin/compile.cjs +2 -0
- package/dist/bin/compile.cjs.map +1 -1
- package/dist/bin/compile.mjs +2 -0
- package/dist/bin/compile.mjs.map +1 -1
- package/dist/bin/cycle.cjs +2 -0
- package/dist/bin/cycle.cjs.map +1 -1
- package/dist/bin/cycle.mjs +2 -0
- package/dist/bin/cycle.mjs.map +1 -1
- package/dist/bin/dead.cjs +2 -0
- package/dist/bin/dead.cjs.map +1 -1
- package/dist/bin/dead.mjs +2 -0
- package/dist/bin/dead.mjs.map +1 -1
- package/dist/bin/deps.cjs +2 -0
- package/dist/bin/deps.cjs.map +1 -1
- package/dist/bin/deps.mjs +2 -0
- package/dist/bin/deps.mjs.map +1 -1
- package/dist/bin/eject.cjs +2 -0
- package/dist/bin/eject.cjs.map +1 -1
- package/dist/bin/eject.mjs +2 -0
- package/dist/bin/eject.mjs.map +1 -1
- package/dist/bin/fix.cjs +2 -0
- package/dist/bin/fix.cjs.map +1 -1
- package/dist/bin/fix.mjs +2 -0
- package/dist/bin/fix.mjs.map +1 -1
- package/dist/bin/gitlint-fix.cjs +2 -0
- package/dist/bin/gitlint-fix.cjs.map +1 -1
- package/dist/bin/gitlint-fix.mjs +2 -0
- package/dist/bin/gitlint-fix.mjs.map +1 -1
- package/dist/bin/gitlint.cjs +2 -0
- package/dist/bin/gitlint.cjs.map +1 -1
- package/dist/bin/gitlint.mjs +2 -0
- package/dist/bin/gitlint.mjs.map +1 -1
- package/dist/bin/license.cjs +2 -0
- package/dist/bin/license.cjs.map +1 -1
- package/dist/bin/license.mjs +2 -0
- package/dist/bin/license.mjs.map +1 -1
- package/dist/bin/lint-clean.cjs +2 -0
- package/dist/bin/lint-clean.cjs.map +1 -1
- package/dist/bin/lint-clean.mjs +2 -0
- package/dist/bin/lint-clean.mjs.map +1 -1
- package/dist/bin/lint-fast.cjs +2 -0
- package/dist/bin/lint-fast.cjs.map +1 -1
- package/dist/bin/lint-fast.mjs +2 -0
- package/dist/bin/lint-fast.mjs.map +1 -1
- package/dist/bin/lint-profile.cjs +2 -0
- package/dist/bin/lint-profile.cjs.map +1 -1
- package/dist/bin/lint-profile.mjs +2 -0
- package/dist/bin/lint-profile.mjs.map +1 -1
- package/dist/bin/lint.cjs +2 -0
- package/dist/bin/lint.cjs.map +1 -1
- package/dist/bin/lint.mjs +2 -0
- package/dist/bin/lint.mjs.map +1 -1
- package/dist/bin/package/clean-outputs.cjs +2 -0
- package/dist/bin/package/clean-outputs.cjs.map +1 -1
- package/dist/bin/package/clean-outputs.mjs +2 -0
- package/dist/bin/package/clean-outputs.mjs.map +1 -1
- package/dist/bin/package/clean-typescript.cjs +2 -0
- package/dist/bin/package/clean-typescript.cjs.map +1 -1
- package/dist/bin/package/clean-typescript.mjs +2 -0
- package/dist/bin/package/clean-typescript.mjs.map +1 -1
- package/dist/bin/package/clean.cjs +2 -0
- package/dist/bin/package/clean.cjs.map +1 -1
- package/dist/bin/package/clean.mjs +2 -0
- package/dist/bin/package/clean.mjs.map +1 -1
- package/dist/bin/package/compile-only.cjs +2 -0
- package/dist/bin/package/compile-only.cjs.map +1 -1
- package/dist/bin/package/compile-only.mjs +2 -0
- package/dist/bin/package/compile-only.mjs.map +1 -1
- package/dist/bin/package/compile-tsup.cjs +2 -0
- package/dist/bin/package/compile-tsup.cjs.map +1 -1
- package/dist/bin/package/compile-tsup.mjs +2 -0
- package/dist/bin/package/compile-tsup.mjs.map +1 -1
- package/dist/bin/package/compile.cjs +2 -0
- package/dist/bin/package/compile.cjs.map +1 -1
- package/dist/bin/package/compile.mjs +2 -0
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/copy-assets-cjs.cjs +2 -0
- package/dist/bin/package/copy-assets-cjs.cjs.map +1 -1
- package/dist/bin/package/copy-assets-cjs.mjs +2 -0
- package/dist/bin/package/copy-assets-cjs.mjs.map +1 -1
- package/dist/bin/package/copy-assets-esm.cjs +2 -0
- package/dist/bin/package/copy-assets-esm.cjs.map +1 -1
- package/dist/bin/package/copy-assets-esm.mjs +2 -0
- package/dist/bin/package/copy-assets-esm.mjs.map +1 -1
- package/dist/bin/package/deps.cjs +2 -0
- package/dist/bin/package/deps.cjs.map +1 -1
- package/dist/bin/package/deps.mjs +2 -0
- package/dist/bin/package/deps.mjs.map +1 -1
- package/dist/bin/package/gen-docs.cjs +2 -0
- package/dist/bin/package/gen-docs.cjs.map +1 -1
- package/dist/bin/package/gen-docs.mjs +2 -0
- package/dist/bin/package/gen-docs.mjs.map +1 -1
- package/dist/bin/package/publint.cjs +2 -0
- package/dist/bin/package/publint.cjs.map +1 -1
- package/dist/bin/package/publint.mjs +2 -0
- package/dist/bin/package/publint.mjs.map +1 -1
- package/dist/bin/package/recompile.cjs +2 -0
- package/dist/bin/package/recompile.cjs.map +1 -1
- package/dist/bin/package/recompile.mjs +2 -0
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/rebuild.cjs +2 -0
- package/dist/bin/rebuild.cjs.map +1 -1
- package/dist/bin/rebuild.mjs +2 -0
- package/dist/bin/rebuild.mjs.map +1 -1
- package/dist/bin/reinstall.cjs +2 -0
- package/dist/bin/reinstall.cjs.map +1 -1
- package/dist/bin/reinstall.mjs +2 -0
- package/dist/bin/reinstall.mjs.map +1 -1
- package/dist/bin/relint.cjs +2 -0
- package/dist/bin/relint.cjs.map +1 -1
- package/dist/bin/relint.mjs +2 -0
- package/dist/bin/relint.mjs.map +1 -1
- package/dist/bin/sitemap.cjs +2 -0
- package/dist/bin/sitemap.cjs.map +1 -1
- package/dist/bin/sitemap.mjs +2 -0
- package/dist/bin/sitemap.mjs.map +1 -1
- package/dist/bin/sonar.cjs +2 -0
- package/dist/bin/sonar.cjs.map +1 -1
- package/dist/bin/sonar.mjs +2 -0
- package/dist/bin/sonar.mjs.map +1 -1
- package/dist/bin/start.cjs +2 -0
- package/dist/bin/start.cjs.map +1 -1
- package/dist/bin/start.mjs +2 -0
- package/dist/bin/start.mjs.map +1 -1
- package/dist/bin/test.cjs +2 -0
- package/dist/bin/test.cjs.map +1 -1
- package/dist/bin/test.mjs +2 -0
- package/dist/bin/test.mjs.map +1 -1
- package/dist/bin/tsconfig-gen-clean.cjs +2 -0
- package/dist/bin/tsconfig-gen-clean.cjs.map +1 -1
- package/dist/bin/tsconfig-gen-clean.mjs +2 -0
- package/dist/bin/tsconfig-gen-clean.mjs.map +1 -1
- package/dist/bin/tsconfig-gen.cjs +2 -0
- package/dist/bin/tsconfig-gen.cjs.map +1 -1
- package/dist/bin/tsconfig-gen.mjs +2 -0
- package/dist/bin/tsconfig-gen.mjs.map +1 -1
- package/dist/bin/up.cjs +2 -0
- package/dist/bin/up.cjs.map +1 -1
- package/dist/bin/up.mjs +2 -0
- package/dist/bin/up.mjs.map +1 -1
- package/dist/bin/updo.cjs +2 -0
- package/dist/bin/updo.cjs.map +1 -1
- package/dist/bin/updo.mjs +2 -0
- package/dist/bin/updo.mjs.map +1 -1
- package/dist/bin/xy.cjs +105 -2
- package/dist/bin/xy.cjs.map +1 -1
- package/dist/bin/xy.mjs +83 -1
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/bin/yarn3only.cjs +2 -0
- package/dist/bin/yarn3only.cjs.map +1 -1
- package/dist/bin/yarn3only.mjs +2 -0
- package/dist/bin/yarn3only.mjs.map +1 -1
- package/dist/index.cjs +119 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +98 -2
- package/dist/index.mjs.map +1 -1
- package/dist/lib/index.cjs +100 -3
- package/dist/lib/index.cjs.map +1 -1
- package/dist/lib/index.mjs +84 -1
- package/dist/lib/index.mjs.map +1 -1
- package/dist/lib/xyReact.cjs +58 -8
- package/dist/lib/xyReact.cjs.map +1 -1
- package/dist/lib/xyReact.mjs +52 -2
- package/dist/lib/xyReact.mjs.map +1 -1
- package/package.json +4 -4
- package/tsconfig.build.json +29 -0
- package/tsup.config.ts +13 -3
package/dist/lib/xyReact.cjs
CHANGED
|
@@ -28,35 +28,85 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
mod
|
|
29
29
|
));
|
|
30
30
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
31
|
+
|
|
32
|
+
// src/lib/xyReact.ts
|
|
31
33
|
var xyReact_exports = {};
|
|
32
34
|
__export(xyReact_exports, {
|
|
33
35
|
xyReact: () => xyReact
|
|
34
36
|
});
|
|
35
37
|
module.exports = __toCommonJS(xyReact_exports);
|
|
36
|
-
var
|
|
38
|
+
var import_ts_scripts_yarn35 = require("@xylabs/ts-scripts-yarn3");
|
|
37
39
|
var import_chalk = __toESM(require("chalk"), 1);
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
|
|
41
|
+
// src/actions/analyze.ts
|
|
42
|
+
var import_ts_scripts_yarn3 = require("@xylabs/ts-scripts-yarn3");
|
|
43
|
+
var analyze = /* @__PURE__ */ __name(() => {
|
|
44
|
+
return (0, import_ts_scripts_yarn3.runSteps)("Analyze", [
|
|
45
|
+
[
|
|
46
|
+
"yarn",
|
|
47
|
+
[
|
|
48
|
+
"source-map-explorer",
|
|
49
|
+
"build/static/js/*.ts"
|
|
50
|
+
]
|
|
51
|
+
]
|
|
52
|
+
]);
|
|
53
|
+
}, "analyze");
|
|
54
|
+
|
|
55
|
+
// src/actions/eject.ts
|
|
56
|
+
var import_ts_scripts_yarn32 = require("@xylabs/ts-scripts-yarn3");
|
|
57
|
+
var eject = /* @__PURE__ */ __name(() => {
|
|
58
|
+
return (0, import_ts_scripts_yarn32.runSteps)("Eject", [
|
|
59
|
+
[
|
|
60
|
+
"yarn",
|
|
61
|
+
"react-scripts eject"
|
|
62
|
+
]
|
|
63
|
+
]);
|
|
64
|
+
}, "eject");
|
|
65
|
+
|
|
66
|
+
// src/actions/sitemap.ts
|
|
67
|
+
var import_ts_scripts_yarn33 = require("@xylabs/ts-scripts-yarn3");
|
|
68
|
+
var sitemap = /* @__PURE__ */ __name(() => {
|
|
69
|
+
return (0, import_ts_scripts_yarn33.runSteps)("Sitemap", [
|
|
70
|
+
[
|
|
71
|
+
"ts-node-script",
|
|
72
|
+
"./scripts/sitemap.ts"
|
|
73
|
+
]
|
|
74
|
+
]);
|
|
75
|
+
}, "sitemap");
|
|
76
|
+
|
|
77
|
+
// src/actions/start.ts
|
|
78
|
+
var import_ts_scripts_yarn34 = require("@xylabs/ts-scripts-yarn3");
|
|
79
|
+
var start = /* @__PURE__ */ __name(() => {
|
|
80
|
+
return (0, import_ts_scripts_yarn34.runSteps)("Start", [
|
|
81
|
+
[
|
|
82
|
+
"yarn",
|
|
83
|
+
"react-scripts start"
|
|
84
|
+
]
|
|
85
|
+
]);
|
|
86
|
+
}, "start");
|
|
87
|
+
|
|
88
|
+
// src/lib/xyReact.ts
|
|
89
|
+
var xyReact = /* @__PURE__ */ __name(async () => {
|
|
90
|
+
return await (0, import_ts_scripts_yarn35.xyBuildCommands)((0, import_ts_scripts_yarn35.xyInstallCommands)((0, import_ts_scripts_yarn35.xyLintCommands)((0, import_ts_scripts_yarn35.xyInstallCommands)((0, import_ts_scripts_yarn35.xyCommonCommands)((0, import_ts_scripts_yarn35.xyParseOptions)()))))).command("analyze", "Analyze - Analyze Bundles", (yargs) => {
|
|
41
91
|
return yargs;
|
|
42
92
|
}, (argv) => {
|
|
43
93
|
if (argv.verbose) console.log("Analyzing");
|
|
44
|
-
process.exitCode =
|
|
94
|
+
process.exitCode = analyze();
|
|
45
95
|
}).command("eject", "Eject - Eject React project", (yargs) => {
|
|
46
96
|
return yargs;
|
|
47
97
|
}, (argv) => {
|
|
48
98
|
if (argv.verbose) console.log("Ejecting");
|
|
49
|
-
process.exitCode =
|
|
99
|
+
process.exitCode = eject();
|
|
50
100
|
}).command("sitemap", "Sitemap - Generate sitemap for the project", (yargs) => {
|
|
51
101
|
return yargs;
|
|
52
102
|
}, (argv) => {
|
|
53
103
|
if (argv.verbose) console.log("Generating Sitemap");
|
|
54
|
-
process.exitCode =
|
|
104
|
+
process.exitCode = sitemap();
|
|
55
105
|
}).command("start", "Start - Start project in browser", (yargs) => {
|
|
56
106
|
return yargs;
|
|
57
107
|
}, (argv) => {
|
|
58
108
|
if (argv.verbose) console.log("Starting");
|
|
59
|
-
process.exitCode =
|
|
109
|
+
process.exitCode = start();
|
|
60
110
|
}).demandCommand(1).command("*", "", () => {
|
|
61
111
|
console.error(import_chalk.default.yellow(`Command not found [${import_chalk.default.magenta(process.argv[2])}]`));
|
|
62
112
|
console.log(import_chalk.default.gray("Try 'yarn xy --help' for list of commands"));
|
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/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":"
|
|
1
|
+
{"version":3,"sources":["../../src/lib/xyReact.ts","../../src/actions/analyze.ts","../../src/actions/eject.ts","../../src/actions/sitemap.ts","../../src/actions/start.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","import { runSteps } from '@xylabs/ts-scripts-yarn3'\n\nexport const analyze = () => {\n return runSteps('Analyze', [['yarn', ['source-map-explorer', 'build/static/js/*.ts']]])\n}\n","#!/usr/bin/env node\nimport { runSteps } from '@xylabs/ts-scripts-yarn3'\n\nexport const eject = () => {\n return runSteps('Eject', [['yarn', 'react-scripts eject']])\n}\n","#!/usr/bin/env node\nimport { runSteps } from '@xylabs/ts-scripts-yarn3'\n\nexport const sitemap = () => {\n return runSteps('Sitemap', [['ts-node-script', './scripts/sitemap.ts']])\n}\n","#!/usr/bin/env node\nimport { runSteps } from '@xylabs/ts-scripts-yarn3'\n\nexport const start = () => {\n return runSteps('Start', [['yarn', 'react-scripts start']])\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAAA,2BAAqG;AACrG,mBAAkB;;;ACHlB,8BAAyB;AAElB,IAAMC,UAAU,6BAAA;AACrB,aAAOC,kCAAS,WAAW;IAAC;MAAC;MAAQ;QAAC;QAAuB;;;GAAyB;AACxF,GAFuB;;;ACDvB,IAAAC,2BAAyB;AAElB,IAAMC,QAAQ,6BAAA;AACnB,aAAOC,mCAAS,SAAS;IAAC;MAAC;MAAQ;;GAAuB;AAC5D,GAFqB;;;ACFrB,IAAAC,2BAAyB;AAElB,IAAMC,UAAU,6BAAA;AACrB,aAAOC,mCAAS,WAAW;IAAC;MAAC;MAAkB;;GAAwB;AACzE,GAFuB;;;ACFvB,IAAAC,2BAAyB;AAElB,IAAMC,QAAQ,6BAAA;AACnB,aAAOC,mCAAS,SAAS;IAAC;MAAC;MAAQ;;GAAuB;AAC5D,GAFqB;;;AJId,IAAMC,UAAU,mCAAA;AACrB,SAAO,UAAMC,8CAAgBC,gDAAkBC,6CAAeD,gDAAkBE,+CAAiBC,yCAAAA,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,WAAWC,QAAAA;EACrB,CAAA,EAEDR,QACC,SACA,+BACA,CAACC,UAAAA;AACC,WAAOA;EACT,GACA,CAACC,SAAAA;AACC,QAAIA,KAAKC,QAASC,SAAQC,IAAI,UAAA;AAC9BC,YAAQC,WAAWE,MAAAA;EACrB,CAAA,EAEDT,QACC,WACA,8CACA,CAACC,UAAAA;AACC,WAAOA;EACT,GACA,CAACC,SAAAA;AACC,QAAIA,KAAKC,QAASC,SAAQC,IAAI,oBAAA;AAC9BC,YAAQC,WAAWG,QAAAA;EACrB,CAAA,EAEDV,QACC,SACA,oCACA,CAACC,UAAAA;AACC,WAAOA;EACT,GACA,CAACC,SAAAA;AACC,QAAIA,KAAKC,QAASC,SAAQC,IAAI,UAAA;AAC9BC,YAAQC,WAAWI,MAAAA;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":["import_ts_scripts_yarn3","analyze","runSteps","import_ts_scripts_yarn3","eject","runSteps","import_ts_scripts_yarn3","sitemap","runSteps","import_ts_scripts_yarn3","start","runSteps","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,10 +1,60 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
4
|
+
|
|
5
|
+
// src/lib/xyReact.ts
|
|
4
6
|
import { xyBuildCommands, xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions } from "@xylabs/ts-scripts-yarn3";
|
|
5
7
|
import chalk from "chalk";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
|
|
9
|
+
// src/actions/analyze.ts
|
|
10
|
+
import { runSteps } from "@xylabs/ts-scripts-yarn3";
|
|
11
|
+
var analyze = /* @__PURE__ */ __name(() => {
|
|
12
|
+
return runSteps("Analyze", [
|
|
13
|
+
[
|
|
14
|
+
"yarn",
|
|
15
|
+
[
|
|
16
|
+
"source-map-explorer",
|
|
17
|
+
"build/static/js/*.ts"
|
|
18
|
+
]
|
|
19
|
+
]
|
|
20
|
+
]);
|
|
21
|
+
}, "analyze");
|
|
22
|
+
|
|
23
|
+
// src/actions/eject.ts
|
|
24
|
+
import { runSteps as runSteps2 } from "@xylabs/ts-scripts-yarn3";
|
|
25
|
+
var eject = /* @__PURE__ */ __name(() => {
|
|
26
|
+
return runSteps2("Eject", [
|
|
27
|
+
[
|
|
28
|
+
"yarn",
|
|
29
|
+
"react-scripts eject"
|
|
30
|
+
]
|
|
31
|
+
]);
|
|
32
|
+
}, "eject");
|
|
33
|
+
|
|
34
|
+
// src/actions/sitemap.ts
|
|
35
|
+
import { runSteps as runSteps3 } from "@xylabs/ts-scripts-yarn3";
|
|
36
|
+
var sitemap = /* @__PURE__ */ __name(() => {
|
|
37
|
+
return runSteps3("Sitemap", [
|
|
38
|
+
[
|
|
39
|
+
"ts-node-script",
|
|
40
|
+
"./scripts/sitemap.ts"
|
|
41
|
+
]
|
|
42
|
+
]);
|
|
43
|
+
}, "sitemap");
|
|
44
|
+
|
|
45
|
+
// src/actions/start.ts
|
|
46
|
+
import { runSteps as runSteps4 } from "@xylabs/ts-scripts-yarn3";
|
|
47
|
+
var start = /* @__PURE__ */ __name(() => {
|
|
48
|
+
return runSteps4("Start", [
|
|
49
|
+
[
|
|
50
|
+
"yarn",
|
|
51
|
+
"react-scripts start"
|
|
52
|
+
]
|
|
53
|
+
]);
|
|
54
|
+
}, "start");
|
|
55
|
+
|
|
56
|
+
// src/lib/xyReact.ts
|
|
57
|
+
var xyReact = /* @__PURE__ */ __name(async () => {
|
|
8
58
|
return await xyBuildCommands(xyInstallCommands(xyLintCommands(xyInstallCommands(xyCommonCommands(xyParseOptions()))))).command("analyze", "Analyze - Analyze Bundles", (yargs) => {
|
|
9
59
|
return yargs;
|
|
10
60
|
}, (argv) => {
|
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/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":"
|
|
1
|
+
{"version":3,"sources":["../../src/lib/xyReact.ts","../../src/actions/analyze.ts","../../src/actions/eject.ts","../../src/actions/sitemap.ts","../../src/actions/start.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","import { runSteps } from '@xylabs/ts-scripts-yarn3'\n\nexport const analyze = () => {\n return runSteps('Analyze', [['yarn', ['source-map-explorer', 'build/static/js/*.ts']]])\n}\n","#!/usr/bin/env node\nimport { runSteps } from '@xylabs/ts-scripts-yarn3'\n\nexport const eject = () => {\n return runSteps('Eject', [['yarn', 'react-scripts eject']])\n}\n","#!/usr/bin/env node\nimport { runSteps } from '@xylabs/ts-scripts-yarn3'\n\nexport const sitemap = () => {\n return runSteps('Sitemap', [['ts-node-script', './scripts/sitemap.ts']])\n}\n","#!/usr/bin/env node\nimport { runSteps } from '@xylabs/ts-scripts-yarn3'\n\nexport const start = () => {\n return runSteps('Start', [['yarn', 'react-scripts start']])\n}\n"],"mappings":";;;;;AAEA,SAASA,iBAAiBC,kBAAkBC,mBAAmBC,gBAAgBC,sBAAsB;AACrG,OAAOC,WAAW;;;ACHlB,SAASC,gBAAgB;AAElB,IAAMC,UAAU,6BAAA;AACrB,SAAOC,SAAS,WAAW;IAAC;MAAC;MAAQ;QAAC;QAAuB;;;GAAyB;AACxF,GAFuB;;;ACDvB,SAASC,YAAAA,iBAAgB;AAElB,IAAMC,QAAQ,6BAAA;AACnB,SAAOC,UAAS,SAAS;IAAC;MAAC;MAAQ;;GAAuB;AAC5D,GAFqB;;;ACFrB,SAASC,YAAAA,iBAAgB;AAElB,IAAMC,UAAU,6BAAA;AACrB,SAAOC,UAAS,WAAW;IAAC;MAAC;MAAkB;;GAAwB;AACzE,GAFuB;;;ACFvB,SAASC,YAAAA,iBAAgB;AAElB,IAAMC,QAAQ,6BAAA;AACnB,SAAOC,UAAS,SAAS;IAAC;MAAC;MAAQ;;GAAuB;AAC5D,GAFqB;;;AJId,IAAMC,UAAU,mCAAA;AACrB,SAAO,MAAMC,gBAAgBC,kBAAkBC,eAAeD,kBAAkBE,iBAAiBC,eAAAA,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,WAAWC,QAAAA;EACrB,CAAA,EAEDR,QACC,SACA,+BACA,CAACC,UAAAA;AACC,WAAOA;EACT,GACA,CAACC,SAAAA;AACC,QAAIA,KAAKC,QAASC,SAAQC,IAAI,UAAA;AAC9BC,YAAQC,WAAWE,MAAAA;EACrB,CAAA,EAEDT,QACC,WACA,8CACA,CAACC,UAAAA;AACC,WAAOA;EACT,GACA,CAACC,SAAAA;AACC,QAAIA,KAAKC,QAASC,SAAQC,IAAI,oBAAA;AAC9BC,YAAQC,WAAWG,QAAAA;EACrB,CAAA,EAEDV,QACC,SACA,oCACA,CAACC,UAAAA;AACC,WAAOA;EACT,GACA,CAACC,SAAAA;AACC,QAAIA,KAAKC,QAASC,SAAQC,IAAI,UAAA;AAC9BC,YAAQC,WAAWI,MAAAA;EACrB,CAAA,EAEDC,cAAc,CAAA,EACdZ,QAAQ,KAAK,IAAI,MAAA;AAChBI,YAAQS,MAAMC,MAAMC,OAAO,sBAAsBD,MAAME,QAAQV,QAAQJ,KAAK,CAAA,CAAE,CAAA,GAAI,CAAA;AAClFE,YAAQC,IAAIS,MAAMG,KAAK,2CAAA,CAAA;EACzB,CAAA,EACCC,KAAI,EAAGhB;AACZ,GApDuB;","names":["xyBuildCommands","xyCommonCommands","xyInstallCommands","xyLintCommands","xyParseOptions","chalk","runSteps","analyze","runSteps","runSteps","eject","runSteps","runSteps","sitemap","runSteps","runSteps","start","runSteps","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/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.8",
|
|
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.8",
|
|
60
|
+
"@xylabs/tsconfig": "^3.15.8",
|
|
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.8",
|
|
107
107
|
"type": "module"
|
|
108
108
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"allowImportingTsExtensions": true,
|
|
4
|
+
"allowSyntheticDefaultImports": true,
|
|
5
|
+
"declaration": true,
|
|
6
|
+
"declarationMap": true,
|
|
7
|
+
"downlevelIteration": true,
|
|
8
|
+
"emitDecoratorMetadata": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"experimentalDecorators": true,
|
|
11
|
+
"isolatedModules": true,
|
|
12
|
+
"importHelpers": true,
|
|
13
|
+
"incremental": false,
|
|
14
|
+
"module": "NodeNext",
|
|
15
|
+
"moduleResolution": "NodeNext",
|
|
16
|
+
"noImplicitAny": true,
|
|
17
|
+
"noImplicitOverride": true,
|
|
18
|
+
"outDir": "dist",
|
|
19
|
+
"removeComments": true,
|
|
20
|
+
"resolveJsonModule": true,
|
|
21
|
+
"skipDefaultLibCheck": true,
|
|
22
|
+
"skipLibCheck": true,
|
|
23
|
+
"sourceMap": true,
|
|
24
|
+
"strict": true,
|
|
25
|
+
"target": "ESNext",
|
|
26
|
+
},
|
|
27
|
+
"exclude": [".github", ".vscode", ".yarn", "dist", "node_modules", "storybook-static", "build"],
|
|
28
|
+
"include": ["src"]
|
|
29
|
+
}
|
package/tsup.config.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineConfig } from 'tsup'
|
|
2
2
|
|
|
3
3
|
export default defineConfig({
|
|
4
|
-
bundle:
|
|
4
|
+
bundle: true,
|
|
5
5
|
cjsInterop: true,
|
|
6
6
|
clean: false,
|
|
7
7
|
dts: {
|
|
@@ -9,9 +9,19 @@ export default defineConfig({
|
|
|
9
9
|
},
|
|
10
10
|
entry: ['src'],
|
|
11
11
|
format: ['cjs', 'esm'],
|
|
12
|
+
outExtension({ format }) {
|
|
13
|
+
if (format === 'cjs') {
|
|
14
|
+
return {
|
|
15
|
+
js: '.cjs',
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return {
|
|
19
|
+
js: '.mjs',
|
|
20
|
+
}
|
|
21
|
+
},
|
|
12
22
|
outDir: 'dist',
|
|
13
|
-
outExtension: ({ format }) => (format === 'esm' ? { js: '.mjs' } : { js: '.cjs' }),
|
|
14
23
|
sourcemap: true,
|
|
15
24
|
splitting: false,
|
|
16
|
-
|
|
25
|
+
target: 'esnext',
|
|
26
|
+
tsconfig: 'tsconfig.build.json',
|
|
17
27
|
})
|