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