improve build times and modify yarn scripts
This commit is contained in:
@@ -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'
|
||||
|
||||
+3
-2
@@ -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\""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user