Add descriptions to plugins

This commit is contained in:
Gregory Schier
2025-07-06 12:47:13 -07:00
parent cf35658fea
commit 47722643ee
30 changed files with 150 additions and 85 deletions

View File

@@ -0,0 +1,15 @@
const { readdirSync } = require('node:fs');
const path = require('node:path');
const { execSync } = require('node:child_process');
const pluginsDir = path.join(__dirname, '..', 'plugins');
console.log('Publishing core Yaak plugins');
for (const name of readdirSync(pluginsDir)) {
const dir = path.join(pluginsDir, name);
if (name.startsWith('.')) continue;
console.log('Building plugin', dir);
execSync('npm run build', { stdio: 'inherit', cwd: dir });
execSync('yaakcli publish', { stdio: 'inherit', cwd: dir, env: { ...process.env, ENVIRONMENT: 'development' } });
}

View File

@@ -80,7 +80,7 @@ rmSync(tmpDir, { recursive: true, force: true });
function tryExecSync(cmd) {
try {
return execSync(cmd).toString('utf-8');
return execSync(cmd, { stdio: 'inherit' }).toString('utf-8');
} catch (_) {
return '';
}

View File

@@ -81,7 +81,7 @@ mkdirSync(dstDir, { recursive: true });
function tryExecSync(cmd) {
try {
return execSync(cmd).toString('utf-8');
return execSync(cmd, { stdio: 'inherit' }).toString('utf-8');
} catch (_) {
return '';
}