mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-18 15:33:52 +01:00
Add .oxfmtignore to skip generated bindings and wasm-pack output. Add npm format script, update DEVELOPMENT.md for Vite+ toolchain, and format all non-generated files with oxfmt. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
20 lines
597 B
JavaScript
20 lines
597 B
JavaScript
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" },
|
|
});
|
|
}
|