@xylabs/ts-scripts-react-yarn3 3.10.1 → 3.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/index.js +0 -6
- package/dist/actions/index.js.map +1 -1
- package/dist/actions/index.mjs +0 -3
- package/dist/actions/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -11
- package/dist/index.d.ts +1 -11
- package/dist/lib/index.js +1 -3
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +0 -1
- package/dist/lib/index.mjs.map +1 -1
- package/dist/lib/xyReact.js +1 -2
- package/dist/lib/xyReact.js.map +1 -1
- package/dist/lib/xyReact.mjs +2 -3
- package/dist/lib/xyReact.mjs.map +1 -1
- package/package.json +4 -4
- package/src/actions/index.ts +0 -3
- package/src/lib/index.ts +1 -1
- package/src/lib/xyReact.ts +2 -3
- package/dist/actions/build-ci.js +0 -38
- package/dist/actions/build-ci.js.map +0 -1
- package/dist/actions/build-ci.mjs +0 -14
- package/dist/actions/build-ci.mjs.map +0 -1
- package/dist/actions/build.js +0 -36
- package/dist/actions/build.js.map +0 -1
- package/dist/actions/build.mjs +0 -12
- package/dist/actions/build.mjs.map +0 -1
- package/dist/actions/rebuild.js +0 -35
- package/dist/actions/rebuild.js.map +0 -1
- package/dist/actions/rebuild.mjs +0 -11
- package/dist/actions/rebuild.mjs.map +0 -1
- package/dist/lib/xyReactBuildCommands.js +0 -92
- package/dist/lib/xyReactBuildCommands.js.map +0 -1
- package/dist/lib/xyReactBuildCommands.mjs +0 -68
- package/dist/lib/xyReactBuildCommands.mjs.map +0 -1
- package/src/actions/build-ci.ts +0 -11
- package/src/actions/build.ts +0 -9
- package/src/actions/rebuild.ts +0 -8
- package/src/lib/xyReactBuildCommands.ts +0 -67
package/dist/actions/index.js
CHANGED
|
@@ -16,20 +16,14 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
16
16
|
var actions_exports = {};
|
|
17
17
|
module.exports = __toCommonJS(actions_exports);
|
|
18
18
|
__reExport(actions_exports, require("./analyze"), module.exports);
|
|
19
|
-
__reExport(actions_exports, require("./build"), module.exports);
|
|
20
|
-
__reExport(actions_exports, require("./build-ci"), module.exports);
|
|
21
19
|
__reExport(actions_exports, require("./eject"), module.exports);
|
|
22
|
-
__reExport(actions_exports, require("./rebuild"), module.exports);
|
|
23
20
|
__reExport(actions_exports, require("./sitemap"), module.exports);
|
|
24
21
|
__reExport(actions_exports, require("./start"), module.exports);
|
|
25
22
|
__reExport(actions_exports, require("./test"), module.exports);
|
|
26
23
|
// Annotate the CommonJS export names for ESM import in node:
|
|
27
24
|
0 && (module.exports = {
|
|
28
25
|
...require("./analyze"),
|
|
29
|
-
...require("./build"),
|
|
30
|
-
...require("./build-ci"),
|
|
31
26
|
...require("./eject"),
|
|
32
|
-
...require("./rebuild"),
|
|
33
27
|
...require("./sitemap"),
|
|
34
28
|
...require("./start"),
|
|
35
29
|
...require("./test")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/actions/index.ts"],"sourcesContent":["export * from './analyze'\nexport * from './
|
|
1
|
+
{"version":3,"sources":["../../src/actions/index.ts"],"sourcesContent":["export * from './analyze'\nexport * from './eject'\nexport * from './sitemap'\nexport * from './start'\nexport * from './test'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,4BAAc,sBAAd;AACA,4BAAc,oBADd;AAEA,4BAAc,sBAFd;AAGA,4BAAc,oBAHd;AAIA,4BAAc,mBAJd;","names":[]}
|
package/dist/actions/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/actions/index.ts"],"sourcesContent":["export * from './analyze'\nexport * from './
|
|
1
|
+
{"version":3,"sources":["../../src/actions/index.ts"],"sourcesContent":["export * from './analyze'\nexport * from './eject'\nexport * from './sitemap'\nexport * from './start'\nexport * from './test'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
import yargs from 'yargs';
|
|
2
|
-
|
|
3
1
|
declare const analyze: () => number;
|
|
4
2
|
|
|
5
|
-
declare const build: () => number;
|
|
6
|
-
|
|
7
|
-
declare const buildci: () => number;
|
|
8
|
-
|
|
9
3
|
declare const eject: () => number;
|
|
10
4
|
|
|
11
|
-
declare const rebuild: () => number;
|
|
12
|
-
|
|
13
5
|
declare const sitemap: () => number;
|
|
14
6
|
|
|
15
7
|
declare const start: () => number;
|
|
@@ -26,6 +18,4 @@ declare const xyReact: () => {
|
|
|
26
18
|
$0: string;
|
|
27
19
|
}>;
|
|
28
20
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
export { analyze, build, buildci, eject, rebuild, sitemap, start, test, xyReact, xyReactBuildCommands };
|
|
21
|
+
export { analyze, eject, sitemap, start, test, xyReact };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
import yargs from 'yargs';
|
|
2
|
-
|
|
3
1
|
declare const analyze: () => number;
|
|
4
2
|
|
|
5
|
-
declare const build: () => number;
|
|
6
|
-
|
|
7
|
-
declare const buildci: () => number;
|
|
8
|
-
|
|
9
3
|
declare const eject: () => number;
|
|
10
4
|
|
|
11
|
-
declare const rebuild: () => number;
|
|
12
|
-
|
|
13
5
|
declare const sitemap: () => number;
|
|
14
6
|
|
|
15
7
|
declare const start: () => number;
|
|
@@ -26,6 +18,4 @@ declare const xyReact: () => {
|
|
|
26
18
|
$0: string;
|
|
27
19
|
}>;
|
|
28
20
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
export { analyze, build, buildci, eject, rebuild, sitemap, start, test, xyReact, xyReactBuildCommands };
|
|
21
|
+
export { analyze, eject, sitemap, start, test, xyReact };
|
package/dist/lib/index.js
CHANGED
|
@@ -16,10 +16,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
16
16
|
var lib_exports = {};
|
|
17
17
|
module.exports = __toCommonJS(lib_exports);
|
|
18
18
|
__reExport(lib_exports, require("./xyReact"), module.exports);
|
|
19
|
-
__reExport(lib_exports, require("./xyReactBuildCommands"), module.exports);
|
|
20
19
|
// Annotate the CommonJS export names for ESM import in node:
|
|
21
20
|
0 && (module.exports = {
|
|
22
|
-
...require("./xyReact")
|
|
23
|
-
...require("./xyReactBuildCommands")
|
|
21
|
+
...require("./xyReact")
|
|
24
22
|
});
|
|
25
23
|
//# sourceMappingURL=index.js.map
|
package/dist/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/index.ts"],"sourcesContent":["export * from './xyReact'\
|
|
1
|
+
{"version":3,"sources":["../../src/lib/index.ts"],"sourcesContent":["export * from './xyReact'\n\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,sBAAd;","names":[]}
|
package/dist/lib/index.mjs
CHANGED
package/dist/lib/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/index.ts"],"sourcesContent":["export * from './xyReact'\
|
|
1
|
+
{"version":3,"sources":["../../src/lib/index.ts"],"sourcesContent":["export * from './xyReact'\n\n"],"mappings":"AAAA,cAAc;","names":[]}
|
package/dist/lib/xyReact.js
CHANGED
|
@@ -35,9 +35,8 @@ module.exports = __toCommonJS(xyReact_exports);
|
|
|
35
35
|
var import_ts_scripts_yarn3 = require("@xylabs/ts-scripts-yarn3");
|
|
36
36
|
var import_chalk = __toESM(require("chalk"));
|
|
37
37
|
var import_actions = require("../actions");
|
|
38
|
-
var import_xyReactBuildCommands = require("./xyReactBuildCommands");
|
|
39
38
|
const xyReact = () => {
|
|
40
|
-
return (0,
|
|
39
|
+
return (0, import_ts_scripts_yarn3.xyBuildCommands)((0, import_ts_scripts_yarn3.xyInstallCommands)((0, import_ts_scripts_yarn3.xyLintCommands)((0, import_ts_scripts_yarn3.xyInstallCommands)((0, import_ts_scripts_yarn3.xyCommonCommands)((0, import_ts_scripts_yarn3.xyParseOptions)()))))).command(
|
|
41
40
|
"analyze",
|
|
42
41
|
"Analyze - Analyze Bundles",
|
|
43
42
|
(yargs) => {
|
package/dist/lib/xyReact.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/xyReact.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions } from '@xylabs/ts-scripts-yarn3'\nimport chalk from 'chalk'\n\nimport { analyze, eject, sitemap, start } from '../actions'\
|
|
1
|
+
{"version":3,"sources":["../../src/lib/xyReact.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions, xyBuildCommands } from '@xylabs/ts-scripts-yarn3'\nimport chalk from 'chalk'\n\nimport { analyze, eject, sitemap, start } from '../actions'\n\nexport const xyReact = () => {\n return xyBuildCommands(xyInstallCommands(xyLintCommands(xyInstallCommands(xyCommonCommands(xyParseOptions())))))\n .command(\n 'analyze',\n 'Analyze - Analyze Bundles',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Analyzing')\n process.exitCode = analyze()\n },\n )\n .command(\n 'eject',\n 'Eject - Eject React project',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Ejecting')\n process.exitCode = eject()\n },\n )\n .command(\n 'sitemap',\n 'Sitemap - Generate sitemap for the project',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Generating Sitemap')\n process.exitCode = sitemap()\n },\n )\n .command(\n 'start',\n 'Start - Start project in browser',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Starting')\n process.exitCode = start()\n },\n )\n .demandCommand(1)\n .command('*', '', () => {\n console.error(chalk.yellow(`Command not found [${chalk.magenta(process.argv[2])}]`))\n console.log(chalk.gray(\"Try 'yarn xy --help' for list of commands\"))\n })\n .help().argv\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,8BAAqG;AACrG,mBAAkB;AAElB,qBAA+C;AAExC,MAAM,UAAU,MAAM;AAC3B,aAAO,6CAAgB,+CAAkB,4CAAe,+CAAkB,8CAAiB,wCAAe,CAAC,CAAC,CAAC,CAAC,CAAC,EAC5G;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAAC,UAAU;AACT,aAAO;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,WAAW;AACzC,cAAQ,eAAW,wBAAQ;AAAA,IAC7B;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAAC,UAAU;AACT,aAAO;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,UAAU;AACxC,cAAQ,eAAW,sBAAM;AAAA,IAC3B;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAAC,UAAU;AACT,aAAO;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,oBAAoB;AAClD,cAAQ,eAAW,wBAAQ;AAAA,IAC7B;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAAC,UAAU;AACT,aAAO;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,UAAU;AACxC,cAAQ,eAAW,sBAAM;AAAA,IAC3B;AAAA,EACF,EACC,cAAc,CAAC,EACf,QAAQ,KAAK,IAAI,MAAM;AACtB,YAAQ,MAAM,aAAAA,QAAM,OAAO,sBAAsB,aAAAA,QAAM,QAAQ,QAAQ,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC;AACnF,YAAQ,IAAI,aAAAA,QAAM,KAAK,2CAA2C,CAAC;AAAA,EACrE,CAAC,EACA,KAAK,EAAE;AACZ;","names":["chalk"]}
|
package/dist/lib/xyReact.mjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions } from "@xylabs/ts-scripts-yarn3";
|
|
2
|
+
import { xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions, xyBuildCommands } from "@xylabs/ts-scripts-yarn3";
|
|
3
3
|
import chalk from "chalk";
|
|
4
4
|
import { analyze, eject, sitemap, start } from "../actions";
|
|
5
|
-
import { xyReactBuildCommands } from "./xyReactBuildCommands";
|
|
6
5
|
const xyReact = () => {
|
|
7
|
-
return
|
|
6
|
+
return xyBuildCommands(xyInstallCommands(xyLintCommands(xyInstallCommands(xyCommonCommands(xyParseOptions()))))).command(
|
|
8
7
|
"analyze",
|
|
9
8
|
"Analyze - Analyze Bundles",
|
|
10
9
|
(yargs) => {
|
package/dist/lib/xyReact.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/xyReact.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions } from '@xylabs/ts-scripts-yarn3'\nimport chalk from 'chalk'\n\nimport { analyze, eject, sitemap, start } from '../actions'\
|
|
1
|
+
{"version":3,"sources":["../../src/lib/xyReact.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions, xyBuildCommands } from '@xylabs/ts-scripts-yarn3'\nimport chalk from 'chalk'\n\nimport { analyze, eject, sitemap, start } from '../actions'\n\nexport const xyReact = () => {\n return xyBuildCommands(xyInstallCommands(xyLintCommands(xyInstallCommands(xyCommonCommands(xyParseOptions())))))\n .command(\n 'analyze',\n 'Analyze - Analyze Bundles',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Analyzing')\n process.exitCode = analyze()\n },\n )\n .command(\n 'eject',\n 'Eject - Eject React project',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Ejecting')\n process.exitCode = eject()\n },\n )\n .command(\n 'sitemap',\n 'Sitemap - Generate sitemap for the project',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Generating Sitemap')\n process.exitCode = sitemap()\n },\n )\n .command(\n 'start',\n 'Start - Start project in browser',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Starting')\n process.exitCode = start()\n },\n )\n .demandCommand(1)\n .command('*', '', () => {\n console.error(chalk.yellow(`Command not found [${chalk.magenta(process.argv[2])}]`))\n console.log(chalk.gray(\"Try 'yarn xy --help' for list of commands\"))\n })\n .help().argv\n}\n"],"mappings":";AAEA,SAAS,kBAAkB,mBAAmB,gBAAgB,gBAAgB,uBAAuB;AACrG,OAAO,WAAW;AAElB,SAAS,SAAS,OAAO,SAAS,aAAa;AAExC,MAAM,UAAU,MAAM;AAC3B,SAAO,gBAAgB,kBAAkB,eAAe,kBAAkB,iBAAiB,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,EAC5G;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAAC,UAAU;AACT,aAAO;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,WAAW;AACzC,cAAQ,WAAW,QAAQ;AAAA,IAC7B;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAAC,UAAU;AACT,aAAO;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,UAAU;AACxC,cAAQ,WAAW,MAAM;AAAA,IAC3B;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAAC,UAAU;AACT,aAAO;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,oBAAoB;AAClD,cAAQ,WAAW,QAAQ;AAAA,IAC7B;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAAC,UAAU;AACT,aAAO;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,UAAU;AACxC,cAAQ,WAAW,MAAM;AAAA,IAC3B;AAAA,EACF,EACC,cAAc,CAAC,EACf,QAAQ,KAAK,IAAI,MAAM;AACtB,YAAQ,MAAM,MAAM,OAAO,sBAAsB,MAAM,QAAQ,QAAQ,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC;AACnF,YAAQ,IAAI,MAAM,KAAK,2CAA2C,CAAC;AAAA,EACrE,CAAC,EACA,KAAK,EAAE;AACZ;","names":[]}
|
package/package.json
CHANGED
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
"url": "https://github.com/xylabs/config/issues"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@xylabs/ts-scripts-yarn3": "~3.10.
|
|
52
|
+
"@xylabs/ts-scripts-yarn3": "~3.10.2",
|
|
53
53
|
"chalk": "^4.1.2",
|
|
54
54
|
"yargs": "^17.7.2"
|
|
55
55
|
},
|
|
56
56
|
"description": "TypeScript project scripts",
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/yargs": "^17.0.32",
|
|
59
|
-
"@xylabs/ts-scripts-yarn3": "~3.10.
|
|
60
|
-
"@xylabs/tsconfig": "~3.10.
|
|
59
|
+
"@xylabs/ts-scripts-yarn3": "~3.10.2",
|
|
60
|
+
"@xylabs/tsconfig": "~3.10.2",
|
|
61
61
|
"publint": "^0.2.7",
|
|
62
62
|
"tsup": "^8.0.2",
|
|
63
63
|
"typescript": "^5.4.5"
|
|
@@ -112,6 +112,6 @@
|
|
|
112
112
|
"package-recompile": "tsup && publint ."
|
|
113
113
|
},
|
|
114
114
|
"sideEffects": false,
|
|
115
|
-
"version": "3.10.
|
|
115
|
+
"version": "3.10.2",
|
|
116
116
|
"type": "commonjs"
|
|
117
117
|
}
|
package/src/actions/index.ts
CHANGED
package/src/lib/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './xyReact'
|
|
2
|
-
|
|
2
|
+
|
package/src/lib/xyReact.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions } from '@xylabs/ts-scripts-yarn3'
|
|
3
|
+
import { xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions, xyBuildCommands } from '@xylabs/ts-scripts-yarn3'
|
|
4
4
|
import chalk from 'chalk'
|
|
5
5
|
|
|
6
6
|
import { analyze, eject, sitemap, start } from '../actions'
|
|
7
|
-
import { xyReactBuildCommands } from './xyReactBuildCommands'
|
|
8
7
|
|
|
9
8
|
export const xyReact = () => {
|
|
10
|
-
return
|
|
9
|
+
return xyBuildCommands(xyInstallCommands(xyLintCommands(xyInstallCommands(xyCommonCommands(xyParseOptions())))))
|
|
11
10
|
.command(
|
|
12
11
|
'analyze',
|
|
13
12
|
'Analyze - Analyze Bundles',
|
package/dist/actions/build-ci.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var build_ci_exports = {};
|
|
20
|
-
__export(build_ci_exports, {
|
|
21
|
-
buildci: () => buildci
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(build_ci_exports);
|
|
24
|
-
var import_ts_scripts_yarn3 = require("@xylabs/ts-scripts-yarn3");
|
|
25
|
-
const buildci = () => {
|
|
26
|
-
return (0, import_ts_scripts_yarn3.runSteps)("Build", [
|
|
27
|
-
["yarn", ["xy", "compile"]],
|
|
28
|
-
["yarn", "react-scripts build"],
|
|
29
|
-
["yarn", "xy lint"],
|
|
30
|
-
["yarn", "xy deps"],
|
|
31
|
-
["ts-node-script", "./scripts/sitemap.ts"]
|
|
32
|
-
]);
|
|
33
|
-
};
|
|
34
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
35
|
-
0 && (module.exports = {
|
|
36
|
-
buildci
|
|
37
|
-
});
|
|
38
|
-
//# sourceMappingURL=build-ci.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/actions/build-ci.ts"],"sourcesContent":["import { runSteps } from '@xylabs/ts-scripts-yarn3'\n\nexport const buildci = () => {\n return runSteps('Build', [\n ['yarn', ['xy', 'compile']],\n ['yarn', 'react-scripts build'],\n ['yarn', 'xy lint'],\n ['yarn', 'xy deps'],\n ['ts-node-script', './scripts/sitemap.ts'],\n ])\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAyB;AAElB,MAAM,UAAU,MAAM;AAC3B,aAAO,kCAAS,SAAS;AAAA,IACvB,CAAC,QAAQ,CAAC,MAAM,SAAS,CAAC;AAAA,IAC1B,CAAC,QAAQ,qBAAqB;AAAA,IAC9B,CAAC,QAAQ,SAAS;AAAA,IAClB,CAAC,QAAQ,SAAS;AAAA,IAClB,CAAC,kBAAkB,sBAAsB;AAAA,EAC3C,CAAC;AACH;","names":[]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { runSteps } from "@xylabs/ts-scripts-yarn3";
|
|
2
|
-
const buildci = () => {
|
|
3
|
-
return runSteps("Build", [
|
|
4
|
-
["yarn", ["xy", "compile"]],
|
|
5
|
-
["yarn", "react-scripts build"],
|
|
6
|
-
["yarn", "xy lint"],
|
|
7
|
-
["yarn", "xy deps"],
|
|
8
|
-
["ts-node-script", "./scripts/sitemap.ts"]
|
|
9
|
-
]);
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
buildci
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=build-ci.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/actions/build-ci.ts"],"sourcesContent":["import { runSteps } from '@xylabs/ts-scripts-yarn3'\n\nexport const buildci = () => {\n return runSteps('Build', [\n ['yarn', ['xy', 'compile']],\n ['yarn', 'react-scripts build'],\n ['yarn', 'xy lint'],\n ['yarn', 'xy deps'],\n ['ts-node-script', './scripts/sitemap.ts'],\n ])\n}\n"],"mappings":"AAAA,SAAS,gBAAgB;AAElB,MAAM,UAAU,MAAM;AAC3B,SAAO,SAAS,SAAS;AAAA,IACvB,CAAC,QAAQ,CAAC,MAAM,SAAS,CAAC;AAAA,IAC1B,CAAC,QAAQ,qBAAqB;AAAA,IAC9B,CAAC,QAAQ,SAAS;AAAA,IAClB,CAAC,QAAQ,SAAS;AAAA,IAClB,CAAC,kBAAkB,sBAAsB;AAAA,EAC3C,CAAC;AACH;","names":[]}
|
package/dist/actions/build.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var build_exports = {};
|
|
20
|
-
__export(build_exports, {
|
|
21
|
-
build: () => build
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(build_exports);
|
|
24
|
-
var import_ts_scripts_yarn3 = require("@xylabs/ts-scripts-yarn3");
|
|
25
|
-
const build = () => {
|
|
26
|
-
return (0, import_ts_scripts_yarn3.runSteps)("Build", [
|
|
27
|
-
["yarn", ["xy", "compile"]],
|
|
28
|
-
["yarn", "xy lint"],
|
|
29
|
-
["yarn", "xy deps"]
|
|
30
|
-
]);
|
|
31
|
-
};
|
|
32
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
33
|
-
0 && (module.exports = {
|
|
34
|
-
build
|
|
35
|
-
});
|
|
36
|
-
//# sourceMappingURL=build.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/actions/build.ts"],"sourcesContent":["import { runSteps } from '@xylabs/ts-scripts-yarn3'\n\nexport const build = () => {\n return runSteps('Build', [\n ['yarn', ['xy', 'compile']],\n ['yarn', 'xy lint'],\n ['yarn', 'xy deps'],\n ])\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAyB;AAElB,MAAM,QAAQ,MAAM;AACzB,aAAO,kCAAS,SAAS;AAAA,IACvB,CAAC,QAAQ,CAAC,MAAM,SAAS,CAAC;AAAA,IAC1B,CAAC,QAAQ,SAAS;AAAA,IAClB,CAAC,QAAQ,SAAS;AAAA,EACpB,CAAC;AACH;","names":[]}
|
package/dist/actions/build.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/actions/build.ts"],"sourcesContent":["import { runSteps } from '@xylabs/ts-scripts-yarn3'\n\nexport const build = () => {\n return runSteps('Build', [\n ['yarn', ['xy', 'compile']],\n ['yarn', 'xy lint'],\n ['yarn', 'xy deps'],\n ])\n}\n"],"mappings":"AAAA,SAAS,gBAAgB;AAElB,MAAM,QAAQ,MAAM;AACzB,SAAO,SAAS,SAAS;AAAA,IACvB,CAAC,QAAQ,CAAC,MAAM,SAAS,CAAC;AAAA,IAC1B,CAAC,QAAQ,SAAS;AAAA,IAClB,CAAC,QAAQ,SAAS;AAAA,EACpB,CAAC;AACH;","names":[]}
|
package/dist/actions/rebuild.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var rebuild_exports = {};
|
|
20
|
-
__export(rebuild_exports, {
|
|
21
|
-
rebuild: () => rebuild
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(rebuild_exports);
|
|
24
|
-
var import_ts_scripts_yarn3 = require("@xylabs/ts-scripts-yarn3");
|
|
25
|
-
const rebuild = () => {
|
|
26
|
-
return (0, import_ts_scripts_yarn3.runSteps)("Rebuild", [
|
|
27
|
-
["yarn", "xy clean"],
|
|
28
|
-
["yarn", "xy build"]
|
|
29
|
-
]);
|
|
30
|
-
};
|
|
31
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
-
0 && (module.exports = {
|
|
33
|
-
rebuild
|
|
34
|
-
});
|
|
35
|
-
//# sourceMappingURL=rebuild.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/actions/rebuild.ts"],"sourcesContent":["import { runSteps } from '@xylabs/ts-scripts-yarn3'\n\nexport const rebuild = () => {\n return runSteps('Rebuild', [\n ['yarn', 'xy clean'],\n ['yarn', 'xy build'],\n ])\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAyB;AAElB,MAAM,UAAU,MAAM;AAC3B,aAAO,kCAAS,WAAW;AAAA,IACzB,CAAC,QAAQ,UAAU;AAAA,IACnB,CAAC,QAAQ,UAAU;AAAA,EACrB,CAAC;AACH;","names":[]}
|
package/dist/actions/rebuild.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/actions/rebuild.ts"],"sourcesContent":["import { runSteps } from '@xylabs/ts-scripts-yarn3'\n\nexport const rebuild = () => {\n return runSteps('Rebuild', [\n ['yarn', 'xy clean'],\n ['yarn', 'xy build'],\n ])\n}\n"],"mappings":"AAAA,SAAS,gBAAgB;AAElB,MAAM,UAAU,MAAM;AAC3B,SAAO,SAAS,WAAW;AAAA,IACzB,CAAC,QAAQ,UAAU;AAAA,IACnB,CAAC,QAAQ,UAAU;AAAA,EACrB,CAAC;AACH;","names":[]}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var xyReactBuildCommands_exports = {};
|
|
20
|
-
__export(xyReactBuildCommands_exports, {
|
|
21
|
-
xyReactBuildCommands: () => xyReactBuildCommands
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(xyReactBuildCommands_exports);
|
|
24
|
-
var import_ts_scripts_yarn3 = require("@xylabs/ts-scripts-yarn3");
|
|
25
|
-
var import_actions = require("../actions");
|
|
26
|
-
const xyReactBuildCommands = (args) => {
|
|
27
|
-
return args.command(
|
|
28
|
-
"build",
|
|
29
|
-
"Build - Build React project && Packages",
|
|
30
|
-
(yargs2) => {
|
|
31
|
-
return yargs2;
|
|
32
|
-
},
|
|
33
|
-
(argv) => {
|
|
34
|
-
if (argv.verbose)
|
|
35
|
-
console.log("Building");
|
|
36
|
-
process.exitCode = (0, import_actions.build)();
|
|
37
|
-
}
|
|
38
|
-
).command(
|
|
39
|
-
"build-ci",
|
|
40
|
-
"Build CI - Build React project for continuous integration",
|
|
41
|
-
(yargs2) => {
|
|
42
|
-
return yargs2;
|
|
43
|
-
},
|
|
44
|
-
(argv) => {
|
|
45
|
-
if (argv.verbose)
|
|
46
|
-
console.log("Building CI");
|
|
47
|
-
process.exitCode = (0, import_actions.buildci)();
|
|
48
|
-
}
|
|
49
|
-
).command(
|
|
50
|
-
"compile [package]",
|
|
51
|
-
"Compile with Typescript & Copy Images",
|
|
52
|
-
(yargs2) => {
|
|
53
|
-
return yargs2.positional("package", {
|
|
54
|
-
describe: "Specific package to compile"
|
|
55
|
-
});
|
|
56
|
-
},
|
|
57
|
-
async (argv) => {
|
|
58
|
-
if (argv.verbose)
|
|
59
|
-
console.log(`Compiling: ${argv.package ?? "all"}`);
|
|
60
|
-
process.exitCode = await (0, import_ts_scripts_yarn3.compile)({ target: argv.target });
|
|
61
|
-
}
|
|
62
|
-
).command(
|
|
63
|
-
"copy-assets [package]",
|
|
64
|
-
"Copy Assets - Copy the assets from src to dist",
|
|
65
|
-
(yargs2) => {
|
|
66
|
-
return yargs2.positional("package", {
|
|
67
|
-
describe: "Specific package to copy assets"
|
|
68
|
-
});
|
|
69
|
-
},
|
|
70
|
-
async (argv) => {
|
|
71
|
-
if (argv.verbose)
|
|
72
|
-
console.log(`Copying Assets: ${argv.package ?? "all"}`);
|
|
73
|
-
process.exitCode = await (0, import_ts_scripts_yarn3.copyAssets)({ target: argv.target });
|
|
74
|
-
}
|
|
75
|
-
).command(
|
|
76
|
-
"rebuild",
|
|
77
|
-
"Rebuild - Clean, Compile & Lint",
|
|
78
|
-
(yargs2) => {
|
|
79
|
-
return yargs2;
|
|
80
|
-
},
|
|
81
|
-
(argv) => {
|
|
82
|
-
if (argv.verbose)
|
|
83
|
-
console.log("Rebuilding");
|
|
84
|
-
process.exitCode = (0, import_actions.rebuild)();
|
|
85
|
-
}
|
|
86
|
-
);
|
|
87
|
-
};
|
|
88
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
89
|
-
0 && (module.exports = {
|
|
90
|
-
xyReactBuildCommands
|
|
91
|
-
});
|
|
92
|
-
//# sourceMappingURL=xyReactBuildCommands.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/xyReactBuildCommands.ts"],"sourcesContent":["import { compile, copyAssets } from '@xylabs/ts-scripts-yarn3'\nimport yargs from 'yargs'\n\nimport { build, buildci, rebuild } from '../actions'\n\nexport const xyReactBuildCommands = (args: yargs.Argv) => {\n return args\n .command(\n 'build',\n 'Build - Build React project && Packages',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Building')\n process.exitCode = build()\n },\n )\n .command(\n 'build-ci',\n 'Build CI - Build React project for continuous integration',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Building CI')\n process.exitCode = buildci()\n },\n )\n .command(\n 'compile [package]',\n 'Compile with Typescript & Copy Images',\n (yargs) => {\n return yargs.positional('package', {\n describe: 'Specific package to compile',\n })\n },\n async (argv) => {\n if (argv.verbose) console.log(`Compiling: ${argv.package ?? 'all'}`)\n process.exitCode = await compile({ target: argv.target as 'esm' | 'cjs' })\n },\n )\n .command(\n 'copy-assets [package]',\n 'Copy Assets - Copy the assets from src to dist',\n (yargs) => {\n return yargs.positional('package', {\n describe: 'Specific package to copy assets',\n })\n },\n async (argv) => {\n if (argv.verbose) console.log(`Copying Assets: ${argv.package ?? 'all'}`)\n process.exitCode = await copyAssets({ target: argv.target as 'esm' | 'cjs' })\n },\n )\n .command(\n 'rebuild',\n 'Rebuild - Clean, Compile & Lint',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Rebuilding')\n process.exitCode = rebuild()\n },\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAoC;AAGpC,qBAAwC;AAEjC,MAAM,uBAAuB,CAAC,SAAqB;AACxD,SAAO,KACJ;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAACA,WAAU;AACT,aAAOA;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,UAAU;AACxC,cAAQ,eAAW,sBAAM;AAAA,IAC3B;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAACA,WAAU;AACT,aAAOA;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,aAAa;AAC3C,cAAQ,eAAW,wBAAQ;AAAA,IAC7B;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAACA,WAAU;AACT,aAAOA,OAAM,WAAW,WAAW;AAAA,QACjC,UAAU;AAAA,MACZ,CAAC;AAAA,IACH;AAAA,IACA,OAAO,SAAS;AACd,UAAI,KAAK;AAAS,gBAAQ,IAAI,cAAc,KAAK,WAAW,KAAK,EAAE;AACnE,cAAQ,WAAW,UAAM,iCAAQ,EAAE,QAAQ,KAAK,OAAwB,CAAC;AAAA,IAC3E;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAACA,WAAU;AACT,aAAOA,OAAM,WAAW,WAAW;AAAA,QACjC,UAAU;AAAA,MACZ,CAAC;AAAA,IACH;AAAA,IACA,OAAO,SAAS;AACd,UAAI,KAAK;AAAS,gBAAQ,IAAI,mBAAmB,KAAK,WAAW,KAAK,EAAE;AACxE,cAAQ,WAAW,UAAM,oCAAW,EAAE,QAAQ,KAAK,OAAwB,CAAC;AAAA,IAC9E;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAACA,WAAU;AACT,aAAOA;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,YAAY;AAC1C,cAAQ,eAAW,wBAAQ;AAAA,IAC7B;AAAA,EACF;AACJ;","names":["yargs"]}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { compile, copyAssets } from "@xylabs/ts-scripts-yarn3";
|
|
2
|
-
import { build, buildci, rebuild } from "../actions";
|
|
3
|
-
const xyReactBuildCommands = (args) => {
|
|
4
|
-
return args.command(
|
|
5
|
-
"build",
|
|
6
|
-
"Build - Build React project && Packages",
|
|
7
|
-
(yargs2) => {
|
|
8
|
-
return yargs2;
|
|
9
|
-
},
|
|
10
|
-
(argv) => {
|
|
11
|
-
if (argv.verbose)
|
|
12
|
-
console.log("Building");
|
|
13
|
-
process.exitCode = build();
|
|
14
|
-
}
|
|
15
|
-
).command(
|
|
16
|
-
"build-ci",
|
|
17
|
-
"Build CI - Build React project for continuous integration",
|
|
18
|
-
(yargs2) => {
|
|
19
|
-
return yargs2;
|
|
20
|
-
},
|
|
21
|
-
(argv) => {
|
|
22
|
-
if (argv.verbose)
|
|
23
|
-
console.log("Building CI");
|
|
24
|
-
process.exitCode = buildci();
|
|
25
|
-
}
|
|
26
|
-
).command(
|
|
27
|
-
"compile [package]",
|
|
28
|
-
"Compile with Typescript & Copy Images",
|
|
29
|
-
(yargs2) => {
|
|
30
|
-
return yargs2.positional("package", {
|
|
31
|
-
describe: "Specific package to compile"
|
|
32
|
-
});
|
|
33
|
-
},
|
|
34
|
-
async (argv) => {
|
|
35
|
-
if (argv.verbose)
|
|
36
|
-
console.log(`Compiling: ${argv.package ?? "all"}`);
|
|
37
|
-
process.exitCode = await compile({ target: argv.target });
|
|
38
|
-
}
|
|
39
|
-
).command(
|
|
40
|
-
"copy-assets [package]",
|
|
41
|
-
"Copy Assets - Copy the assets from src to dist",
|
|
42
|
-
(yargs2) => {
|
|
43
|
-
return yargs2.positional("package", {
|
|
44
|
-
describe: "Specific package to copy assets"
|
|
45
|
-
});
|
|
46
|
-
},
|
|
47
|
-
async (argv) => {
|
|
48
|
-
if (argv.verbose)
|
|
49
|
-
console.log(`Copying Assets: ${argv.package ?? "all"}`);
|
|
50
|
-
process.exitCode = await copyAssets({ target: argv.target });
|
|
51
|
-
}
|
|
52
|
-
).command(
|
|
53
|
-
"rebuild",
|
|
54
|
-
"Rebuild - Clean, Compile & Lint",
|
|
55
|
-
(yargs2) => {
|
|
56
|
-
return yargs2;
|
|
57
|
-
},
|
|
58
|
-
(argv) => {
|
|
59
|
-
if (argv.verbose)
|
|
60
|
-
console.log("Rebuilding");
|
|
61
|
-
process.exitCode = rebuild();
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
};
|
|
65
|
-
export {
|
|
66
|
-
xyReactBuildCommands
|
|
67
|
-
};
|
|
68
|
-
//# sourceMappingURL=xyReactBuildCommands.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/xyReactBuildCommands.ts"],"sourcesContent":["import { compile, copyAssets } from '@xylabs/ts-scripts-yarn3'\nimport yargs from 'yargs'\n\nimport { build, buildci, rebuild } from '../actions'\n\nexport const xyReactBuildCommands = (args: yargs.Argv) => {\n return args\n .command(\n 'build',\n 'Build - Build React project && Packages',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Building')\n process.exitCode = build()\n },\n )\n .command(\n 'build-ci',\n 'Build CI - Build React project for continuous integration',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Building CI')\n process.exitCode = buildci()\n },\n )\n .command(\n 'compile [package]',\n 'Compile with Typescript & Copy Images',\n (yargs) => {\n return yargs.positional('package', {\n describe: 'Specific package to compile',\n })\n },\n async (argv) => {\n if (argv.verbose) console.log(`Compiling: ${argv.package ?? 'all'}`)\n process.exitCode = await compile({ target: argv.target as 'esm' | 'cjs' })\n },\n )\n .command(\n 'copy-assets [package]',\n 'Copy Assets - Copy the assets from src to dist',\n (yargs) => {\n return yargs.positional('package', {\n describe: 'Specific package to copy assets',\n })\n },\n async (argv) => {\n if (argv.verbose) console.log(`Copying Assets: ${argv.package ?? 'all'}`)\n process.exitCode = await copyAssets({ target: argv.target as 'esm' | 'cjs' })\n },\n )\n .command(\n 'rebuild',\n 'Rebuild - Clean, Compile & Lint',\n (yargs) => {\n return yargs\n },\n (argv) => {\n if (argv.verbose) console.log('Rebuilding')\n process.exitCode = rebuild()\n },\n )\n}\n"],"mappings":"AAAA,SAAS,SAAS,kBAAkB;AAGpC,SAAS,OAAO,SAAS,eAAe;AAEjC,MAAM,uBAAuB,CAAC,SAAqB;AACxD,SAAO,KACJ;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAACA,WAAU;AACT,aAAOA;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,UAAU;AACxC,cAAQ,WAAW,MAAM;AAAA,IAC3B;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAACA,WAAU;AACT,aAAOA;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,aAAa;AAC3C,cAAQ,WAAW,QAAQ;AAAA,IAC7B;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAACA,WAAU;AACT,aAAOA,OAAM,WAAW,WAAW;AAAA,QACjC,UAAU;AAAA,MACZ,CAAC;AAAA,IACH;AAAA,IACA,OAAO,SAAS;AACd,UAAI,KAAK;AAAS,gBAAQ,IAAI,cAAc,KAAK,WAAW,KAAK,EAAE;AACnE,cAAQ,WAAW,MAAM,QAAQ,EAAE,QAAQ,KAAK,OAAwB,CAAC;AAAA,IAC3E;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAACA,WAAU;AACT,aAAOA,OAAM,WAAW,WAAW;AAAA,QACjC,UAAU;AAAA,MACZ,CAAC;AAAA,IACH;AAAA,IACA,OAAO,SAAS;AACd,UAAI,KAAK;AAAS,gBAAQ,IAAI,mBAAmB,KAAK,WAAW,KAAK,EAAE;AACxE,cAAQ,WAAW,MAAM,WAAW,EAAE,QAAQ,KAAK,OAAwB,CAAC;AAAA,IAC9E;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,IACA,CAACA,WAAU;AACT,aAAOA;AAAA,IACT;AAAA,IACA,CAAC,SAAS;AACR,UAAI,KAAK;AAAS,gBAAQ,IAAI,YAAY;AAC1C,cAAQ,WAAW,QAAQ;AAAA,IAC7B;AAAA,EACF;AACJ;","names":["yargs"]}
|
package/src/actions/build-ci.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { runSteps } from '@xylabs/ts-scripts-yarn3'
|
|
2
|
-
|
|
3
|
-
export const buildci = () => {
|
|
4
|
-
return runSteps('Build', [
|
|
5
|
-
['yarn', ['xy', 'compile']],
|
|
6
|
-
['yarn', 'react-scripts build'],
|
|
7
|
-
['yarn', 'xy lint'],
|
|
8
|
-
['yarn', 'xy deps'],
|
|
9
|
-
['ts-node-script', './scripts/sitemap.ts'],
|
|
10
|
-
])
|
|
11
|
-
}
|
package/src/actions/build.ts
DELETED
package/src/actions/rebuild.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { compile, copyAssets } from '@xylabs/ts-scripts-yarn3'
|
|
2
|
-
import yargs from 'yargs'
|
|
3
|
-
|
|
4
|
-
import { build, buildci, rebuild } from '../actions'
|
|
5
|
-
|
|
6
|
-
export const xyReactBuildCommands = (args: yargs.Argv) => {
|
|
7
|
-
return args
|
|
8
|
-
.command(
|
|
9
|
-
'build',
|
|
10
|
-
'Build - Build React project && Packages',
|
|
11
|
-
(yargs) => {
|
|
12
|
-
return yargs
|
|
13
|
-
},
|
|
14
|
-
(argv) => {
|
|
15
|
-
if (argv.verbose) console.log('Building')
|
|
16
|
-
process.exitCode = build()
|
|
17
|
-
},
|
|
18
|
-
)
|
|
19
|
-
.command(
|
|
20
|
-
'build-ci',
|
|
21
|
-
'Build CI - Build React project for continuous integration',
|
|
22
|
-
(yargs) => {
|
|
23
|
-
return yargs
|
|
24
|
-
},
|
|
25
|
-
(argv) => {
|
|
26
|
-
if (argv.verbose) console.log('Building CI')
|
|
27
|
-
process.exitCode = buildci()
|
|
28
|
-
},
|
|
29
|
-
)
|
|
30
|
-
.command(
|
|
31
|
-
'compile [package]',
|
|
32
|
-
'Compile with Typescript & Copy Images',
|
|
33
|
-
(yargs) => {
|
|
34
|
-
return yargs.positional('package', {
|
|
35
|
-
describe: 'Specific package to compile',
|
|
36
|
-
})
|
|
37
|
-
},
|
|
38
|
-
async (argv) => {
|
|
39
|
-
if (argv.verbose) console.log(`Compiling: ${argv.package ?? 'all'}`)
|
|
40
|
-
process.exitCode = await compile({ target: argv.target as 'esm' | 'cjs' })
|
|
41
|
-
},
|
|
42
|
-
)
|
|
43
|
-
.command(
|
|
44
|
-
'copy-assets [package]',
|
|
45
|
-
'Copy Assets - Copy the assets from src to dist',
|
|
46
|
-
(yargs) => {
|
|
47
|
-
return yargs.positional('package', {
|
|
48
|
-
describe: 'Specific package to copy assets',
|
|
49
|
-
})
|
|
50
|
-
},
|
|
51
|
-
async (argv) => {
|
|
52
|
-
if (argv.verbose) console.log(`Copying Assets: ${argv.package ?? 'all'}`)
|
|
53
|
-
process.exitCode = await copyAssets({ target: argv.target as 'esm' | 'cjs' })
|
|
54
|
-
},
|
|
55
|
-
)
|
|
56
|
-
.command(
|
|
57
|
-
'rebuild',
|
|
58
|
-
'Rebuild - Clean, Compile & Lint',
|
|
59
|
-
(yargs) => {
|
|
60
|
-
return yargs
|
|
61
|
-
},
|
|
62
|
-
(argv) => {
|
|
63
|
-
if (argv.verbose) console.log('Rebuilding')
|
|
64
|
-
process.exitCode = rebuild()
|
|
65
|
-
},
|
|
66
|
-
)
|
|
67
|
-
}
|