Skip to content

Commit f400697

Browse files
committed
Set up CI with Azure Pipelines
1 parent 20336c3 commit f400697

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

.vscode/clean.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const path = require('path');
33
const directory = './out';
44

55
fs.readdir(directory, (err, files) => {
6-
if (err) throw err;
6+
if (err) return;
77

88
for (const file of files) {
99
fs.unlink(path.join(directory, file), err => {

azure-pipelines.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
trigger:
2+
- master
3+
4+
pool:
5+
vmImage: 'Ubuntu-16.04'
6+
7+
steps:
8+
- task: NodeTool@0
9+
inputs:
10+
versionSpec: '8.x'
11+
displayName: 'Install Node.js'
12+
13+
- script: |
14+
npm install
15+
npm run compile
16+
displayName: 'npm install and compile'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
"@types/node": "^8.10.25",
131131
"tslint": "^5.12.1",
132132
"typescript": "^3.3.1",
133-
"uglifyjs": "^2.4.11",
133+
"uglify-js": "^3.4.9",
134134
"vscode": "^1.1.28"
135135
}
136136
}

0 commit comments

Comments
 (0)