Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Node.js with React
# Build a Node.js project that uses React.

trigger:
- master

pool:
name: 'SelfHostedAgents' # Name of self-hosted agent pool
demands:
- agent.os -equals Linux # Optional: enforce OS type

steps:
- task: NodeTool@0
inputs:
versionSpec: '20.x'
displayName: 'Install Node.js'

- script: |
npm install --legacy-peer-deps
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'
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down