mirror of
				https://github.com/n8n-io/n8n-nodes-starter.git
				synced 2025-10-31 07:12:25 -05:00 
			
		
		
		
	Some updates
This commit is contained in:
		
					parent
					
						
							
								0b4d09b62e
							
						
					
				
			
			
				commit
				
					
						1e43acf743
					
				
			
		
					 4 changed files with 9 additions and 9 deletions
				
			
		
							
								
								
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							|  | @ -6,3 +6,4 @@ dist | ||||||
| npm-debug.log* | npm-debug.log* | ||||||
| package-lock.json | package-lock.json | ||||||
| yarn.lock | yarn.lock | ||||||
|  | .idea | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| const { src, dest } = require('gulp'); | const { src, dest } = require('gulp'); | ||||||
| 
 | 
 | ||||||
| function copyIcons() { | function copyIcons() { | ||||||
| 	return src('nodes/**/*.png') | 	return src('nodes/**/*.{png,svg}') | ||||||
| 		.pipe(dest('dist/nodes')); | 		.pipe(dest('dist/nodes')); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -5,13 +5,13 @@ import { | ||||||
| 	INodeTypeDescription, | 	INodeTypeDescription, | ||||||
| } from 'n8n-workflow'; | } from 'n8n-workflow'; | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| export class ExampleNode implements INodeType { | export class ExampleNode implements INodeType { | ||||||
| 	description: INodeTypeDescription = { | 	description: INodeTypeDescription = { | ||||||
| 		displayName: 'Example Node', | 		displayName: 'Example Node', | ||||||
| 		name: 'exampleNode', | 		name: 'exampleNode', | ||||||
| 		group: ['transform'], | 		group: ['transform'], | ||||||
| 		version: 1, | 		version: 1, | ||||||
|  | 		subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}', | ||||||
| 		description: 'Basic Example Node', | 		description: 'Basic Example Node', | ||||||
| 		defaults: { | 		defaults: { | ||||||
| 			name: 'Example Node', | 			name: 'Example Node', | ||||||
|  | @ -33,7 +33,6 @@ export class ExampleNode implements INodeType { | ||||||
| 		] | 		] | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 	async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> { | 	async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> { | ||||||
| 
 | 
 | ||||||
| 		const items = this.getInputData(); | 		const items = this.getInputData(); | ||||||
|  | @ -41,7 +40,7 @@ export class ExampleNode implements INodeType { | ||||||
| 		let item: INodeExecutionData; | 		let item: INodeExecutionData; | ||||||
| 		let myString: string; | 		let myString: string; | ||||||
| 
 | 
 | ||||||
| 		// Itterates over all input items and add the key "myString" with the
 | 		// Iterates over all input items and add the key "myString" with the
 | ||||||
| 		// value the parameter "myString" resolves to.
 | 		// value the parameter "myString" resolves to.
 | ||||||
| 		// (This could be a different value for each item in case it contains an expression)
 | 		// (This could be a different value for each item in case it contains an expression)
 | ||||||
| 		for (let itemIndex = 0; itemIndex < items.length; itemIndex++) { | 		for (let itemIndex = 0; itemIndex < items.length; itemIndex++) { | ||||||
|  |  | ||||||
|  | @ -34,17 +34,17 @@ | ||||||
|     "devDependencies": { |     "devDependencies": { | ||||||
|         "@types/express": "^4.17.6", |         "@types/express": "^4.17.6", | ||||||
|         "@types/jest": "^24.0.18", |         "@types/jest": "^24.0.18", | ||||||
|         "@types/node": "^10.10.1", |         "@types/node": "^14.14.40", | ||||||
|         "@types/request-promise-native": "^1.0.17", |         "@types/request-promise-native": "^1.0.17", | ||||||
|         "gulp": "^4.0.0", |         "gulp": "^4.0.0", | ||||||
|         "jest": "^24.9.0", |         "jest": "^24.9.0", | ||||||
|         "n8n-workflow": "^0.11.0", |         "n8n-workflow": "^0.70.0", | ||||||
|         "ts-jest": "^24.0.2", |         "ts-jest": "^24.0.2", | ||||||
|         "tslint": "^5.17.0", |         "tslint": "^5.17.0", | ||||||
|         "typescript": "~3.5.2" |         "typescript": "~4.3.5" | ||||||
|     }, |     }, | ||||||
|     "dependencies": { |     "dependencies": { | ||||||
|         "n8n-core": "^0.10.0" |         "n8n-core": "^0.84.0" | ||||||
|     }, |     }, | ||||||
|     "jest": { |     "jest": { | ||||||
|         "transform": { |         "transform": { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue