From 2b2ddca3be2dd94931ceca71cdf8f60f6399e1ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Mon, 27 Jun 2022 11:52:17 +0200 Subject: [PATCH] :hammer: Update gulp --- gulpfile.js | 12 +++++------- package.json | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 546bb43..dfed723 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,11 +1,9 @@ -const { src, dest } = require('gulp'); +const { task, src, dest } = require('gulp'); + +task('build:icons', copyIcons); function copyIcons() { - src('nodes/**/*.{png,svg}') - .pipe(dest('dist/nodes')) + src('nodes/**/*.{png,svg}').pipe(dest('dist/nodes')); - return src('credentials/**/*.{png,svg}') - .pipe(dest('dist/credentials')); + return src('credentials/**/*.{png,svg}').pipe(dest('dist/credentials')); } - -exports.default = copyIcons; \ No newline at end of file diff --git a/package.json b/package.json index 51c094b..25b2dcb 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "main": "index.js", "scripts": { "dev": "npm run watch", - "build": "tsc && gulp", + "build": "tsc && gulp build:icons", "format": "prettier nodes credentials --write", "lint": "tslint -p tsconfig.json -c tslint.json && node_modules/eslint/bin/eslint.js ./nodes", "lintfix": "tslint --fix -p tsconfig.json -c tslint.json && node_modules/eslint/bin/eslint.js --fix ./nodes",