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

endalia-efforts

v1.0.0

Published

A short description of my extension

Downloads

3

Readme

CREAR EXTENSIÓN AZURE DEVOPS

Ayuda: https://github.com/microsoft/azure-devops-extension-hot-reload-and-debug

Crear el proyecto

npm install -g tfx-cli
npm install -g webpack
npm install -g webpack-cli
npm install -g webpack-dev-server
npm install -g yo
npm install -g @microsoft/generator-azure-devops-extension

En el directorio raíz donde crear los subdirectorios de cada extensión

yo @microsoft/azure-devops-extension
    Extension ID: endalia-efforts
    Extension name: Esfuerzos Endalia
    Extension description:
    Extension publisher ID: Endalia
cd endalia-efforts
npm install

En el fichero vss-extension.json tienes que especificar el tipo de extensión que es. Para ello modifica esta sección:

  "contributions": [
    {
      "id": "endalia-efforts",
      "type": "ms.vss-work-web.work-item-form-control",
      "description": "Esfuerzos Endalia",
      "targets": ["ms.vss-work-web.work-item-form"],
      "properties": {
        "name": "Esfuerzos Endalia",
        "uri": "dist/endalia-efforts/endalia-efforts.html",
        "height": 125,
        "icon": {
          "dark": "img/world.png",
          "light": "img/world.png"
        }
      }
    }

En la carpeta src tendrás que hacer los ajustes correspondientes para modificar los ficheros hub* por los que tú vayas a usar

Publicar

npm run publish:dev -- --token xxkf4fc4t3hgdn6ectoytcpw27x55jocq7brc6o5pbjkoqtr5gdq --share-with endalia --rev-version

Donde token es el PAT con

  • Scope="Marketplace (Publish)"
  • Organization= "All accessible organizations"

Una vez publicada hay que instalarla en nuestro Azure DevOps. Para ello tendrás que compartirla (share) con Endalia desde la interfaz web de Azure Puedes compartirla directamente a la hora de publicar con el parametro--share-with endalia

--rev-version es para subir automáticamente de nº de versión (sin que tengas que hacerlo a mano)

Ejecutar

npm run start:dev

Luego accede a https://localhost:3000 y acepta el certificado auto-firmado.

A partir de este punto ya puedes recargar Azure Devops y la extensión se cargará correctamente usando tu localhost

Debuggear

  • Instala en VSCode la extensión "firefox-devtools.vscode-firefox-debug"
  • Mantén lanzado el comando webpack-dev-server que hemos visto antes
  • Pulsa F5

NOOOOOOOOOOOO BORRAR

CREAR EXTENSIÓN AZURE DEVOPS

Ayuda: https://github.com/microsoft/azure-devops-extension-sample

npm install -g tfx-cli
mkdir my-extension
cd my-extension
tfx extension init
    Publisher ID: Endalia
    Extension ID: endalia-efforts
    Extension Name Esfuerzos Endalia
    (W)orkItemOpen

Para compilar y empaquetar:

npm run build

Es necesario editar el fichero json que hay dentro de la carpeta Samples:

    "contributions": [
        {
            "id": "endalia-efforts",
            "type": "ms.vss-work-web.work-item-form-control",
            "targets": [
                "ms.vss-work-web.work-item-form"
            ],
            "properties": {
                "name": "Esfuerzos Endalia",
                "uri": "dist/EndaliaEfforts/EndaliaEfforts.html",
                "icon": {
                    "light": "static/add-grey.png",
                    "dark": "static/add-green.png"
                }
            }
        }