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

@ditrit/leto-modelizer-plugin-cli

v2.0.1

Published

Command line tools to install and manage plugins in leto-modelizer

Downloads

11

Readme

Leto Modelizer Plugin CLI (leto-modelizer-plugin-cli)

Quality Gate Status Reliability Rating Maintainability Rating Security Rating

Code Smells Bugs Vulnerabilities Technical Debt

Lines of Code Coverage Duplicated Lines (%)

Client for Leto-Modelizer. It installs plugins and imports their models and icons.

Requirements

Leto Modelizer Install

To install the client in Leto Modelizer, use this command line:

npm install --save-dev "git://github.com/ditrit/leto-modelizer-plugin-cli.git#1.0.0"

Add this to package.json scripts:

{
    "plugin:install": "node node_modules/leto-modelizer-plugin-cli install",
    "plugin:init": "node node_modules/leto-modelizer-plugin-cli init"
}

How to define official plugins

The user can select one or more plugins to install from a list of official plugins. To do that, create a leto-modelizer-plugin-cli.json file at the root of Leto Modelizer project. Each object represent a plugin. Example :

[
  {
    "displayName": "Terraform plugin",
    "name": "terrator-plugin",
    "scope": "ditrit",
    "version": "0.12.0" ,
    "url": "https://github.com/ditrit/terrator-plugin.git#0.11.0"
  }
]
  • displayName attribute represents the plugin's display name, which is used to assist the user during installation.
  • name attribute is the plugin's name and must match the one defined in the plugin project.
  • url attribute is the repository url of the plugin. It must be valid (see NOTE ).
  • scope attribute is the organisation name of the plugin.
  • version attribute is the release version of the plugin.

:warning: The url attribute is optional! If specified, the plugin will be installed from the repository instead of the registry.

NOTE:
The repository url must be valid like [email protected]/repository.git, http(s)://github.com/repository.git or http(s)://github.com/repository.git#1.0.0.

Leto Modelizer commands

Install

"plugin:install": "leto-modelizer-plugin-cli install",

Tasks performed during installation:

  • Install plugin(s) using npm.
  • Import icons and models from each installed plugins.
  • Then generate or update "src/plugins/index.js".

Options name and version can be added with the npm run plugin:install command to bypass cli prompts. Example :

npm run plugin:install -- name="name" version="version"

Uninstall

"plugin:uninstall": "leto-modelizer-plugin-cli uninstall",

Tasks performed during installation:

  • Uninstall plugin(s) using npm.
  • Delete icons and models from each deleted plugins.
  • Then generate or update "src/plugins/index.js".

Options name and version can be added with the npm run plugin:uninstall command to bypass cli prompts. Example :

npm run plugin:uninstall -- name="name" version="version"