2020-12-12 00:42:43 +01:00
|
|
|
# Node.js
|
|
|
|
# Build a general Node.js project with npm.
|
|
|
|
# Add steps that analyze code, save build artifacts, deploy, and more:
|
|
|
|
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
- main
|
|
|
|
|
|
|
|
pool:
|
|
|
|
vmImage: 'windows-latest'
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- task: NodeTool@0
|
|
|
|
inputs:
|
|
|
|
versionSpec: '10.x'
|
|
|
|
displayName: 'Install Node.js'
|
|
|
|
|
|
|
|
- script: npm install
|
|
|
|
displayName: 'npm install'
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
npm run build
|
|
|
|
npm npm run clean:dist
|
2020-12-12 00:46:37 +01:00
|
|
|
displayName: 'npm build'
|
|
|
|
|
2020-12-14 16:38:45 +01:00
|
|
|
- script: npm run node_modules/.bin/electron-builder --win --x64 --ia32 -p never
|
2020-12-12 00:46:37 +01:00
|
|
|
displayName: 'electron-builder package'
|