nx icon indicating copy to clipboard operation
nx copied to clipboard

List plugins hosted in internal artifactory by using the nx list.

Open ByteOPCode opened this issue 3 years ago • 1 comments

Description

Since private artifactory hosts a few of the internal plugins that organizations typically use for NX, it would be beneficial to have NX cli list those plugins if the project has a configuration file pointing to a JSON URL that would list internal plugins.

Motivation

  • In addition to core and community approved plugins, "nx list" would support plugins hosted internally and by third parties (based on config file in project).
  • This will help multiple teams across organization to reuse or enhance internally existing plugins instead of re-creating plugins for internal use (Increases re-usability of plugins within private artifactories).

Suggested Implementation

Create a file named "nx-plugin.conf" at the root of the workspace project directory. To add functionality to parse the configuration file, perform a HTTP GET on the JSON URL specified in the configuration file, and STDOUT the JSON response. If file or URL is invalid, the script would not stdout third party / internal plugins to console.

Rough Implementation is done in this commit .

Alternate Implementations

While creating a project, adding a inquirer option to ask if the project has an additional upstream source for nx plugins, that they can use as a pointer for internal artifactory and write the URL to workspace.json / nx.json and nx list would parse json file to get plugin list from the URL.

ByteOPCode avatar Jul 30 '22 23:07 ByteOPCode

Hi @AgentEnder, this is my first PR with nx - I am not able to add reviewer to above PR. Would highly appreciate if someone can review it.

Thanks.

ByteOPCode avatar Aug 09 '22 07:08 ByteOPCode

This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! 🙏

github-actions[bot] avatar Apr 17 '23 00:04 github-actions[bot]

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

github-actions[bot] avatar Jun 01 '23 00:06 github-actions[bot]