🔨 Update gulp
This commit is contained in:
		
					parent
					
						
							
								f2731eaa55
							
						
					
				
			
			
				commit
				
					
						2b2ddca3be
					
				
			
		
					 2 changed files with 6 additions and 8 deletions
				
			
		
							
								
								
									
										12
									
								
								gulpfile.js
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								gulpfile.js
									
										
									
									
									
								
							|  | @ -1,11 +1,9 @@ | ||||||
| const { src, dest } = require('gulp'); | const { task, src, dest } = require('gulp'); | ||||||
|  | 
 | ||||||
|  | task('build:icons', copyIcons); | ||||||
| 
 | 
 | ||||||
| function copyIcons() { | function copyIcons() { | ||||||
| 	src('nodes/**/*.{png,svg}') | 	src('nodes/**/*.{png,svg}').pipe(dest('dist/nodes')); | ||||||
| 		.pipe(dest('dist/nodes')) |  | ||||||
| 
 | 
 | ||||||
| 	return src('credentials/**/*.{png,svg}') | 	return src('credentials/**/*.{png,svg}').pipe(dest('dist/credentials')); | ||||||
| 		.pipe(dest('dist/credentials')); |  | ||||||
| } | } | ||||||
| 
 |  | ||||||
| exports.default = copyIcons; |  | ||||||
|  | @ -18,7 +18,7 @@ | ||||||
|   "main": "index.js", |   "main": "index.js", | ||||||
|   "scripts": { |   "scripts": { | ||||||
|     "dev": "npm run watch", |     "dev": "npm run watch", | ||||||
|     "build": "tsc && gulp", |     "build": "tsc && gulp build:icons", | ||||||
|     "format": "prettier nodes credentials --write", |     "format": "prettier nodes credentials --write", | ||||||
|     "lint": "tslint -p tsconfig.json -c tslint.json && node_modules/eslint/bin/eslint.js ./nodes", |     "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", |     "lintfix": "tslint --fix -p tsconfig.json -c tslint.json && node_modules/eslint/bin/eslint.js --fix ./nodes", | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue