@xylabs/ts-scripts-react-yarn3 3.15.6 → 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 +14 -3
- package/dist/actions/analyze.cjs.map +1 -1
- package/dist/actions/analyze.mjs +15 -3
- package/dist/actions/analyze.mjs.map +1 -1
- package/dist/actions/eject.cjs +11 -3
- package/dist/actions/eject.cjs.map +1 -1
- package/dist/actions/eject.mjs +12 -3
- 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 +11 -3
- package/dist/actions/sitemap.cjs.map +1 -1
- package/dist/actions/sitemap.mjs +12 -3
- package/dist/actions/sitemap.mjs.map +1 -1
- package/dist/actions/start.cjs +11 -3
- package/dist/actions/start.cjs.map +1 -1
- package/dist/actions/start.mjs +12 -3
- package/dist/actions/start.mjs.map +1 -1
- package/dist/actions/test.cjs +11 -3
- package/dist/actions/test.cjs.map +1 -1
- package/dist/actions/test.mjs +12 -3
- 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 +6 -1
- package/dist/bin/package/compile-only.cjs.map +1 -1
- package/dist/bin/package/compile-only.mjs +6 -1
- package/dist/bin/package/compile-only.mjs.map +1 -1
- package/dist/bin/package/compile-tsup.cjs +5 -1
- package/dist/bin/package/compile-tsup.cjs.map +1 -1
- package/dist/bin/package/compile-tsup.mjs +5 -1
- package/dist/bin/package/compile-tsup.mjs.map +1 -1
- package/dist/bin/package/compile.cjs +5 -1
- package/dist/bin/package/compile.cjs.map +1 -1
- package/dist/bin/package/compile.mjs +5 -1
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/copy-assets-cjs.cjs +5 -1
- package/dist/bin/package/copy-assets-cjs.cjs.map +1 -1
- package/dist/bin/package/copy-assets-cjs.mjs +5 -1
- package/dist/bin/package/copy-assets-cjs.mjs.map +1 -1
- package/dist/bin/package/copy-assets-esm.cjs +5 -1
- package/dist/bin/package/copy-assets-esm.cjs.map +1 -1
- package/dist/bin/package/copy-assets-esm.mjs +5 -1
- 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 +76 -45
- package/dist/lib/xyReact.cjs.map +1 -1
- package/dist/lib/xyReact.mjs +76 -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/tsconfig.build.json +10 -4
- package/tsup.config.ts +12 -2
package/dist/lib/index.cjs
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
6
13
|
var __copyProps = (to, from, except, desc) => {
|
|
7
14
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
15
|
for (let key of __getOwnPropNames(from))
|
|
@@ -11,13 +18,103 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
11
18
|
}
|
|
12
19
|
return to;
|
|
13
20
|
};
|
|
14
|
-
var
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
15
29
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
|
|
31
|
+
// src/lib/index.ts
|
|
16
32
|
var lib_exports = {};
|
|
33
|
+
__export(lib_exports, {
|
|
34
|
+
xyReact: () => xyReact
|
|
35
|
+
});
|
|
17
36
|
module.exports = __toCommonJS(lib_exports);
|
|
18
|
-
|
|
37
|
+
|
|
38
|
+
// src/lib/xyReact.ts
|
|
39
|
+
var import_ts_scripts_yarn35 = require("@xylabs/ts-scripts-yarn3");
|
|
40
|
+
var import_chalk = __toESM(require("chalk"), 1);
|
|
41
|
+
|
|
42
|
+
// src/actions/analyze.ts
|
|
43
|
+
var import_ts_scripts_yarn3 = require("@xylabs/ts-scripts-yarn3");
|
|
44
|
+
var analyze = /* @__PURE__ */ __name(() => {
|
|
45
|
+
return (0, import_ts_scripts_yarn3.runSteps)("Analyze", [
|
|
46
|
+
[
|
|
47
|
+
"yarn",
|
|
48
|
+
[
|
|
49
|
+
"source-map-explorer",
|
|
50
|
+
"build/static/js/*.ts"
|
|
51
|
+
]
|
|
52
|
+
]
|
|
53
|
+
]);
|
|
54
|
+
}, "analyze");
|
|
55
|
+
|
|
56
|
+
// src/actions/eject.ts
|
|
57
|
+
var import_ts_scripts_yarn32 = require("@xylabs/ts-scripts-yarn3");
|
|
58
|
+
var eject = /* @__PURE__ */ __name(() => {
|
|
59
|
+
return (0, import_ts_scripts_yarn32.runSteps)("Eject", [
|
|
60
|
+
[
|
|
61
|
+
"yarn",
|
|
62
|
+
"react-scripts eject"
|
|
63
|
+
]
|
|
64
|
+
]);
|
|
65
|
+
}, "eject");
|
|
66
|
+
|
|
67
|
+
// src/actions/sitemap.ts
|
|
68
|
+
var import_ts_scripts_yarn33 = require("@xylabs/ts-scripts-yarn3");
|
|
69
|
+
var sitemap = /* @__PURE__ */ __name(() => {
|
|
70
|
+
return (0, import_ts_scripts_yarn33.runSteps)("Sitemap", [
|
|
71
|
+
[
|
|
72
|
+
"ts-node-script",
|
|
73
|
+
"./scripts/sitemap.ts"
|
|
74
|
+
]
|
|
75
|
+
]);
|
|
76
|
+
}, "sitemap");
|
|
77
|
+
|
|
78
|
+
// src/actions/start.ts
|
|
79
|
+
var import_ts_scripts_yarn34 = require("@xylabs/ts-scripts-yarn3");
|
|
80
|
+
var start = /* @__PURE__ */ __name(() => {
|
|
81
|
+
return (0, import_ts_scripts_yarn34.runSteps)("Start", [
|
|
82
|
+
[
|
|
83
|
+
"yarn",
|
|
84
|
+
"react-scripts start"
|
|
85
|
+
]
|
|
86
|
+
]);
|
|
87
|
+
}, "start");
|
|
88
|
+
|
|
89
|
+
// src/lib/xyReact.ts
|
|
90
|
+
var xyReact = /* @__PURE__ */ __name(async () => {
|
|
91
|
+
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) => {
|
|
92
|
+
return yargs;
|
|
93
|
+
}, (argv) => {
|
|
94
|
+
if (argv.verbose) console.log("Analyzing");
|
|
95
|
+
process.exitCode = analyze();
|
|
96
|
+
}).command("eject", "Eject - Eject React project", (yargs) => {
|
|
97
|
+
return yargs;
|
|
98
|
+
}, (argv) => {
|
|
99
|
+
if (argv.verbose) console.log("Ejecting");
|
|
100
|
+
process.exitCode = eject();
|
|
101
|
+
}).command("sitemap", "Sitemap - Generate sitemap for the project", (yargs) => {
|
|
102
|
+
return yargs;
|
|
103
|
+
}, (argv) => {
|
|
104
|
+
if (argv.verbose) console.log("Generating Sitemap");
|
|
105
|
+
process.exitCode = sitemap();
|
|
106
|
+
}).command("start", "Start - Start project in browser", (yargs) => {
|
|
107
|
+
return yargs;
|
|
108
|
+
}, (argv) => {
|
|
109
|
+
if (argv.verbose) console.log("Starting");
|
|
110
|
+
process.exitCode = start();
|
|
111
|
+
}).demandCommand(1).command("*", "", () => {
|
|
112
|
+
console.error(import_chalk.default.yellow(`Command not found [${import_chalk.default.magenta(process.argv[2])}]`));
|
|
113
|
+
console.log(import_chalk.default.gray("Try 'yarn xy --help' for list of commands"));
|
|
114
|
+
}).help().argv;
|
|
115
|
+
}, "xyReact");
|
|
19
116
|
// Annotate the CommonJS export names for ESM import in node:
|
|
20
117
|
0 && (module.exports = {
|
|
21
|
-
|
|
118
|
+
xyReact
|
|
22
119
|
});
|
|
23
120
|
//# sourceMappingURL=index.cjs.map
|
package/dist/lib/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/index.ts"],"sourcesContent":["export * from './xyReact'\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/lib/index.ts","../../src/lib/xyReact.ts","../../src/actions/analyze.ts","../../src/actions/eject.ts","../../src/actions/sitemap.ts","../../src/actions/start.ts"],"sourcesContent":["export * from './xyReact.ts'\n","#!/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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;ACEA,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/index.mjs
CHANGED
|
@@ -1,2 +1,85 @@
|
|
|
1
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
|
|
4
|
+
// src/lib/xyReact.ts
|
|
5
|
+
import { xyBuildCommands, xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions } from "@xylabs/ts-scripts-yarn3";
|
|
6
|
+
import chalk from "chalk";
|
|
7
|
+
|
|
8
|
+
// src/actions/analyze.ts
|
|
9
|
+
import { runSteps } from "@xylabs/ts-scripts-yarn3";
|
|
10
|
+
var analyze = /* @__PURE__ */ __name(() => {
|
|
11
|
+
return runSteps("Analyze", [
|
|
12
|
+
[
|
|
13
|
+
"yarn",
|
|
14
|
+
[
|
|
15
|
+
"source-map-explorer",
|
|
16
|
+
"build/static/js/*.ts"
|
|
17
|
+
]
|
|
18
|
+
]
|
|
19
|
+
]);
|
|
20
|
+
}, "analyze");
|
|
21
|
+
|
|
22
|
+
// src/actions/eject.ts
|
|
23
|
+
import { runSteps as runSteps2 } from "@xylabs/ts-scripts-yarn3";
|
|
24
|
+
var eject = /* @__PURE__ */ __name(() => {
|
|
25
|
+
return runSteps2("Eject", [
|
|
26
|
+
[
|
|
27
|
+
"yarn",
|
|
28
|
+
"react-scripts eject"
|
|
29
|
+
]
|
|
30
|
+
]);
|
|
31
|
+
}, "eject");
|
|
32
|
+
|
|
33
|
+
// src/actions/sitemap.ts
|
|
34
|
+
import { runSteps as runSteps3 } from "@xylabs/ts-scripts-yarn3";
|
|
35
|
+
var sitemap = /* @__PURE__ */ __name(() => {
|
|
36
|
+
return runSteps3("Sitemap", [
|
|
37
|
+
[
|
|
38
|
+
"ts-node-script",
|
|
39
|
+
"./scripts/sitemap.ts"
|
|
40
|
+
]
|
|
41
|
+
]);
|
|
42
|
+
}, "sitemap");
|
|
43
|
+
|
|
44
|
+
// src/actions/start.ts
|
|
45
|
+
import { runSteps as runSteps4 } from "@xylabs/ts-scripts-yarn3";
|
|
46
|
+
var start = /* @__PURE__ */ __name(() => {
|
|
47
|
+
return runSteps4("Start", [
|
|
48
|
+
[
|
|
49
|
+
"yarn",
|
|
50
|
+
"react-scripts start"
|
|
51
|
+
]
|
|
52
|
+
]);
|
|
53
|
+
}, "start");
|
|
54
|
+
|
|
55
|
+
// src/lib/xyReact.ts
|
|
56
|
+
var xyReact = /* @__PURE__ */ __name(async () => {
|
|
57
|
+
return await xyBuildCommands(xyInstallCommands(xyLintCommands(xyInstallCommands(xyCommonCommands(xyParseOptions()))))).command("analyze", "Analyze - Analyze Bundles", (yargs) => {
|
|
58
|
+
return yargs;
|
|
59
|
+
}, (argv) => {
|
|
60
|
+
if (argv.verbose) console.log("Analyzing");
|
|
61
|
+
process.exitCode = analyze();
|
|
62
|
+
}).command("eject", "Eject - Eject React project", (yargs) => {
|
|
63
|
+
return yargs;
|
|
64
|
+
}, (argv) => {
|
|
65
|
+
if (argv.verbose) console.log("Ejecting");
|
|
66
|
+
process.exitCode = eject();
|
|
67
|
+
}).command("sitemap", "Sitemap - Generate sitemap for the project", (yargs) => {
|
|
68
|
+
return yargs;
|
|
69
|
+
}, (argv) => {
|
|
70
|
+
if (argv.verbose) console.log("Generating Sitemap");
|
|
71
|
+
process.exitCode = sitemap();
|
|
72
|
+
}).command("start", "Start - Start project in browser", (yargs) => {
|
|
73
|
+
return yargs;
|
|
74
|
+
}, (argv) => {
|
|
75
|
+
if (argv.verbose) console.log("Starting");
|
|
76
|
+
process.exitCode = start();
|
|
77
|
+
}).demandCommand(1).command("*", "", () => {
|
|
78
|
+
console.error(chalk.yellow(`Command not found [${chalk.magenta(process.argv[2])}]`));
|
|
79
|
+
console.log(chalk.gray("Try 'yarn xy --help' for list of commands"));
|
|
80
|
+
}).help().argv;
|
|
81
|
+
}, "xyReact");
|
|
82
|
+
export {
|
|
83
|
+
xyReact
|
|
84
|
+
};
|
|
2
85
|
//# sourceMappingURL=index.mjs.map
|
package/dist/lib/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/
|
|
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/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 });
|
|
@@ -27,60 +28,90 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
28
|
mod
|
|
28
29
|
));
|
|
29
30
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
31
|
+
|
|
32
|
+
// src/lib/xyReact.ts
|
|
30
33
|
var xyReact_exports = {};
|
|
31
34
|
__export(xyReact_exports, {
|
|
32
35
|
xyReact: () => xyReact
|
|
33
36
|
});
|
|
34
37
|
module.exports = __toCommonJS(xyReact_exports);
|
|
35
|
-
var
|
|
38
|
+
var import_ts_scripts_yarn35 = require("@xylabs/ts-scripts-yarn3");
|
|
36
39
|
var import_chalk = __toESM(require("chalk"), 1);
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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) => {
|
|
91
|
+
return yargs;
|
|
92
|
+
}, (argv) => {
|
|
93
|
+
if (argv.verbose) console.log("Analyzing");
|
|
94
|
+
process.exitCode = analyze();
|
|
95
|
+
}).command("eject", "Eject - Eject React project", (yargs) => {
|
|
96
|
+
return yargs;
|
|
97
|
+
}, (argv) => {
|
|
98
|
+
if (argv.verbose) console.log("Ejecting");
|
|
99
|
+
process.exitCode = eject();
|
|
100
|
+
}).command("sitemap", "Sitemap - Generate sitemap for the project", (yargs) => {
|
|
101
|
+
return yargs;
|
|
102
|
+
}, (argv) => {
|
|
103
|
+
if (argv.verbose) console.log("Generating Sitemap");
|
|
104
|
+
process.exitCode = sitemap();
|
|
105
|
+
}).command("start", "Start - Start project in browser", (yargs) => {
|
|
106
|
+
return yargs;
|
|
107
|
+
}, (argv) => {
|
|
108
|
+
if (argv.verbose) console.log("Starting");
|
|
109
|
+
process.exitCode = start();
|
|
110
|
+
}).demandCommand(1).command("*", "", () => {
|
|
80
111
|
console.error(import_chalk.default.yellow(`Command not found [${import_chalk.default.magenta(process.argv[2])}]`));
|
|
81
112
|
console.log(import_chalk.default.gray("Try 'yarn xy --help' for list of commands"));
|
|
82
113
|
}).help().argv;
|
|
83
|
-
};
|
|
114
|
+
}, "xyReact");
|
|
84
115
|
// Annotate the CommonJS export names for ESM import in node:
|
|
85
116
|
0 && (module.exports = {
|
|
86
117
|
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","../../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,53 +1,85 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
4
|
+
|
|
5
|
+
// src/lib/xyReact.ts
|
|
2
6
|
import { xyBuildCommands, xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions } from "@xylabs/ts-scripts-yarn3";
|
|
3
7
|
import chalk from "chalk";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
)
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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 () => {
|
|
58
|
+
return await xyBuildCommands(xyInstallCommands(xyLintCommands(xyInstallCommands(xyCommonCommands(xyParseOptions()))))).command("analyze", "Analyze - Analyze Bundles", (yargs) => {
|
|
59
|
+
return yargs;
|
|
60
|
+
}, (argv) => {
|
|
61
|
+
if (argv.verbose) console.log("Analyzing");
|
|
62
|
+
process.exitCode = analyze();
|
|
63
|
+
}).command("eject", "Eject - Eject React project", (yargs) => {
|
|
64
|
+
return yargs;
|
|
65
|
+
}, (argv) => {
|
|
66
|
+
if (argv.verbose) console.log("Ejecting");
|
|
67
|
+
process.exitCode = eject();
|
|
68
|
+
}).command("sitemap", "Sitemap - Generate sitemap for the project", (yargs) => {
|
|
69
|
+
return yargs;
|
|
70
|
+
}, (argv) => {
|
|
71
|
+
if (argv.verbose) console.log("Generating Sitemap");
|
|
72
|
+
process.exitCode = sitemap();
|
|
73
|
+
}).command("start", "Start - Start project in browser", (yargs) => {
|
|
74
|
+
return yargs;
|
|
75
|
+
}, (argv) => {
|
|
76
|
+
if (argv.verbose) console.log("Starting");
|
|
77
|
+
process.exitCode = start();
|
|
78
|
+
}).demandCommand(1).command("*", "", () => {
|
|
47
79
|
console.error(chalk.yellow(`Command not found [${chalk.magenta(process.argv[2])}]`));
|
|
48
80
|
console.log(chalk.gray("Try 'yarn xy --help' for list of commands"));
|
|
49
81
|
}).help().argv;
|
|
50
|
-
};
|
|
82
|
+
}, "xyReact");
|
|
51
83
|
export {
|
|
52
84
|
xyReact
|
|
53
85
|
};
|
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","../../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
|
}
|
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())))))
|