2022-06-28 15:25:17 +02:00
|
|
|
const path = require('path');
|
2022-06-27 11:52:17 +02:00
|
|
|
const { task, src, dest } = require('gulp');
|
|
|
|
|
|
|
|
|
|
task('build:icons', copyIcons);
|
2019-10-03 08:53:03 +02:00
|
|
|
|
|
|
|
|
function copyIcons() {
|
2022-06-28 15:25:17 +02:00
|
|
|
const nodeSource = path.resolve('nodes', '**', '*.{png,svg}');
|
|
|
|
|
const nodeDestination = path.resolve('dist', 'nodes');
|
2022-01-17 18:21:18 +01:00
|
|
|
|
2022-06-28 15:25:17 +02:00
|
|
|
src(nodeSource).pipe(dest(nodeDestination));
|
|
|
|
|
|
|
|
|
|
const credSource = path.resolve('credentials', '**', '*.{png,svg}');
|
|
|
|
|
const credDestination = path.resolve('dist', 'credentials');
|
2022-06-27 12:22:08 +02:00
|
|
|
|
2022-06-28 15:25:17 +02:00
|
|
|
return src(credSource).pipe(dest(credDestination));
|
|
|
|
|
}
|