mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-10-29 06:22:24 -05:00
icon not being copied solved
This commit is contained in:
parent
fc3d0df193
commit
bd868dcc2b
3 changed files with 3355 additions and 579 deletions
18
gulpfile.js
18
gulpfile.js
|
|
@ -1,16 +1,6 @@
|
||||||
const path = require('path');
|
|
||||||
const { task, src, dest } = require('gulp');
|
const { task, src, dest } = require('gulp');
|
||||||
|
|
||||||
task('build:icons', copyIcons);
|
task('build:icons', function () {
|
||||||
|
return src(['nodes/**/*.png', 'nodes/**/*.svg'], { base: 'nodes' })
|
||||||
function copyIcons() {
|
.pipe(dest('dist/nodes'));
|
||||||
const nodeSource = path.resolve('nodes', '**', '*.{png,svg}');
|
});
|
||||||
const nodeDestination = path.resolve('dist', 'nodes');
|
|
||||||
|
|
||||||
src(nodeSource).pipe(dest(nodeDestination));
|
|
||||||
|
|
||||||
const credSource = path.resolve('credentials', '**', '*.{png,svg}');
|
|
||||||
const credDestination = path.resolve('dist', 'credentials');
|
|
||||||
|
|
||||||
return src(credSource).pipe(dest(credDestination));
|
|
||||||
}
|
|
||||||
|
|
|
||||||
3906
package-lock.json
generated
3906
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -43,7 +43,7 @@
|
||||||
"@typescript-eslint/parser": "~8.32.0",
|
"@typescript-eslint/parser": "~8.32.0",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-plugin-n8n-nodes-base": "^1.16.3",
|
"eslint-plugin-n8n-nodes-base": "^1.16.3",
|
||||||
"gulp": "^5.0.0",
|
"gulp": "^4.0.2",
|
||||||
"prettier": "^3.5.3",
|
"prettier": "^3.5.3",
|
||||||
"typescript": "^5.8.2"
|
"typescript": "^5.8.2"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue