From 6906db2d2fe5596c7e959b22920e47c5cb1a7337 Mon Sep 17 00:00:00 2001 From: madhavd1 Date: Fri, 13 Sep 2019 12:11:10 +0530 Subject: [PATCH 01/14] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..6154242 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,21 @@ +# 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: +- master + +pool: + vmImage: 'ubuntu-latest' + +steps: +- task: NodeTool@0 + inputs: + versionSpec: '10.x' + displayName: 'Install Node.js' + +- script: | + npm install + npm run compile + displayName: 'npm install and build' From b29d65cee7c988ea30fd6a66db1b4a114650ceb9 Mon Sep 17 00:00:00 2001 From: Madhav Dhingra Date: Fri, 13 Sep 2019 12:31:58 +0530 Subject: [PATCH 02/14] trying to add artifacts --- .npmrc | 2 ++ src/extension.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..c8e980c --- /dev/null +++ b/.npmrc @@ -0,0 +1,2 @@ +registry=https://pkgs.dev.azure.com/madhavd1/_packaging/madhavd1/npm/registry/ +always-auth=true \ No newline at end of file diff --git a/src/extension.ts b/src/extension.ts index 9dbc524..ce5bbee 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -30,7 +30,7 @@ export function activate(context: ExtensionContext) { context.subscriptions.push( commands.registerCommand('javadoc-tools.generateCommentsForMethod', async () => { - const activeEditor = window.activeTextEditor; + const activeEditor = window.activeTextEdito2r; if (activeEditor) { let methodsCurrFile = JdocTools.getMethodFromCurrDocument(activeEditor); methodsCurrFile.then(resolveMethods => { From 2ea9581d98236de02d9891bec99bba0de697d3f7 Mon Sep 17 00:00:00 2001 From: Madhav Dhingra Date: Fri, 13 Sep 2019 12:36:50 +0530 Subject: [PATCH 03/14] fixed a typo --- src/extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension.ts b/src/extension.ts index ce5bbee..9dbc524 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -30,7 +30,7 @@ export function activate(context: ExtensionContext) { context.subscriptions.push( commands.registerCommand('javadoc-tools.generateCommentsForMethod', async () => { - const activeEditor = window.activeTextEdito2r; + const activeEditor = window.activeTextEditor; if (activeEditor) { let methodsCurrFile = JdocTools.getMethodFromCurrDocument(activeEditor); methodsCurrFile.then(resolveMethods => { From f652974aed03c896bad7181d25ab7f2efe5ba902 Mon Sep 17 00:00:00 2001 From: Madhav Dhingra Date: Mon, 16 Sep 2019 14:00:41 +0530 Subject: [PATCH 04/14] removed .npmrc --- .npmrc | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 .npmrc diff --git a/.npmrc b/.npmrc deleted file mode 100644 index c8e980c..0000000 --- a/.npmrc +++ /dev/null @@ -1,2 +0,0 @@ -registry=https://pkgs.dev.azure.com/madhavd1/_packaging/madhavd1/npm/registry/ -always-auth=true \ No newline at end of file From 0d26e987a81032513dd63d9770edefabfe840240 Mon Sep 17 00:00:00 2001 From: madhavd1 Date: Tue, 24 Sep 2019 15:36:10 +0530 Subject: [PATCH 05/14] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6154242..a605e47 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -19,3 +19,9 @@ steps: npm install npm run compile displayName: 'npm install and build' + +- task: PublishBuildArtifacts@1 + inputs: + PathtoPublish: '$(Build.ArtifactStagingDirectory)' + ArtifactName: 'drop' + publishLocation: 'Container' From 493d614a221ed25cb7994a85f99b554e11a40912 Mon Sep 17 00:00:00 2001 From: Madhav Dhingra Date: Wed, 25 Sep 2019 01:48:42 +0530 Subject: [PATCH 06/14] add npmrc --- .npmrc | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..c8e980c --- /dev/null +++ b/.npmrc @@ -0,0 +1,2 @@ +registry=https://pkgs.dev.azure.com/madhavd1/_packaging/madhavd1/npm/registry/ +always-auth=true \ No newline at end of file From 34dbde454f906969f26796cf47364ff2b3d613ec Mon Sep 17 00:00:00 2001 From: madhavd1 Date: Wed, 25 Sep 2019 01:52:40 +0530 Subject: [PATCH 07/14] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a605e47..47bdf79 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -16,6 +16,7 @@ steps: displayName: 'Install Node.js' - script: | + npm login npm install npm run compile displayName: 'npm install and build' From f7dee8d1627bf2e1048cbae0504165f5b0099f19 Mon Sep 17 00:00:00 2001 From: madhavd1 Date: Wed, 25 Sep 2019 02:04:20 +0530 Subject: [PATCH 08/14] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 47bdf79..b764b45 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,9 +14,11 @@ steps: inputs: versionSpec: '10.x' displayName: 'Install Node.js' - -- script: | - npm login +- task: npmAuthenticate@0 + inputs: + workingFile: 'vscode-javadoc-tools/.npmrc' + +- script: npm install npm run compile displayName: 'npm install and build' From 33a6125fc8cc5041e97046fd72a097d919762c9e Mon Sep 17 00:00:00 2001 From: madhavd1 Date: Wed, 25 Sep 2019 02:11:38 +0530 Subject: [PATCH 09/14] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b764b45..49f1f75 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,11 +14,10 @@ steps: inputs: versionSpec: '10.x' displayName: 'Install Node.js' -- task: npmAuthenticate@0 - inputs: - workingFile: 'vscode-javadoc-tools/.npmrc' + - script: + pwd npm install npm run compile displayName: 'npm install and build' From 333c7a49228520b5f68d68a31cad94e838cdccfc Mon Sep 17 00:00:00 2001 From: madhavd1 Date: Wed, 25 Sep 2019 02:14:01 +0530 Subject: [PATCH 10/14] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 49f1f75..a60570d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -18,6 +18,7 @@ steps: - script: pwd + ls -ltr npm install npm run compile displayName: 'npm install and build' From d80a539c8ba056f95a8f50a89492edaea02c89b3 Mon Sep 17 00:00:00 2001 From: madhavd1 Date: Wed, 25 Sep 2019 02:17:45 +0530 Subject: [PATCH 11/14] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a60570d..14fbe97 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -16,7 +16,7 @@ steps: displayName: 'Install Node.js' -- script: +- script: | pwd ls -ltr npm install From 4376bb1cd1ae0d32d6848d1d9d300bd3454825ae Mon Sep 17 00:00:00 2001 From: madhavd1 Date: Wed, 25 Sep 2019 02:19:42 +0530 Subject: [PATCH 12/14] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 14fbe97..40cf00b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -18,7 +18,7 @@ steps: - script: | pwd - ls -ltr + ls -ltra npm install npm run compile displayName: 'npm install and build' From 53aa4e4ff5800eadc78d99accceb7a3dc10a1498 Mon Sep 17 00:00:00 2001 From: madhavd1 Date: Wed, 25 Sep 2019 02:23:38 +0530 Subject: [PATCH 13/14] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 40cf00b..2173421 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,11 +14,11 @@ steps: inputs: versionSpec: '10.x' displayName: 'Install Node.js' - +- task: npmAuthenticate@0 + inputs: + workingFile: 'vscode-javadoc-tools/.npmrc' - script: | - pwd - ls -ltra npm install npm run compile displayName: 'npm install and build' From 5588ac207865444cf15272e1ba3e6fcc8401b494 Mon Sep 17 00:00:00 2001 From: madhavd1 Date: Wed, 25 Sep 2019 02:25:49 +0530 Subject: [PATCH 14/14] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2173421..2b4a64b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -16,7 +16,7 @@ steps: displayName: 'Install Node.js' - task: npmAuthenticate@0 inputs: - workingFile: 'vscode-javadoc-tools/.npmrc' + workingFile: '.npmrc' - script: | npm install