@drarig29/modular-cli

0.0.6 • Public • Published

modular-cli

  • The core of the CLI should be minimal.

Running modular-cli <command> <anything> requires a plugin named @drarig29/modular-cli.plugin-<command>

Supported ways to use it:

  • With Node.js
    • [x] npm i -g @drarig29/modular-cli <command> (installed globally)
      • Downloads the required plugin, and saves it for future executions.
      • Note: Can be run with modular-cli <command>
      • Note: Doesn't load plugins installed globally with npm i -g @drarig29/modular-cli.plugin-<command>
    • [x] npx @drarig29/modular-cli <command> (not installed, run from any non-project folder)
      • Downloads the required plugin, and saves it for future executions.
      • Note: Doesn't load plugins installed globally with npm i -g @drarig29/modular-cli.plugin-<command>
    • [x] npx @drarig29/modular-cli <command> (not installed, run from a project)
      • Downloads the required plugin, and saves it for future executions.
      • Note: Doesn't load plugins installed locally with npm i -g @drarig29/modular-cli.plugin-<command>
    • [x] npx @drarig29/modular-cli <command> (run from a project where it's installed)
      • Loads the required plugin if it's installed locally with npm i @drarig29/modular-cli.plugin-<command>
      • Otherwise, downloads the required plugin, and saves it for future executions.
    • [ ] npx @drarig29/modular-cli plugins import [<name> ...] (run from a project where it's installed)
      • This will save all requested plugins locally into a .modular-cli/plugins folder, you should commit this folder.
      • npx @drarig29/modular-cli <command> will load the required plugin from that folder.
      • Note: Installing the plugins in such a way results in a smaller installation footprint as the plugins are minimized.
      • Note: Running the command without any plugin name will detect a configuration file, and guess the plugins to install.
  • Without Node.js
    • [x] A standalone executable (roughly the size of Node.js itself) must be downloaded with curl
      • Downloads the required plugin, and saves it for future executions.

Note: .modular-cli is called a portable path.

References:

Readme

Keywords

none

Package Sidebar

Install

npm i @drarig29/modular-cli

Weekly Downloads

0

Version

0.0.6

License

none

Unpacked Size

7.33 kB

Total Files

6

Last publish

Collaborators

  • drarig29