work in progress packaging azure pipeline task
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@ node_modules/
|
|||||||
.taskkey
|
.taskkey
|
||||||
*.js
|
*.js
|
||||||
!dist/**/*.js
|
!dist/**/*.js
|
||||||
|
*.vsix
|
||||||
|
|||||||
33
dist/azure/execute/task.json
vendored
33
dist/azure/execute/task.json
vendored
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "dd065e3b-6aef-46af-845c-520195836b35",
|
"id": "1fd80e12-d27d-49d5-a887-be96689d3b57",
|
||||||
"name": "UseGitVersion",
|
"name": "ExecuteGitVersion",
|
||||||
"friendlyName": "GitVersion Task$titleSuffix$",
|
"friendlyName": "Excute GitVersion Task",
|
||||||
"description": "Easy Semantic Versioning (http://semver.org) for projects using Git",
|
"description": "Easy Semantic Versioning (http://semver.org) for projects using Git",
|
||||||
"author": "GitVersion Contributors",
|
"author": "GitVersion Contributors",
|
||||||
"helpMarkDown": "See the [documentation](http://gitversion.readthedocs.org/en/latest/) for help",
|
"helpMarkDown": "See the [documentation](http://gitversion.readthedocs.org/en/latest/) for help",
|
||||||
@@ -13,8 +13,8 @@
|
|||||||
"Patch": "2"
|
"Patch": "2"
|
||||||
},
|
},
|
||||||
"minimumAgentVersion": "2.115.0",
|
"minimumAgentVersion": "2.115.0",
|
||||||
"groups": [
|
"instanceNameFormat": "ExecuteGitVersion",
|
||||||
{
|
"groups": [{
|
||||||
"name": "gitversionDetails",
|
"name": "gitversionDetails",
|
||||||
"displayName": "GitVersion details",
|
"displayName": "GitVersion details",
|
||||||
"isExpanded": true
|
"isExpanded": true
|
||||||
@@ -25,25 +25,7 @@
|
|||||||
"isExpanded": false
|
"isExpanded": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"instanceNameFormat": "GitVersion",
|
"inputs": [{
|
||||||
"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"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "targetPath",
|
"name": "targetPath",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"label": "Working directory path",
|
"label": "Working directory path",
|
||||||
@@ -96,9 +78,10 @@
|
|||||||
"groupName": "additional"
|
"groupName": "additional"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
"execution": {
|
"execution": {
|
||||||
"Node": {
|
"Node": {
|
||||||
"target": "GitVersion.js",
|
"target": "index.js",
|
||||||
"argumentFormat": "",
|
"argumentFormat": "",
|
||||||
"workingDirectory": "."
|
"workingDirectory": "."
|
||||||
}
|
}
|
||||||
|
|||||||
78
dist/azure/setup/task.json
vendored
78
dist/azure/setup/task.json
vendored
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "dd065e3b-6aef-46af-845c-520195836b35",
|
"id": "cf6686dd-1807-4367-af65-669346359afd",
|
||||||
"name": "UseGitVersion",
|
"name": "SetupGitVersion",
|
||||||
"friendlyName": "GitVersion Task$titleSuffix$",
|
"friendlyName": "Setup GitVersion Task",
|
||||||
"description": "Easy Semantic Versioning (http://semver.org) for projects using Git",
|
"description": "Easy Semantic Versioning (http://semver.org) for projects using Git",
|
||||||
"author": "GitVersion Contributors",
|
"author": "GitVersion Contributors",
|
||||||
"helpMarkDown": "See the [documentation](http://gitversion.readthedocs.org/en/latest/) for help",
|
"helpMarkDown": "See the [documentation](http://gitversion.readthedocs.org/en/latest/) for help",
|
||||||
@@ -13,21 +13,7 @@
|
|||||||
"Patch": "2"
|
"Patch": "2"
|
||||||
},
|
},
|
||||||
"minimumAgentVersion": "2.115.0",
|
"minimumAgentVersion": "2.115.0",
|
||||||
"groups": [
|
"inputs": [{
|
||||||
{
|
|
||||||
"name": "gitversionDetails",
|
|
||||||
"displayName": "GitVersion details",
|
|
||||||
"isExpanded": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "additional",
|
|
||||||
"displayName": "Additional Options",
|
|
||||||
"isExpanded": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"instanceNameFormat": "GitVersion",
|
|
||||||
"inputs": [
|
|
||||||
{
|
|
||||||
"name": "versionSpec",
|
"name": "versionSpec",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"label": "The version spec",
|
"label": "The version spec",
|
||||||
@@ -42,63 +28,13 @@
|
|||||||
"defaultValue": "false",
|
"defaultValue": "false",
|
||||||
"required": false,
|
"required": false,
|
||||||
"helpMarkDown": "Include pre-release versions when matching a version"
|
"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": {
|
"execution": {
|
||||||
"Node": {
|
"Node": {
|
||||||
"target": "GitVersion.js",
|
"target": "index.js",
|
||||||
"argumentFormat": "",
|
"argumentFormat": "",
|
||||||
"workingDirectory": "."
|
"workingDirectory": "."
|
||||||
}
|
}
|
||||||
|
|||||||
23
dist/azure/vss-extension.json
vendored
23
dist/azure/vss-extension.json
vendored
@@ -1,23 +1,23 @@
|
|||||||
{
|
{
|
||||||
"manifestVersion": 1,
|
"manifestVersion": 1,
|
||||||
"id": "usegitversion$idSuffix$",
|
"id": "usegitversion-test",
|
||||||
"name": "UseGitVersion$titleSuffix$",
|
"name": "UseGitVersion",
|
||||||
"publisher": "gittools",
|
"publisher": "gittools",
|
||||||
"public": true,
|
"public": true,
|
||||||
"author": "GitVersion Contributors",
|
"author": "GitVersion Contributors",
|
||||||
"version": "$version$",
|
|
||||||
"description": "Build task for easy semantic versioning for projects using Git.",
|
"description": "Build task for easy semantic versioning for projects using Git.",
|
||||||
"targets": [{
|
"targets": [{
|
||||||
"id": "Microsoft.VisualStudio.Services"
|
"id": "Microsoft.VisualStudio.Services"
|
||||||
}],
|
}],
|
||||||
"files": [
|
"files": [
|
||||||
{ "path": "GitVersionTask" }
|
{ "path": "execute" },
|
||||||
|
{ "path": "setup" }
|
||||||
],
|
],
|
||||||
"categories": [
|
"categories": [
|
||||||
"Azure Pipelines"
|
"Azure Pipelines"
|
||||||
],
|
],
|
||||||
"galleryFlags": [
|
"galleryFlags": [
|
||||||
"$visibility$"
|
"Public"
|
||||||
],
|
],
|
||||||
"icons": {
|
"icons": {
|
||||||
"default": "images/extension-icon.png"
|
"default": "images/extension-icon.png"
|
||||||
@@ -59,13 +59,22 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"contributions": [{
|
"contributions": [{
|
||||||
"id": "gitversion-task",
|
"id": "setup-gitversion-task",
|
||||||
"type": "ms.vss-distributed-task.task",
|
"type": "ms.vss-distributed-task.task",
|
||||||
"targets": [
|
"targets": [
|
||||||
"ms.vss-distributed-task.tasks"
|
"ms.vss-distributed-task.tasks"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": "GitVersionTask"
|
"name": "setup"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"id": "execute-gitversion-task",
|
||||||
|
"type": "ms.vss-distributed-task.task",
|
||||||
|
"targets": [
|
||||||
|
"ms.vss-distributed-task.tasks"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": "execute"
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
@@ -36,6 +36,7 @@
|
|||||||
"@types/node": "12.12.11",
|
"@types/node": "12.12.11",
|
||||||
"@types/q": "1.5.2",
|
"@types/q": "1.5.2",
|
||||||
"reflect-metadata": "^0.1.13",
|
"reflect-metadata": "^0.1.13",
|
||||||
|
"tfx-cli": "0.6.3",
|
||||||
"tslint": "^5.20.1",
|
"tslint": "^5.20.1",
|
||||||
"typescript": "^3.7.2",
|
"typescript": "^3.7.2",
|
||||||
"@zeit/ncc": "^0.20.5"
|
"@zeit/ncc": "^0.20.5"
|
||||||
|
|||||||
Reference in New Issue
Block a user