@multiplatform.one/cli 8.2.0 → 8.2.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/README.md +3 -3
- package/lib/bin/multiplatformOne.mjs +6 -13
- package/lib/commands/verbs.mjs +14 -20
- package/lib/source.json +2 -2
- package/package.json +2 -2
- package/scripts/scaffold.sh +5 -17
- package/src/bin/multiplatformOne.ts +7 -9
- package/src/commands/verbs.spec.ts +24 -7
- package/src/commands/verbs.ts +9 -23
- package/templates/AGENTS.md +14 -11
- package/types/bin/multiplatformOne.d.ts.map +1 -1
- package/types/commands/verbs.d.ts +4 -2
- package/types/commands/verbs.d.ts.map +1 -1
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ A project is the multiplatform.one monorepo at one commit, pruned:
|
|
|
39
39
|
- Without `--service keycloak` the keycloak compose service, `postgres` and
|
|
40
40
|
its `.env` keys, the `docker-bake.hcl` target and the `docker/Makefile`
|
|
41
41
|
cert block go. With neither service, `docker/compose.yaml` is
|
|
42
|
-
`services: {}
|
|
42
|
+
`services: {}`.
|
|
43
43
|
- `apps/one`, the One platform app, becomes `apps/my-app` (package
|
|
44
44
|
`@app/my-app`, app.config slug and scheme, bundle id, tauri identifier, the
|
|
45
45
|
`Makefile` `my-app/%` rules, `.vscode`, `.gitignore`), with
|
|
@@ -163,8 +163,8 @@ sh scripts/scaffold.sh [--app <name>]... [--service <name>]... [--mpo-version <r
|
|
|
163
163
|
| `mpo frappe types <doctype…>` | Emit doctype TypeScript types from getdoctype; `--check -o <file>` fails on drift |
|
|
164
164
|
| `mpo build` | Run the build command |
|
|
165
165
|
| `mpo test [tier]` | Run unit (default), integration, e2e or visual tests (E2E: `--up-only`, …) |
|
|
166
|
-
| `mpo lint` | Run the root `lint` script
|
|
167
|
-
| `mpo format` | Run the root `format` script (
|
|
166
|
+
| `mpo lint` | Run the root `lint` script, then `black --check` and `basedpyright` |
|
|
167
|
+
| `mpo format` | Run the root `format` script (your uncommitted files), then `black` |
|
|
168
168
|
| `mpo count` | Count lines of code with `cloc` |
|
|
169
169
|
| `mpo generate` | Run the turbo `generate` task |
|
|
170
170
|
|
|
@@ -6,7 +6,7 @@ import { runE2ESession } from "../commands/e2e.mjs";
|
|
|
6
6
|
import { SINGLETON_APPS, init } from "../commands/init.mjs";
|
|
7
7
|
import { pythonFiles, runPythonTools } from "../commands/pythonTools.mjs";
|
|
8
8
|
import { updateApp } from "../commands/updateApp.mjs";
|
|
9
|
-
import { availableServices, parseTestTiers, runBuild, runFrappeBench, runIntegrationTests,
|
|
9
|
+
import { availableServices, parseTestTiers, runBuild, runFrappeBench, runIntegrationTests, runRootFormat, runRootLint, runUnitTests, testTiers, waitFunctions } from "../commands/verbs.mjs";
|
|
10
10
|
import fsSync from "node:fs";
|
|
11
11
|
import path from "node:path";
|
|
12
12
|
import { fileURLToPath } from "node:url";
|
|
@@ -290,21 +290,14 @@ async function pythonStep(mode) {
|
|
|
290
290
|
console.error(reason);
|
|
291
291
|
return true;
|
|
292
292
|
}
|
|
293
|
-
program.command("format").description("format
|
|
294
|
-
await
|
|
295
|
-
"run",
|
|
296
|
-
"format",
|
|
297
|
-
"--filter=//"
|
|
298
|
-
], {
|
|
299
|
-
stdio: "inherit",
|
|
300
|
-
cwd: projectRoot
|
|
301
|
-
});
|
|
293
|
+
program.command("format").description("format your uncommitted files (pnpm format), then the Python apps").action(async () => {
|
|
294
|
+
await runRootFormat(projectRoot);
|
|
302
295
|
await pythonStep("format");
|
|
303
296
|
});
|
|
304
|
-
program.command("lint").description("lint all supported files (TS, Python, etc.)
|
|
305
|
-
const
|
|
297
|
+
program.command("lint").description("lint all supported files (TS, Python, etc.) through pnpm lint").action(async () => {
|
|
298
|
+
const lintFailed = await runRootLint(projectRoot);
|
|
306
299
|
const pythonFailed = await pythonStep("check");
|
|
307
|
-
if (
|
|
300
|
+
if (lintFailed || pythonFailed) process.exit(1);
|
|
308
301
|
});
|
|
309
302
|
program.command("count").description("count lines of code").action(async () => {
|
|
310
303
|
await spawn("cloc", ["`git ls-files | grep -E '(html)|(s?css)|(md)|(json)|(yaml)|([jt]sx?)$'`"], {
|
package/lib/commands/verbs.mjs
CHANGED
|
@@ -187,17 +187,8 @@ async function runBuild(args, projectRoot, spawn$3 = spawn) {
|
|
|
187
187
|
const packages = parsed.includes("packages");
|
|
188
188
|
const projects = parsed.filter((arg) => arg !== "packages");
|
|
189
189
|
const presentApps = await getPresentApps(projectRoot);
|
|
190
|
-
|
|
191
|
-
if (!projects.length && !packages || packages) await spawn$3("pnpm", [
|
|
192
|
-
"turbo",
|
|
193
|
-
"run",
|
|
194
|
-
"build",
|
|
195
|
-
"--filter",
|
|
196
|
-
"'!./apps/*'",
|
|
197
|
-
...presentServices.flatMap((s) => ["--filter", `'!./${serviceDir(s)}'`])
|
|
198
|
-
], {
|
|
190
|
+
if (!projects.length && !packages || packages) await spawn$3("pnpm", ["run", "build"], {
|
|
199
191
|
stdio: "inherit",
|
|
200
|
-
shell: true,
|
|
201
192
|
cwd: projectRoot
|
|
202
193
|
});
|
|
203
194
|
for (const platform of presentApps) if (!projects.length && !packages || projects.includes(platform)) {
|
|
@@ -213,14 +204,10 @@ async function runBuild(args, projectRoot, spawn$3 = spawn) {
|
|
|
213
204
|
});
|
|
214
205
|
}
|
|
215
206
|
}
|
|
216
|
-
/** `mpo lint`'s
|
|
217
|
-
async function
|
|
207
|
+
/** `mpo lint`'s pnpm half: the root `lint` script. Resolves true when it failed. */
|
|
208
|
+
async function runRootLint(projectRoot, spawn$4 = spawn) {
|
|
218
209
|
try {
|
|
219
|
-
await spawn$4("
|
|
220
|
-
"run",
|
|
221
|
-
"lint",
|
|
222
|
-
"--filter=//"
|
|
223
|
-
], {
|
|
210
|
+
await spawn$4("pnpm", ["run", "lint"], {
|
|
224
211
|
stdio: "inherit",
|
|
225
212
|
cwd: projectRoot
|
|
226
213
|
});
|
|
@@ -229,9 +216,16 @@ async function runTurboLint(projectRoot, spawn$4 = spawn) {
|
|
|
229
216
|
return true;
|
|
230
217
|
}
|
|
231
218
|
}
|
|
219
|
+
/** `mpo format`'s pnpm half: the root `format` script. */
|
|
220
|
+
async function runRootFormat(projectRoot, spawn$5 = spawn) {
|
|
221
|
+
await spawn$5("pnpm", ["run", "format"], {
|
|
222
|
+
stdio: "inherit",
|
|
223
|
+
cwd: projectRoot
|
|
224
|
+
});
|
|
225
|
+
}
|
|
232
226
|
/** `mpo frappe bench [args...]`: frappe.sh's bench command with the arguments passed through as given. */
|
|
233
|
-
async function runFrappeBench(args, frappeScript, projectRoot, spawn$
|
|
234
|
-
await spawn$
|
|
227
|
+
async function runFrappeBench(args, frappeScript, projectRoot, spawn$6 = spawn) {
|
|
228
|
+
await spawn$6("sh", [
|
|
235
229
|
frappeScript,
|
|
236
230
|
"bench",
|
|
237
231
|
...args
|
|
@@ -249,4 +243,4 @@ const waitFunctions = {
|
|
|
249
243
|
};
|
|
250
244
|
|
|
251
245
|
//#endregion
|
|
252
|
-
export { availableServices, parseTestTiers, runBuild, runFrappeBench, runIntegrationTests,
|
|
246
|
+
export { availableServices, parseTestTiers, runBuild, runFrappeBench, runIntegrationTests, runRootFormat, runRootLint, runUnitTests, testTiers, waitFunctions };
|
package/lib/source.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiplatform.one/cli",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.2",
|
|
4
4
|
"description": "multiplatform.one cli — mpo init clones and prunes the monorepo, mpo update merges it back",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"create-multiplatform-app",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@multiplatform.one/utils": "^8.2.
|
|
60
|
+
"@multiplatform.one/utils": "^8.2.2",
|
|
61
61
|
"commander": "^15.0.0",
|
|
62
62
|
"dotenv": "^17.4.2",
|
|
63
63
|
"inquirer": "^14.2.3",
|
package/scripts/scaffold.sh
CHANGED
|
@@ -555,10 +555,9 @@ fi
|
|
|
555
555
|
# redis and mailpit; keycloak: its postgres), when it bind-mounts from under
|
|
556
556
|
# apps/<app>, or when it depends on a service that went, and so do the named
|
|
557
557
|
# volumes only those services used. With no service left the file is
|
|
558
|
-
# `services: {}`, which compose still reads
|
|
559
|
-
#
|
|
560
|
-
#
|
|
561
|
-
# app they name is kept.
|
|
558
|
+
# `services: {}`, which compose still reads. A bake target building from
|
|
559
|
+
# apps/<app> and a `# <app>-block` of docker/Makefile go too. Nothing is
|
|
560
|
+
# rewritten while every app they name is kept.
|
|
562
561
|
if [ -n "$REMOVED_APPS" ] && [ -f "$TREE/docker/compose.yaml" ]; then
|
|
563
562
|
awk -v removed="$REMOVED_APPS" '
|
|
564
563
|
function record(svc, section, value, name) {
|
|
@@ -679,17 +678,6 @@ if [ -n "$REMOVED_APPS" ] && [ -f "$TREE/docker/compose.yaml" ]; then
|
|
|
679
678
|
}
|
|
680
679
|
' "$TREE/docker/compose.yaml" >"$TREE/docker/compose.yaml.scaffold.tmp" &&
|
|
681
680
|
mv "$TREE/docker/compose.yaml.scaffold.tmp" "$TREE/docker/compose.yaml"
|
|
682
|
-
if grep -q '^services: {}$' "$TREE/docker/compose.yaml"; then
|
|
683
|
-
node - "$TREE/package.json" <<'NODE'
|
|
684
|
-
const fs = require("node:fs");
|
|
685
|
-
const file = process.argv[2];
|
|
686
|
-
const pkg = JSON.parse(fs.readFileSync(file, "utf8"));
|
|
687
|
-
if (pkg.scripts?.backend?.includes("docker/compose.yaml")) {
|
|
688
|
-
delete pkg.scripts.backend;
|
|
689
|
-
fs.writeFileSync(file, `${JSON.stringify(pkg, null, 2)}\n`);
|
|
690
|
-
}
|
|
691
|
-
NODE
|
|
692
|
-
fi
|
|
693
681
|
fi
|
|
694
682
|
if [ -n "$REMOVED_APPS" ] && [ -f "$TREE/docker/docker-bake.hcl" ]; then
|
|
695
683
|
awk -v removed="$REMOVED_APPS" '
|
|
@@ -898,8 +886,8 @@ for (const [name, value] of Object.entries(scripts)) {
|
|
|
898
886
|
const kept = value
|
|
899
887
|
.split(" && ")
|
|
900
888
|
.filter((segment) => {
|
|
901
|
-
const match = segment.match(/^pnpm\s+([\w:.-]
|
|
902
|
-
return !match || match[1] in scripts;
|
|
889
|
+
const match = segment.match(/^pnpm\s+(?:run\s+)?([a-z][\w:.-]*)(?:\s|$)/);
|
|
890
|
+
return !match || match[1] in scripts || !(match[1] in (pkg.scripts ?? {}));
|
|
903
891
|
});
|
|
904
892
|
if (kept.length) scripts[name] = kept.join(" && ");
|
|
905
893
|
else delete scripts[name];
|
|
@@ -27,7 +27,8 @@ import {
|
|
|
27
27
|
runBuild,
|
|
28
28
|
runFrappeBench,
|
|
29
29
|
runIntegrationTests,
|
|
30
|
-
|
|
30
|
+
runRootFormat,
|
|
31
|
+
runRootLint,
|
|
31
32
|
runUnitTests,
|
|
32
33
|
testTiers,
|
|
33
34
|
waitFunctions,
|
|
@@ -512,22 +513,19 @@ async function pythonStep(mode: PythonMode): Promise<boolean> {
|
|
|
512
513
|
|
|
513
514
|
program
|
|
514
515
|
.command("format")
|
|
515
|
-
.description("format
|
|
516
|
+
.description("format your uncommitted files (pnpm format), then the Python apps")
|
|
516
517
|
.action(async () => {
|
|
517
|
-
await
|
|
518
|
-
stdio: "inherit",
|
|
519
|
-
cwd: projectRoot,
|
|
520
|
-
});
|
|
518
|
+
await runRootFormat(projectRoot);
|
|
521
519
|
await pythonStep("format");
|
|
522
520
|
});
|
|
523
521
|
|
|
524
522
|
program
|
|
525
523
|
.command("lint")
|
|
526
|
-
.description("lint all supported files (TS, Python, etc.)
|
|
524
|
+
.description("lint all supported files (TS, Python, etc.) through pnpm lint")
|
|
527
525
|
.action(async () => {
|
|
528
|
-
const
|
|
526
|
+
const lintFailed = await runRootLint(projectRoot);
|
|
529
527
|
const pythonFailed = await pythonStep("check");
|
|
530
|
-
if (
|
|
528
|
+
if (lintFailed || pythonFailed) process.exit(1);
|
|
531
529
|
});
|
|
532
530
|
|
|
533
531
|
program
|
|
@@ -11,7 +11,8 @@ import {
|
|
|
11
11
|
runBuild,
|
|
12
12
|
runFrappeBench,
|
|
13
13
|
runIntegrationTests,
|
|
14
|
-
|
|
14
|
+
runRootFormat,
|
|
15
|
+
runRootLint,
|
|
15
16
|
runUnitTests,
|
|
16
17
|
waitFunctions,
|
|
17
18
|
} from "./verbs";
|
|
@@ -252,20 +253,36 @@ describe("mpo build (FZ-10496)", () => {
|
|
|
252
253
|
["pnpm", "turbo", "run", "build", "--filter=./apps/solana"],
|
|
253
254
|
]);
|
|
254
255
|
});
|
|
256
|
+
|
|
257
|
+
it("builds the packages through the root build script, the one pnpm build runs (FZ-10576)", async () => {
|
|
258
|
+
const { calls, spawn } = recorder();
|
|
259
|
+
await runBuild(["packages"], root, spawn);
|
|
260
|
+
expect(calls).toEqual([{ file: "pnpm", args: ["run", "build"], cwd: root }]);
|
|
261
|
+
calls.length = 0;
|
|
262
|
+
await runBuild([], root, spawn);
|
|
263
|
+
expect(calls[0]).toEqual({ file: "pnpm", args: ["run", "build"], cwd: root });
|
|
264
|
+
});
|
|
255
265
|
});
|
|
256
266
|
|
|
257
267
|
describe("mpo lint (FZ-10496)", () => {
|
|
258
|
-
it("runs the root lint
|
|
268
|
+
it("runs the root lint script and no typecheck", async () => {
|
|
259
269
|
const { calls, spawn } = recorder();
|
|
260
|
-
expect(await
|
|
261
|
-
expect(calls).toEqual([
|
|
262
|
-
{ file: "turbo", args: ["run", "lint", "--filter=//"], cwd: "/project" },
|
|
263
|
-
]);
|
|
270
|
+
expect(await runRootLint("/project", spawn)).toBe(false);
|
|
271
|
+
expect(calls).toEqual([{ file: "pnpm", args: ["run", "lint"], cwd: "/project" }]);
|
|
264
272
|
});
|
|
265
273
|
|
|
266
274
|
it("reports a failed lint", async () => {
|
|
267
275
|
const { spawn } = recorder(() => true);
|
|
268
|
-
expect(await
|
|
276
|
+
expect(await runRootLint("/project", spawn)).toBe(true);
|
|
277
|
+
});
|
|
278
|
+
});
|
|
279
|
+
|
|
280
|
+
describe("mpo format (FZ-10576)", () => {
|
|
281
|
+
it("runs the root format script and fails with it", async () => {
|
|
282
|
+
const { calls, spawn } = recorder();
|
|
283
|
+
await runRootFormat("/project", spawn);
|
|
284
|
+
expect(calls).toEqual([{ file: "pnpm", args: ["run", "format"], cwd: "/project" }]);
|
|
285
|
+
await expect(runRootFormat("/project", recorder(() => true).spawn)).rejects.toThrow();
|
|
269
286
|
});
|
|
270
287
|
});
|
|
271
288
|
|
package/src/commands/verbs.ts
CHANGED
|
@@ -213,24 +213,8 @@ export async function runBuild(
|
|
|
213
213
|
const packages = parsed.includes("packages");
|
|
214
214
|
const projects = parsed.filter((arg) => arg !== "packages");
|
|
215
215
|
const presentApps = await getPresentApps(projectRoot);
|
|
216
|
-
const presentServices = await getPresentServices(projectRoot);
|
|
217
216
|
if ((!projects.length && !packages) || packages) {
|
|
218
|
-
await spawn(
|
|
219
|
-
"pnpm",
|
|
220
|
-
[
|
|
221
|
-
"turbo",
|
|
222
|
-
"run",
|
|
223
|
-
"build",
|
|
224
|
-
"--filter",
|
|
225
|
-
"'!./apps/*'",
|
|
226
|
-
...presentServices.flatMap((s) => ["--filter", `'!./${serviceDir(s)}'`]),
|
|
227
|
-
],
|
|
228
|
-
{
|
|
229
|
-
stdio: "inherit",
|
|
230
|
-
shell: true,
|
|
231
|
-
cwd: projectRoot,
|
|
232
|
-
},
|
|
233
|
-
);
|
|
217
|
+
await spawn("pnpm", ["run", "build"], { stdio: "inherit", cwd: projectRoot });
|
|
234
218
|
}
|
|
235
219
|
for (const platform of presentApps) {
|
|
236
220
|
if ((!projects.length && !packages) || projects.includes(platform)) {
|
|
@@ -254,19 +238,21 @@ export async function runBuild(
|
|
|
254
238
|
}
|
|
255
239
|
}
|
|
256
240
|
|
|
257
|
-
/** `mpo lint`'s
|
|
258
|
-
export async function
|
|
259
|
-
projectRoot: string,
|
|
260
|
-
spawn: Spawn = nanoSpawn,
|
|
261
|
-
): Promise<boolean> {
|
|
241
|
+
/** `mpo lint`'s pnpm half: the root `lint` script. Resolves true when it failed. */
|
|
242
|
+
export async function runRootLint(projectRoot: string, spawn: Spawn = nanoSpawn): Promise<boolean> {
|
|
262
243
|
try {
|
|
263
|
-
await spawn("
|
|
244
|
+
await spawn("pnpm", ["run", "lint"], { stdio: "inherit", cwd: projectRoot });
|
|
264
245
|
return false;
|
|
265
246
|
} catch {
|
|
266
247
|
return true;
|
|
267
248
|
}
|
|
268
249
|
}
|
|
269
250
|
|
|
251
|
+
/** `mpo format`'s pnpm half: the root `format` script. */
|
|
252
|
+
export async function runRootFormat(projectRoot: string, spawn: Spawn = nanoSpawn): Promise<void> {
|
|
253
|
+
await spawn("pnpm", ["run", "format"], { stdio: "inherit", cwd: projectRoot });
|
|
254
|
+
}
|
|
255
|
+
|
|
270
256
|
/** `mpo frappe bench [args...]`: frappe.sh's bench command with the arguments passed through as given. */
|
|
271
257
|
export async function runFrappeBench(
|
|
272
258
|
args: string[],
|
package/templates/AGENTS.md
CHANGED
|
@@ -152,17 +152,20 @@ loading.
|
|
|
152
152
|
|
|
153
153
|
## Tooling
|
|
154
154
|
|
|
155
|
-
| Command | Purpose
|
|
156
|
-
| ----------------------- |
|
|
157
|
-
| `pnpm dev` | The first product app's dev server (`dev:<name>` when several)
|
|
158
|
-
| `pnpm build` | Build every workspace package except the apps
|
|
159
|
-
| `pnpm build:web` | Production web build of the first product app
|
|
160
|
-
| `pnpm serve` | Serve that build on port 3000
|
|
161
|
-
| `pnpm lint` | oxlint (incl. convention rules) + structural convention checks
|
|
162
|
-
| `pnpm lint:
|
|
163
|
-
| `pnpm
|
|
164
|
-
| `pnpm
|
|
165
|
-
| `pnpm
|
|
155
|
+
| Command | Purpose |
|
|
156
|
+
| ----------------------- | ---------------------------------------------------------------------- |
|
|
157
|
+
| `pnpm dev` | The first product app's dev server (`dev:<name>` when several) |
|
|
158
|
+
| `pnpm build` | Build every workspace package except the apps |
|
|
159
|
+
| `pnpm build:web` | Production web build of the first product app |
|
|
160
|
+
| `pnpm serve` | Serve that build on port 3000 |
|
|
161
|
+
| `pnpm lint` | oxlint (incl. convention rules) + structural convention checks |
|
|
162
|
+
| `pnpm lint:ci` | The frozen design lint, `pnpm lint` and the changed-files format check |
|
|
163
|
+
| `pnpm lint:conventions` | Structural checks only (css twin, features twin) |
|
|
164
|
+
| `pnpm typecheck` | Typecheck every workspace package |
|
|
165
|
+
| `pnpm format` | oxfmt on your uncommitted files; `pnpm format <base>` for a branch |
|
|
166
|
+
| `pnpm format:all` | oxfmt over the whole tree |
|
|
167
|
+
| `pnpm ci:local` | lint:ci + typecheck + build + build:web + test + verify + tree-clean |
|
|
168
|
+
| `pnpm doctor:npmrc` | Check registry auth and the installed workspace linker |
|
|
166
169
|
|
|
167
170
|
Use **oxlint / oxfmt**, not ESLint / Prettier. Per-app targets are
|
|
168
171
|
`make <name>/<target>` from the root `Makefile`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multiplatformOne.d.ts","sourceRoot":"","sources":["../../src/bin/multiplatformOne.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"multiplatformOne.d.ts","sourceRoot":"","sources":["../../src/bin/multiplatformOne.ts"],"names":[],"mappings":"AAuCA,gHAAgH;AAChH,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,kGAAkG;IAClG,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gGAAgG;IAChG,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC,CAAC"}
|
|
@@ -12,8 +12,10 @@ export declare function runUnitTests(projectRoot: string, spawn?: Spawn): Promis
|
|
|
12
12
|
export declare function runIntegrationTests(projectRoot: string, spawn?: Spawn): Promise<void>;
|
|
13
13
|
/** `mpo build`: the packages, then every present app with a build script, each once. */
|
|
14
14
|
export declare function runBuild(args: string[], projectRoot: string, spawn?: Spawn): Promise<void>;
|
|
15
|
-
/** `mpo lint`'s
|
|
16
|
-
export declare function
|
|
15
|
+
/** `mpo lint`'s pnpm half: the root `lint` script. Resolves true when it failed. */
|
|
16
|
+
export declare function runRootLint(projectRoot: string, spawn?: Spawn): Promise<boolean>;
|
|
17
|
+
/** `mpo format`'s pnpm half: the root `format` script. */
|
|
18
|
+
export declare function runRootFormat(projectRoot: string, spawn?: Spawn): Promise<void>;
|
|
17
19
|
/** `mpo frappe bench [args...]`: frappe.sh's bench command with the arguments passed through as given. */
|
|
18
20
|
export declare function runFrappeBench(args: string[], frappeScript: string, projectRoot: string, spawn?: Spawn): Promise<void>;
|
|
19
21
|
/** The readiness probe behind each `mpo wait` service. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verbs.d.ts","sourceRoot":"","sources":["../../src/commands/verbs.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,WAAW,EAKjB,MAAM,8BAA8B,CAAC;AACtC,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,KAAK,KAAK,GAAG,OAAO,SAAS,CAAC;AAE9B,eAAO,MAAM,iBAAiB,UAA0C,CAAC;AAiGzE,eAAO,MAAM,SAAS,mDAAoD,CAAC;AAE3E,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAElD,8FAA8F;AAC9F,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,CAQzD;AA2CD,gGAAgG;AAChG,wBAAsB,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,GAAE,KAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAS/F;AAED,2HAA2H;AAC3H,wBAAsB,mBAAmB,CACvC,WAAW,EAAE,MAAM,EACnB,KAAK,GAAE,KAAiB,GACvB,OAAO,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