Skip to content

Commit 62416f8

Browse files
release/vNext (#10)
* Change to use REST API to install MSDO CLI * Updated msdo-client.ts * Remove and ignore lib folder, as it's confusing to checkin build output unless it's the github action. * Delete lib folder * Additional updates with flatter no-class js style * try publishing a package * Update the readme * v1.7.0 - udpate nuget downloadFile retry logic * v1.7.0-beta.3 * v1.7.0-beta.4 * v1.7.0-beta.5 * v1.7.0 continue to iterate on decompress response * v1.7.0-beta.6 - fix decompress-response import * v1.7.0-beta.7 - readd decompress-response dependency * v1.7.0 - working release * v1.7.0 - update changelog * v1.7.0 - fix typo in changelog. --------- Co-authored-by: Jiandong Jiang <jianj@microsoft.com>
1 parent e1dc7ff commit 62416f8

17 files changed

Lines changed: 2419 additions & 1789 deletions

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Build output
2+
lib/
3+
14
# Logs
25
logs
36
*.log

.npmrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
registry=https://registry.npmjs.org/
1+
registry=https://registry.npmjs.org/
2+
@microsoft:registry=https://npm.pkg.github.com/

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# security-devops-azdevops-task-lib change log
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
5+
6+
## v1.7.0 - 06/13/2023
7+
8+
### Added
9+
- The `msdo-nuget-client.ts` javascript nuget client
10+
- Dependency on adm-zip
11+
- Dependency on decompress-response
12+
13+
### Changed
14+
- Install the MSDO nuget package via javascript
15+
- Removes a dependency on dotnet to leverage restore to install the platform cross-platform
16+
- Upgraded dependencies
17+
- azure-pipelines-task-lib to v4.3.1
18+
- azure-pipelines-tool-lib to v2.0.4
19+
- typescript to v5.1.3

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,37 @@
22

33
An Azure DevOps javascript library for running the [Microsoft Security DevOps CLI](https://aka.ms/msdo-nuget).
44

5+
## Leveraged By
6+
* Microsoft Security DevOps Azure DevOps Extension [code](https://github.com/microsoft/security-devops-azdevops) - [marketplace](https://marketplace.visualstudio.com/items?itemName=ms-securitydevops.microsoft-security-devops-azdevops)
7+
58
## Related
69

710
* [Microsoft Security DevOps Toolkit for GitHub Actions](https://github.com/microsoft/security-devops-actions-toolkit)
811

12+
## Build
13+
14+
### Preqrequisities:
15+
16+
* Install [dotnet](https://dotnet.microsoft.com/en-us/)
17+
* install [node.js](https://nodejs.org/en) (for npm)
18+
19+
To build, run:
20+
```powershell
21+
dotnet build ./build.proj [/p:NpmInstall=true|false]
22+
```
23+
24+
The build:
25+
1. If `NpmInstall` is true, runs `npm install` at the root of the repo
26+
1. Compiles the typescript in the `./src` directory
27+
1. Outputs javascript to the `./lib` directory
28+
1. Copies the `./package.json` file to the `./lib` folder
29+
30+
## Publish
31+
32+
This package is hosted on [this repo's package feed](https://github.com/microsoft/security-devops-azdevops-task-lib/pkgs/npm/security-devops-azdevops-task-lib).
33+
34+
To publish a build, please see ["Working with the npm registry"](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#authenticating-to-github-packages).
35+
936
## Contributing
1037

1138
This project welcomes contributions and suggestions. Most contributions require you to agree to a

build.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
<Message Text="Compiling microsoft-security-devops-azdevops-task-lib." />
2626
<Exec Command="npx tsc" WorkingDirectory="$(RepoDirectory)" />
2727

28-
<Copy SourceFiles="$(SrcDirectory)/msdo-task-lib.proj" DestinationFolder="$(LibDirectory)" />
2928
<Copy SourceFiles="$(RepoDirectory)/package.json" DestinationFolder="$(LibDirectory)" />
29+
<Copy SourceFiles="$(RepoDirectory)/.npmrc" DestinationFolder="$(LibDirectory)" />
3030
</Target>
3131

3232
</Project>

lib/msdo-client.js

Lines changed: 0 additions & 150 deletions
This file was deleted.

0 commit comments

Comments
 (0)