From 2cb68b9a243f11ca0c7a8aafcb7ce96a938aa4c9 Mon Sep 17 00:00:00 2001 From: dkanada Date: Tue, 17 Mar 2020 00:04:52 +0900 Subject: [PATCH] improve build times and modify yarn scripts --- .ci/azure-pipelines.yml | 10 ++++++---- package.json | 5 +++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.ci/azure-pipelines.yml b/.ci/azure-pipelines.yml index 1a0f11a644..7e929f40fc 100644 --- a/.ci/azure-pipelines.yml +++ b/.ci/azure-pipelines.yml @@ -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' diff --git a/package.json b/package.json index 90d463fb4d..5ad70cacdf 100644 --- a/package.json +++ b/package.json @@ -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\"" }