2019-03-29 02:16:44 +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:
|
2019-03-29 03:20:29 +01:00
|
|
|
branches:
|
2019-03-29 03:25:10 +01:00
|
|
|
include:
|
|
|
|
- '*'
|
2019-03-29 03:20:29 +01:00
|
|
|
exclude:
|
|
|
|
- l10n_master
|
2019-03-29 02:16:44 +01:00
|
|
|
|
|
|
|
pool:
|
2019-03-29 03:20:29 +01:00
|
|
|
vmImage: 'vs2017-win2016'
|
|
|
|
|
2019-03-29 03:26:08 +01:00
|
|
|
name: $(Rev:r)
|
2019-03-29 02:16:44 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- task: NodeTool@0
|
|
|
|
inputs:
|
|
|
|
versionSpec: '10.x'
|
|
|
|
displayName: 'Install Node.js'
|
|
|
|
|
2019-03-29 03:20:29 +01:00
|
|
|
- script: npm install -g gulp
|
|
|
|
|
|
|
|
- powershell: |
|
|
|
|
choco install cloc --no-progress
|
|
|
|
cloc --include-lang TypeScript,JavaScript,HTML,Sass,CSS --vcs git
|
|
|
|
|
2019-03-29 02:16:44 +01:00
|
|
|
- script: |
|
2019-03-29 03:20:29 +01:00
|
|
|
node --version
|
|
|
|
npm --version
|
|
|
|
|
|
|
|
- script: npm install
|
|
|
|
|
|
|
|
- script: npm run dist
|
|
|
|
|
|
|
|
- script: gulp ci
|
|
|
|
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
inputs:
|
|
|
|
rootFolderOrFile: dist/dist-opera-$(Build.BuildId).zip
|