feat(plugin-cli): add cli af (#3465)

This commit is contained in:
Alex Yang
2023-07-30 11:10:45 -07:00
committed by GitHub
parent 568d5e4cdf
commit 18fcaff5ee
27 changed files with 469 additions and 59 deletions
-15
View File
@@ -1,15 +0,0 @@
import { spawn } from 'node:child_process';
const builtInPlugins = ['bookmark', 'hello-world', 'copilot', 'image-preview'];
for (const plugin of builtInPlugins) {
const cp = spawn('yarn', ['-T', 'run', 'dev-plugin', '--plugin', plugin], {
stdio: 'inherit',
shell: true,
});
cp.on('exit', code => {
if (code !== 0) {
process.exit(code);
}
});
}