From bb4d394d29dcbe9f5051154a05dc935fcd86bc03 Mon Sep 17 00:00:00 2001 From: YakovSand Date: Mon, 25 Aug 2025 11:20:30 -0400 Subject: [PATCH 1/7] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..ba0bcf31 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,21 @@ +# Node.js with React +# Build a Node.js project that uses React. +# Add steps that analyze code, save build artifacts, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript + +trigger: +- master + +pool: + vmImage: ubuntu-latest + +steps: +- task: NodeTool@0 + inputs: + versionSpec: '20.x' + displayName: 'Install Node.js' + +- script: | + npm install + npm run build + displayName: 'npm install and build' From 29fb745fc32b9d9a1a79a555b742edc47f613293 Mon Sep 17 00:00:00 2001 From: YakovSand Date: Mon, 25 Aug 2025 22:13:58 +0300 Subject: [PATCH 2/7] Update azure-pipelines.yml --- azure-pipelines.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ba0bcf31..1c56a948 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,7 +7,9 @@ trigger: - master pool: - vmImage: ubuntu-latest + name: 'SelfHostedAgents' # Name of self-hosted agent pool + demands: + - agent.os -equals Linux # Optional: enforce OS type steps: - task: NodeTool@0 From 2fb118158dfdb0e002d1c67ddbe834805c3cbe48 Mon Sep 17 00:00:00 2001 From: YakovSand Date: Mon, 25 Aug 2025 22:22:56 +0300 Subject: [PATCH 3/7] Update azure-pipelines.yml by fixing npm build --- azure-pipelines.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 1c56a948..8b94d571 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -18,6 +18,15 @@ steps: displayName: 'Install Node.js' - script: | - npm install + # Clean npm cache (optional but recommended) + npm cache clean --force + + # Install dependencies ignoring peer dependency conflicts + npm install --legacy-peer-deps + + # Ensure env-cmd is installed + npm install env-cmd --save-dev + + # Run the build npm run build - displayName: 'npm install and build' + displayName: 'npm install and build (with fixes)' From 4d9f67e9f22e163de5dfabacebdb4945416ad861 Mon Sep 17 00:00:00 2001 From: YakovSand Date: Mon, 25 Aug 2025 22:42:38 +0300 Subject: [PATCH 4/7] Update azure-pipelines.yml --- azure-pipelines.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8b94d571..e55de4c7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,7 +1,5 @@ # Node.js with React # Build a Node.js project that uses React. -# Add steps that analyze code, save build artifacts, deploy, and more: -# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript trigger: - master @@ -18,15 +16,18 @@ steps: displayName: 'Install Node.js' - script: | - # Clean npm cache (optional but recommended) + # Clean npm cache (optional) npm cache clean --force + # Upgrade eslint-plugin-import to match current eslint version + npm install eslint-plugin-import@^2.25.5 --save-dev + # Install dependencies ignoring peer dependency conflicts npm install --legacy-peer-deps # Ensure env-cmd is installed npm install env-cmd --save-dev - # Run the build - npm run build - displayName: 'npm install and build (with fixes)' + # Run build using inline environment variables + AZP_URL=$(AZP_URL) AZP_TOKEN=$(AZP_TOKEN) AZP_POOL=$(AZP_POOL) npm run build + displayName: 'Install, resolve dependencies, and build' From ff9b277c1821557db3f7d956ef6f90a07d64021b Mon Sep 17 00:00:00 2001 From: YakovSand Date: Mon, 25 Aug 2025 22:50:01 +0300 Subject: [PATCH 5/7] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f56bcc73..b3bf8976 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "babel-plugin-module-resolver": "^4.0.0", "css-loader": "^3.4.2", "env-cmd": "^10.1.0", - "eslint": "^7.1.0", + "eslint": "^7.32.0", "eslint-import-resolver-babel-module": "^5.1.2", "eslint-plugin-babel": "^5.3.0", "eslint-plugin-flowtype": "^5.1.3", From 6f14c2d22d5d6bff9c0906f08ccd4c20de9bbacf Mon Sep 17 00:00:00 2001 From: YakovSand Date: Mon, 25 Aug 2025 23:01:50 +0300 Subject: [PATCH 6/7] Update --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b3bf8976..2d1817bf 100644 --- a/package.json +++ b/package.json @@ -21,8 +21,8 @@ "dev:client": "babel-node server/start-dev-client.js", "dev:server": "babel-node server/start-dev-server.js", "dev:server:watch": "nodemon server/start-dev-server.js --exec babel-node", - "build": "env-cmd next build web", - "start": "env-cmd babel-node server/start-prod.js" + "build": "next build web", + "start": "babel-node server/start-prod.js", }, "dependencies": { "body-parser": "^1.19.0", From 7be6b9615bea5e187857614afd9530bf7091f8b7 Mon Sep 17 00:00:00 2001 From: YakovSand Date: Mon, 25 Aug 2025 23:05:19 +0300 Subject: [PATCH 7/7] Update azure-pipelines.yml --- azure-pipelines.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e55de4c7..9d70cb2f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -16,18 +16,9 @@ steps: displayName: 'Install Node.js' - script: | - # Clean npm cache (optional) - npm cache clean --force - - # Upgrade eslint-plugin-import to match current eslint version - npm install eslint-plugin-import@^2.25.5 --save-dev - - # Install dependencies ignoring peer dependency conflicts npm install --legacy-peer-deps - - # Ensure env-cmd is installed - npm install env-cmd --save-dev - + AZP_URL=$(AZP_URL) AZP_TOKEN=$(AZP_TOKEN) AZP_POOL=$(AZP_POOL) npm run build + displayName: 'Install dependencies and build' # Run build using inline environment variables AZP_URL=$(AZP_URL) AZP_TOKEN=$(AZP_TOKEN) AZP_POOL=$(AZP_POOL) npm run build displayName: 'Install, resolve dependencies, and build'