mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
improve build times and modify yarn scripts
This commit is contained in:
parent
e7f4412771
commit
2cb68b9a24
2 changed files with 9 additions and 6 deletions
|
@ -16,9 +16,6 @@ jobs:
|
||||||
- job: build
|
- job: build
|
||||||
displayName: 'Build'
|
displayName: 'Build'
|
||||||
|
|
||||||
dependsOn: lint
|
|
||||||
condition: succeeded()
|
|
||||||
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'ubuntu-latest'
|
vmImage: 'ubuntu-latest'
|
||||||
|
|
||||||
|
@ -30,7 +27,7 @@ jobs:
|
||||||
BuildConfiguration: bundle
|
BuildConfiguration: bundle
|
||||||
Standalone:
|
Standalone:
|
||||||
BuildConfiguration: standalone
|
BuildConfiguration: standalone
|
||||||
maxParallel: 2
|
maxParallel: 3
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- task: NodeTool@0
|
- task: NodeTool@0
|
||||||
|
@ -41,6 +38,10 @@ jobs:
|
||||||
- script: 'yarn install'
|
- script: 'yarn install'
|
||||||
displayName: 'Install Dependencies'
|
displayName: 'Install Dependencies'
|
||||||
|
|
||||||
|
- script: 'yarn build'
|
||||||
|
displayName: 'Build Development'
|
||||||
|
condition: eq(variables['BuildConfiguration'], 'development')
|
||||||
|
|
||||||
- script: 'yarn build'
|
- script: 'yarn build'
|
||||||
displayName: 'Build Bundle'
|
displayName: 'Build Bundle'
|
||||||
condition: eq(variables['BuildConfiguration'], 'bundle')
|
condition: eq(variables['BuildConfiguration'], 'bundle')
|
||||||
|
@ -54,6 +55,7 @@ jobs:
|
||||||
|
|
||||||
- script: 'mv dist jellyfin-web'
|
- script: 'mv dist jellyfin-web'
|
||||||
displayName: 'Rename Directory'
|
displayName: 'Rename Directory'
|
||||||
|
condition: succeeded()
|
||||||
|
|
||||||
- task: PublishPipelineArtifact@1
|
- task: PublishPipelineArtifact@1
|
||||||
displayName: 'Publish Release'
|
displayName: 'Publish Release'
|
||||||
|
|
|
@ -90,9 +90,10 @@
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "gulp serve",
|
"serve": "gulp serve",
|
||||||
"build": "gulp --bundle",
|
"build": "gulp",
|
||||||
|
"build development": "gulp --development",
|
||||||
|
"build bundle": "gulp --bundle",
|
||||||
"build standalone": "gulp --standalone",
|
"build standalone": "gulp --standalone",
|
||||||
"build development": "gulp",
|
|
||||||
"lint": "eslint \"src\"",
|
"lint": "eslint \"src\"",
|
||||||
"stylelint": "stylelint \"src/**/*.css\""
|
"stylelint": "stylelint \"src/**/*.css\""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue