mirror of
https://git.atakanozban.com/Songs2VID/songs2vid.git
synced 2026-11-14 21:29:49 +01:00
15 lines
375 B
JavaScript
15 lines
375 B
JavaScript
|
|
const { src, dest } = require("gulp");
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Copy node/credential icons (+ codex JSON) into dist so n8n can resolve
|
||
|
|
* `icon: "file:songs2vid.svg"` next to the compiled .js files.
|
||
|
|
*/
|
||
|
|
function copyIcons() {
|
||
|
|
return src(
|
||
|
|
["nodes/**/*.{png,svg,json}", "credentials/**/*.{png,svg,json}"],
|
||
|
|
{ base: "." },
|
||
|
|
).pipe(dest("dist"));
|
||
|
|
}
|
||
|
|
|
||
|
|
exports["build:icons"] = copyIcons;
|