Skip to content

Commit f7f736a

Browse files
authored
fix: icon file on build (#13)
1 parent 5e44e04 commit f7f736a

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

gulpfile.js

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
11
const path = require('path');
2-
const { task, src, dest } = require('gulp');
2+
const { task, src, dest, parallel } = require('gulp');
33

4-
task('build:icons', copyIcons);
4+
task('build:icons', parallel(copyNodeAssetIcons, copyRootNodeIcons, copyIconsFolder));
55

6-
function copyIcons() {
6+
function copyNodeAssetIcons() {
77
const nodeSource = path.resolve('nodes/assets/contaazul.svg');
88
const nodeDestination = path.resolve('dist/nodes/ContaAzul/assets');
99

1010
return src(nodeSource).pipe(dest(nodeDestination));
1111
}
12+
13+
function copyRootNodeIcons() {
14+
const nodeSource = path.resolve('nodes/ContaAzul/contaazul.svg');
15+
const nodeDestination = path.resolve('dist/nodes/ContaAzul');
16+
17+
return src(nodeSource).pipe(dest(nodeDestination));
18+
}
19+
20+
function copyIconsFolder() {
21+
const iconSource = path.resolve('icons/**/*.svg');
22+
const iconDestination = path.resolve('dist/icons');
23+
24+
return src(iconSource).pipe(dest(iconDestination));
25+
}
File renamed without changes.

0 commit comments

Comments
 (0)