npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

azdo-classic-to-yaml

v1.0.1

Published

Generates classic release pipleines to Yaml.

Downloads

7

Readme

Azdo Classic Release Pipeline to Yaml

This JavaScript package library extracts varibale groups, task groups and classic release pipleine as Yaml files.

Installation

  1. Run below commands to create package.json file and install azdo-classic-to-yaml.
npm init && npm i azdo-classic-to-yaml
  1. Add "generate": "node ./node_modules/azdo-classic-to-yaml/generate.js" in package.json file
{
  "name": "demo",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "generate": "node ./node_modules/azdo-classic-to-yaml/generate.js"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "azdo-classic-to-yaml": "^1.0.1"
  }
}
  1. Create .env file and update with your ORGANIZATION, PROJECT and PAT. (https://dev.azure.com/ORGANIZATION/PROJECT)
ORGANIZATION=
PROJECT=
PAT=
  1. Run below command. This will generate yaml file in pipelines folder.
npm run generate

Environment Variables

| Name | Description | Required | Default | |:---|:---|:---:|:---:| | AZURE_VSRM_URL | Azure VSRM URL | Optional | https://vsrm.dev.azure.com | | AZDO_ENV_URL | Azdo environment url | Optional | https://dev.azure.com | | ORGANIZATION | Organization Name | Yes | N/A | | PROJECT | Project Name | Yes | N/A | | PAT | Public Access Token | Yes | N/A |

Generated YAML files

  • Variable Groups - ./pipelines/varibalegroups/*.yaml
  • Task Groups - ./pipelines/taskgroups/*.yaml
  • Release Pipeline - ./pipelines/*.yaml

Known Issues:

  • This supports only for classic release pipelines and gives you simple template structure.
  • Pre and Post approval flows are not covered and recommended to use deployment strategies with approval.
  • connectedServiceNameARM: $(az_service_connection) needs to be replaced with azureSubscription: $(az_service_connection) in some places.
  • Task groups needs to be updated with parameters - $(az_service_connection) to ${{ parameters.az_service_connection }}
  • Needs cleanup and fixes.

Samples:

name: "Release Pipeline 1"
trigger: none
paremeters: []
variables: []
resources:
  pipelines: []
  repositories: []
stages:
  - stage: Development
    variables: []
    jobs:
      - job: Bundle - DEV
      - job: AKS Deployment - DEV
      - job: DB Migration - DEV
  - stage: Integration
    variables: []
    jobs:
      - job: AKS Deployment  - INT
      - job: DB Migration - INT 
      - job: Post Deploy Testing - INT