feat: Add n8n-node CLI with commands to scaffold and develop nodes (#18090)

This commit is contained in:
Elias Meire
2025-08-15 14:55:39 +02:00
committed by GitHub
parent a1280b6bf4
commit c26104b3ba
93 changed files with 4279 additions and 380 deletions

View File

@@ -0,0 +1,17 @@
#!/usr/bin/env node
import glob from 'fast-glob';
import { cp } from 'node:fs/promises';
import path from 'path';
const templateFiles = glob.sync(['src/template/templates/**/*'], {
cwd: path.resolve(import.meta.dirname, '..'),
ignore: ['**/node_modules', '**/dist'],
dot: true,
});
await Promise.all(
templateFiles.map((template) =>
cp(template, `dist/${template.replace('src/', '')}`, { recursive: true }),
),
);