polylith 0.1.36 → 0.1.37
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/bin/apps.js +6 -0
- package/bin/polylith.js +5 -1
- package/package.json +1 -1
package/bin/apps.js
CHANGED
|
@@ -157,6 +157,12 @@ export async function watch(name, config, options) {
|
|
|
157
157
|
await server({...options, apps: apps});
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
+
export async function run(name, config, options) {
|
|
161
|
+
var apps = await build(name, config, options, false);
|
|
162
|
+
|
|
163
|
+
await server({...options, apps: apps});
|
|
164
|
+
}
|
|
165
|
+
|
|
160
166
|
export async function test(name, config, options) {
|
|
161
167
|
var apps = await walkApps(name, config, options, async function(app) {
|
|
162
168
|
return await app.test();
|
package/bin/polylith.js
CHANGED
|
@@ -7,7 +7,7 @@ import { promisify } from 'node:util';
|
|
|
7
7
|
import child_process from 'node:child_process';
|
|
8
8
|
import { readFile, writeFile } from 'node:fs/promises';
|
|
9
9
|
import { processManifest } from './templates.js';
|
|
10
|
-
import { watch, build, test } from './apps.js';
|
|
10
|
+
import { watch, build, test, run } from './apps.js';
|
|
11
11
|
|
|
12
12
|
var exec = promisify(child_process.exec);
|
|
13
13
|
var argv = minimist(process.argv.slice(2))
|
|
@@ -438,6 +438,10 @@ async function run() {
|
|
|
438
438
|
await test(params[1], config, clOptions)
|
|
439
439
|
break;
|
|
440
440
|
}
|
|
441
|
+
|
|
442
|
+
case 'run': {
|
|
443
|
+
await run(params[1], config, clOptions)
|
|
444
|
+
}
|
|
441
445
|
}
|
|
442
446
|
}
|
|
443
447
|
|