work in progress packaging azure pipeline task

This commit is contained in:
Artur Stolear
2019-11-22 21:21:13 +02:00
parent b1d05d399b
commit 64f41a665b
5 changed files with 36 additions and 106 deletions

3
.gitignore vendored
View File

@@ -2,4 +2,5 @@ node_modules/
.taskkey
*.js
!dist/**/*.js
!dist/**/*.js
*.vsix

View File

@@ -1,7 +1,7 @@
{
"id": "dd065e3b-6aef-46af-845c-520195836b35",
"name": "UseGitVersion",
"friendlyName": "GitVersion Task$titleSuffix$",
"id": "1fd80e12-d27d-49d5-a887-be96689d3b57",
"name": "ExecuteGitVersion",
"friendlyName": "Excute GitVersion Task",
"description": "Easy Semantic Versioning (http://semver.org) for projects using Git",
"author": "GitVersion Contributors",
"helpMarkDown": "See the [documentation](http://gitversion.readthedocs.org/en/latest/) for help",
@@ -13,8 +13,8 @@
"Patch": "2"
},
"minimumAgentVersion": "2.115.0",
"groups": [
{
"instanceNameFormat": "ExecuteGitVersion",
"groups": [{
"name": "gitversionDetails",
"displayName": "GitVersion details",
"isExpanded": true
@@ -25,25 +25,7 @@
"isExpanded": false
}
],
"instanceNameFormat": "GitVersion",
"inputs": [
{
"name": "versionSpec",
"type": "string",
"label": "The version spec",
"defaultValue": "",
"required": true,
"helpMarkDown": "Required version in the form of 5.x or exact version like 5.0.0"
},
{
"name": "includePrerelease",
"type": "boolean",
"label": "Include pre-release versions",
"defaultValue": "false",
"required": false,
"helpMarkDown": "Include pre-release versions when matching a version"
},
{
"inputs": [{
"name": "targetPath",
"type": "string",
"label": "Working directory path",
@@ -96,11 +78,12 @@
"groupName": "additional"
}
],
"execution": {
"Node": {
"target": "GitVersion.js",
"target": "index.js",
"argumentFormat": "",
"workingDirectory": "."
}
}
}
}

View File

@@ -1,7 +1,7 @@
{
"id": "dd065e3b-6aef-46af-845c-520195836b35",
"name": "UseGitVersion",
"friendlyName": "GitVersion Task$titleSuffix$",
"id": "cf6686dd-1807-4367-af65-669346359afd",
"name": "SetupGitVersion",
"friendlyName": "Setup GitVersion Task",
"description": "Easy Semantic Versioning (http://semver.org) for projects using Git",
"author": "GitVersion Contributors",
"helpMarkDown": "See the [documentation](http://gitversion.readthedocs.org/en/latest/) for help",
@@ -13,21 +13,7 @@
"Patch": "2"
},
"minimumAgentVersion": "2.115.0",
"groups": [
{
"name": "gitversionDetails",
"displayName": "GitVersion details",
"isExpanded": true
},
{
"name": "additional",
"displayName": "Additional Options",
"isExpanded": false
}
],
"instanceNameFormat": "GitVersion",
"inputs": [
{
"inputs": [{
"name": "versionSpec",
"type": "string",
"label": "The version spec",
@@ -42,65 +28,15 @@
"defaultValue": "false",
"required": false,
"helpMarkDown": "Include pre-release versions when matching a version"
},
{
"name": "targetPath",
"type": "string",
"label": "Working directory path",
"defaultValue": "",
"required": false,
"helpMarkDown": "Optionally supply the path to the working directory",
"groupName": "gitversionDetails"
},
{
"name": "useConfigFile",
"type": "boolean",
"label": "Specify Configuration file",
"defaultValue": "false",
"required": false,
"helpMarkDown": "Whether to use a custom configuration file"
},
{
"name": "configFilePath",
"type": "filePath",
"label": "Configuration file",
"defaultValue": "",
"required": false,
"helpMarkDown": "Optional path to config file (defaults to GitVersion.yml)",
"visibleRule": "useConfigFile = true"
},
{
"name": "updateAssemblyInfo",
"type": "boolean",
"label": "Update AssemblyInfo files",
"defaultValue": "false",
"required": false,
"helpMarkDown": "Whether to update versions in the AssemblyInfo files"
},
{
"name": "updateAssemblyInfoFilename",
"type": "string",
"label": "Update Assembly File",
"defaultValue": "",
"required": false,
"helpMarkDown": "Update versions in specified file",
"visibleRule": "updateAssemblyInfo = true"
},
{
"name": "additionalArguments",
"type": "string",
"label": "Additional GitVersion arguments",
"defaultValue": "",
"required": false,
"helpMarkDown": "Additional arguments to send to GitVersion",
"groupName": "additional"
}
],
"instanceNameFormat": "SetupGitVersion",
"execution": {
"Node": {
"target": "GitVersion.js",
"target": "index.js",
"argumentFormat": "",
"workingDirectory": "."
}
}
}
}

View File

@@ -1,23 +1,23 @@
{
"manifestVersion": 1,
"id": "usegitversion$idSuffix$",
"name": "UseGitVersion$titleSuffix$",
"id": "usegitversion-test",
"name": "UseGitVersion",
"publisher": "gittools",
"public": true,
"author": "GitVersion Contributors",
"version": "$version$",
"description": "Build task for easy semantic versioning for projects using Git.",
"targets": [{
"id": "Microsoft.VisualStudio.Services"
}],
"files": [
{ "path": "GitVersionTask" }
{ "path": "execute" },
{ "path": "setup" }
],
"categories": [
"Azure Pipelines"
],
"galleryFlags": [
"$visibility$"
"Public"
],
"icons": {
"default": "images/extension-icon.png"
@@ -59,13 +59,22 @@
}
},
"contributions": [{
"id": "gitversion-task",
"id": "setup-gitversion-task",
"type": "ms.vss-distributed-task.task",
"targets": [
"ms.vss-distributed-task.tasks"
],
"properties": {
"name": "GitVersionTask"
"name": "setup"
}
}, {
"id": "execute-gitversion-task",
"type": "ms.vss-distributed-task.task",
"targets": [
"ms.vss-distributed-task.tasks"
],
"properties": {
"name": "execute"
}
}]
}

View File

@@ -36,6 +36,7 @@
"@types/node": "12.12.11",
"@types/q": "1.5.2",
"reflect-metadata": "^0.1.13",
"tfx-cli": "0.6.3",
"tslint": "^5.20.1",
"typescript": "^3.7.2",
"@zeit/ncc": "^0.20.5"