mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	specify client specifically instead of through template
This commit is contained in:
		
							parent
							
								
									520acc11e6
								
							
						
					
					
						commit
						7d992798fd
					
				@ -38,7 +38,7 @@ jobs:
 | 
				
			|||||||
    displayName: 'Build unstable typescript axios client'
 | 
					    displayName: 'Build unstable typescript axios client'
 | 
				
			||||||
    condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/master')
 | 
					    condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/master')
 | 
				
			||||||
    inputs:
 | 
					    inputs:
 | 
				
			||||||
      script: 'bash ./apiclient/templates/typescript/unstable.sh axios'
 | 
					      script: 'bash ./apiclient/templates/typescript/axios/unstable.sh'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - task: Npm@1
 | 
					    - task: Npm@1
 | 
				
			||||||
    displayName: 'Publish unstable typescript axios client'
 | 
					    displayName: 'Publish unstable typescript axios client'
 | 
				
			||||||
@ -58,7 +58,7 @@ jobs:
 | 
				
			|||||||
    displayName: 'Build stable typescript axios client'
 | 
					    displayName: 'Build stable typescript axios client'
 | 
				
			||||||
    condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
 | 
					    condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
 | 
				
			||||||
    inputs:
 | 
					    inputs:
 | 
				
			||||||
      script: 'bash ./apiclient/templates/typescript/stable.sh axios'
 | 
					      script: 'bash ./apiclient/templates/typescript/axios/stable.sh'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - task: Npm@1
 | 
					    - task: Npm@1
 | 
				
			||||||
    displayName: 'Publish stable typescript axios client'
 | 
					    displayName: 'Publish stable typescript axios client'
 | 
				
			||||||
 | 
				
			|||||||
@ -1,10 +1,10 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "@jellyfin/client-{{npmName}}",
 | 
					  "name": "@jellyfin/client-axios",
 | 
				
			||||||
  "version": "10.7.0{{snapshotVersion}}",
 | 
					  "version": "10.7.0{{snapshotVersion}}",
 | 
				
			||||||
  "description": "Jellyfin api client using {{npmName}}",
 | 
					  "description": "Jellyfin api client using axios",
 | 
				
			||||||
  "author": "Jellyfin Contributors",
 | 
					  "author": "Jellyfin Contributors",
 | 
				
			||||||
  "keywords": [
 | 
					  "keywords": [
 | 
				
			||||||
    "{{npmName}}",
 | 
					    "axios",
 | 
				
			||||||
    "typescript",
 | 
					    "typescript",
 | 
				
			||||||
    "jellyfin"
 | 
					    "jellyfin"
 | 
				
			||||||
  ],
 | 
					  ],
 | 
				
			||||||
@ -1,10 +1,9 @@
 | 
				
			|||||||
#!/bin/bash
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
CLIENT=$1
 | 
					 | 
				
			||||||
java -jar openapi-generator-cli.jar generate \
 | 
					java -jar openapi-generator-cli.jar generate \
 | 
				
			||||||
    --input-spec $(System.ArtifactsDirectory)/openapi/openapi.json \
 | 
					    --input-spec $(System.ArtifactsDirectory)/openapi/openapi.json \
 | 
				
			||||||
    --generator-name typescript-${CLIENT} \
 | 
					    --generator-name typescript-axios \
 | 
				
			||||||
    --output ./apiclient/generated/typescript/${CLIENT}  \
 | 
					    --output ./apiclient/generated/typescript/axios  \
 | 
				
			||||||
    --template-dir ./apiclient/templates/typescript \
 | 
					    --template-dir ./apiclient/templates/typescript/axios \
 | 
				
			||||||
    --ignore-file-override ./apiclient/.openapi-generator-ignore \
 | 
					    --ignore-file-override ./apiclient/.openapi-generator-ignore \
 | 
				
			||||||
    --additional-properties=useSingleRequestParameter="true",npmName="${CLIENT}"
 | 
					    --additional-properties=useSingleRequestParameter="true",npmName="axios"
 | 
				
			||||||
							
								
								
									
										9
									
								
								apiclient/templates/typescript/axios/unstable.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								apiclient/templates/typescript/axios/unstable.sh
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,9 @@
 | 
				
			|||||||
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					java -jar openapi-generator-cli.jar generate \
 | 
				
			||||||
 | 
					    --input-spec $(System.ArtifactsDirectory)/openapi/openapi.json \
 | 
				
			||||||
 | 
					    --generator-name typescript-axios \
 | 
				
			||||||
 | 
					    --output ./apiclient/generated/typescript/axios  \
 | 
				
			||||||
 | 
					    --template-dir ./apiclient/templates/typescript/axios \
 | 
				
			||||||
 | 
					    --ignore-file-override ./apiclient/.openapi-generator-ignore \
 | 
				
			||||||
 | 
					    --additional-properties=useSingleRequestParameter="true",npmName="axios",snapshotVersion="-SNAPSHOT.$(Build.BuildNumber)",npmRepository="https://dev.azure.com/jellyfin-project/jellyfin/_packaging"
 | 
				
			||||||
@ -1,10 +0,0 @@
 | 
				
			|||||||
#!/bin/bash
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
CLIENT=$1
 | 
					 | 
				
			||||||
java -jar openapi-generator-cli.jar generate \
 | 
					 | 
				
			||||||
    --input-spec $(System.ArtifactsDirectory)/openapi/openapi.json \
 | 
					 | 
				
			||||||
    --generator-name typescript-${CLIENT} \
 | 
					 | 
				
			||||||
    --output ./apiclient/generated/typescript/${CLIENT}  \
 | 
					 | 
				
			||||||
    --template-dir ./apiclient/templates/typescript \
 | 
					 | 
				
			||||||
    --ignore-file-override ./apiclient/.openapi-generator-ignore \
 | 
					 | 
				
			||||||
    --additional-properties=useSingleRequestParameter="true",npmName="${CLIENT}",snapshotVersion="-SNAPSHOT.$(Build.BuildNumber)",npmRepository="https://dev.azure.com/jellyfin-project/jellyfin/_packaging"
 | 
					 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user