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
|
||||
displayName: 'Build'
|
||||
|
||||
dependsOn: lint
|
||||
condition: succeeded()
|
||||
|
||||
pool:
|
||||
vmImage: 'ubuntu-latest'
|
||||
|
||||
|
@ -30,7 +27,7 @@ jobs:
|
|||
BuildConfiguration: bundle
|
||||
Standalone:
|
||||
BuildConfiguration: standalone
|
||||
maxParallel: 2
|
||||
maxParallel: 3
|
||||
|
||||
steps:
|
||||
- task: NodeTool@0
|
||||
|
@ -41,6 +38,10 @@ jobs:
|
|||
- script: 'yarn install'
|
||||
displayName: 'Install Dependencies'
|
||||
|
||||
- script: 'yarn build'
|
||||
displayName: 'Build Development'
|
||||
condition: eq(variables['BuildConfiguration'], 'development')
|
||||
|
||||
- script: 'yarn build'
|
||||
displayName: 'Build Bundle'
|
||||
condition: eq(variables['BuildConfiguration'], 'bundle')
|
||||
|
@ -54,6 +55,7 @@ jobs:
|
|||
|
||||
- script: 'mv dist jellyfin-web'
|
||||
displayName: 'Rename Directory'
|
||||
condition: succeeded()
|
||||
|
||||
- task: PublishPipelineArtifact@1
|
||||
displayName: 'Publish Release'
|
||||
|
|
|
@ -90,9 +90,10 @@
|
|||
],
|
||||
"scripts": {
|
||||
"serve": "gulp serve",
|
||||
"build": "gulp --bundle",
|
||||
"build": "gulp",
|
||||
"build development": "gulp --development",
|
||||
"build bundle": "gulp --bundle",
|
||||
"build standalone": "gulp --standalone",
|
||||
"build development": "gulp",
|
||||
"lint": "eslint \"src\"",
|
||||
"stylelint": "stylelint \"src/**/*.css\""
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue