mirror of
				https://github.com/n8n-io/n8n-nodes-starter.git
				synced 2025-10-30 14:52:27 -05:00 
			
		
		
		
	Follow https://www.npmjs.com/package/genversion and show the package version in the description
This commit is contained in:
		
					parent
					
						
							
								10579a553e
							
						
					
				
			
			
				commit
				
					
						01222423b7
					
				
			
		
					 3 changed files with 10 additions and 3 deletions
				
			
		|  | @ -25,6 +25,8 @@ import { | ||||||
| 	OptionsWithUri | 	OptionsWithUri | ||||||
| } from 'request'; | } from 'request'; | ||||||
| 
 | 
 | ||||||
|  | import { version } from '../version'; | ||||||
|  | 
 | ||||||
| export class FriendGrid implements INodeType { | export class FriendGrid implements INodeType { | ||||||
| 	description: INodeTypeDescription = { | 	description: INodeTypeDescription = { | ||||||
| 		displayName: 'FriendGrid', | 		displayName: 'FriendGrid', | ||||||
|  | @ -33,7 +35,7 @@ export class FriendGrid implements INodeType { | ||||||
| 		group: ['transform'], | 		group: ['transform'], | ||||||
| 		version: 1, | 		version: 1, | ||||||
| 		subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}', | 		subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}', | ||||||
| 		description: 'Consume FriendGrid API', | 		description: `Consume FriendGrid API (v.${version})`, | ||||||
| 		defaults: { | 		defaults: { | ||||||
| 				name: 'FriendGrid', | 				name: 'FriendGrid', | ||||||
| 				color: '#1A82e2', | 				color: '#1A82e2', | ||||||
|  |  | ||||||
							
								
								
									
										2
									
								
								nodes/version.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								nodes/version.ts
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,2 @@ | ||||||
|  | // Generated by genversion.
 | ||||||
|  | export const version = '0.1.0'; | ||||||
|  | @ -15,13 +15,15 @@ | ||||||
|     "main": "index.js", |     "main": "index.js", | ||||||
|     "scripts": { |     "scripts": { | ||||||
|         "dev": "npm run watch", |         "dev": "npm run watch", | ||||||
|         "build": "tsc && gulp", |         "build": "tsc && gulp && genversion -s -e nodes/version.ts && git add .", | ||||||
|         "lint": "tslint -p tsconfig.json -c tslint.json", |         "lint": "tslint -p tsconfig.json -c tslint.json", | ||||||
|         "lintfix": "tslint --fix -p tsconfig.json -c tslint.json", |         "lintfix": "tslint --fix -p tsconfig.json -c tslint.json", | ||||||
|         "nodelinter": "nodelinter", |         "nodelinter": "nodelinter", | ||||||
|         "watch": "tsc --watch", |         "watch": "tsc --watch", | ||||||
|         "test": "jest", |         "test": "jest", | ||||||
|         "release": "npm run build && npm publish --access=public" |         "release": "npm run build && npm publish --access=public", | ||||||
|  |         "version": "npm run build && genversion -s -e nodes/version.ts", | ||||||
|  |         "postversion": "git push" | ||||||
|     }, |     }, | ||||||
|     "files": [ |     "files": [ | ||||||
|         "dist" |         "dist" | ||||||
|  | @ -39,6 +41,7 @@ | ||||||
|         "@types/jest": "^27.4.0", |         "@types/jest": "^27.4.0", | ||||||
|         "@types/node": "14.17.27", |         "@types/node": "14.17.27", | ||||||
|         "@types/request-promise-native": "~1.0.15", |         "@types/request-promise-native": "~1.0.15", | ||||||
|  |         "genversion": "^3.1.1", | ||||||
|         "gulp": "^4.0.0", |         "gulp": "^4.0.0", | ||||||
|         "jest": "^27.4.7", |         "jest": "^27.4.7", | ||||||
|         "n8n-workflow": "~0.93.0", |         "n8n-workflow": "~0.93.0", | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue