@gapi/gcli 1.8.204 → 1.8.205
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/package.json +1 -1
- package/release/index.js +32 -5
package/package.json
CHANGED
package/release/index.js
CHANGED
|
@@ -318423,14 +318423,29 @@ async function start(args) {
|
|
|
318423
318423
|
...config2?.options?.bundler?.watch ?? []
|
|
318424
318424
|
].map((name2) => [name2, true])
|
|
318425
318425
|
),
|
|
318426
|
+
ignorelist: new Map(
|
|
318427
|
+
[
|
|
318428
|
+
...args?.ignore ?? [],
|
|
318429
|
+
...config2?.options?.bundler?.ignore ?? []
|
|
318430
|
+
].map((name2) => [name2, true])
|
|
318431
|
+
),
|
|
318426
318432
|
child: null,
|
|
318427
318433
|
outfile: args.outfile ?? config2?.options?.bundler?.outfile ?? "index.js",
|
|
318428
318434
|
startCommand: "node"
|
|
318429
318435
|
}).pipe(
|
|
318430
318436
|
(0, import_operators22.switchMap)(
|
|
318431
|
-
({
|
|
318437
|
+
({
|
|
318438
|
+
child,
|
|
318439
|
+
watcher,
|
|
318440
|
+
whitelist,
|
|
318441
|
+
outfile,
|
|
318442
|
+
startCommand,
|
|
318443
|
+
ignorelist
|
|
318444
|
+
}) => (0, import_rxjs23.from)(build_default(args)).pipe(
|
|
318432
318445
|
(0, import_operators22.tap)(() => {
|
|
318433
|
-
Logger.warn(
|
|
318446
|
+
Logger.warn(
|
|
318447
|
+
`\u{1F4E2} Starting script "${startCommand} ${outfile}"`
|
|
318448
|
+
);
|
|
318434
318449
|
Logger.log("---------------------------------\n");
|
|
318435
318450
|
}),
|
|
318436
318451
|
(0, import_operators22.tap)(() => {
|
|
@@ -318467,6 +318482,11 @@ async function start(args) {
|
|
|
318467
318482
|
if (!filename) {
|
|
318468
318483
|
return false;
|
|
318469
318484
|
}
|
|
318485
|
+
for (const ignorePath of ignorelist.keys()) {
|
|
318486
|
+
if (filename.startsWith(ignorePath)) {
|
|
318487
|
+
return false;
|
|
318488
|
+
}
|
|
318489
|
+
}
|
|
318470
318490
|
const rootDir = filename.split(/[/\\]/)[0];
|
|
318471
318491
|
return whitelist.has(rootDir);
|
|
318472
318492
|
}),
|
|
@@ -318475,12 +318495,16 @@ async function start(args) {
|
|
|
318475
318495
|
),
|
|
318476
318496
|
(0, import_operators22.tap)((data) => {
|
|
318477
318497
|
Logger.log("\n---------------------------------");
|
|
318478
|
-
Logger.log(
|
|
318498
|
+
Logger.log(
|
|
318499
|
+
`\u27F3 Restarting due to change in: ${data.filename}`
|
|
318500
|
+
);
|
|
318479
318501
|
child?.kill("SIGTERM");
|
|
318480
318502
|
}),
|
|
318481
318503
|
(0, import_operators22.switchMap)(() => build_default(args)),
|
|
318482
318504
|
(0, import_operators22.tap)(() => {
|
|
318483
|
-
Logger.warn(
|
|
318505
|
+
Logger.warn(
|
|
318506
|
+
`\u{1F4E2} Starting script "${startCommand} ${outfile}"`
|
|
318507
|
+
);
|
|
318484
318508
|
Logger.log("---------------------------------\n");
|
|
318485
318509
|
child = (0, import_node_child_process.spawn)(
|
|
318486
318510
|
startCommand,
|
|
@@ -318829,7 +318853,10 @@ function startCommands(program2) {
|
|
|
318829
318853
|
program2.command("start").description("Start bundle using esbuild https://esbuild.github.io ").option(
|
|
318830
318854
|
"-f, --files <files...>",
|
|
318831
318855
|
"File or files to bundle defaults to index.ts"
|
|
318832
|
-
).option("-b, --bundle", "Bundle code", true).option("-m, --minify", "Minify code", false).option("-p, --platform <char>", "Platform ", "node").option("-t, --target <char>", "Target ", "node14.4").option("-o, --outfile <char>", "Outfile name").option(
|
|
318856
|
+
).option("-b, --bundle", "Bundle code", true).option("-m, --minify", "Minify code", false).option("-p, --platform <char>", "Platform ", "node").option("-t, --target <char>", "Target ", "node14.4").option("-o, --outfile <char>", "Outfile name").option(
|
|
318857
|
+
"-i, --ignore <ignore...>",
|
|
318858
|
+
"Ignore folders from triggering restarts"
|
|
318859
|
+
).option("-e, --external <external...>", "External libraries").action(lazy(() => Promise.resolve().then(() => (init_start2(), start_exports2)).then((m2) => m2.default)));
|
|
318833
318860
|
}
|
|
318834
318861
|
|
|
318835
318862
|
// src/commands/triggers/cron/index.ts
|