Builtin plugins
Loader Plugin
Plugin loader with automatic discovery and dependency management
Loader Plugin
The Loader Plugin provides automatic discovery and dependency management for CLI applications built with Wizard.
Installation
npm install @hyperse/wizard-plugin-loaderQuick Start
// @filename: @hyperse/wizard-plugin-loader/dist/index.d.ts
import { } from '@hyperse/wizard';
import { } from '@hyperse/wizard-plugin-loader';
const = ({
: 'my-cli',
: 'My CLI application',
: '1.0.0',
});
.(
({
: ['version-plugin'],
: ['help-*/package.json'],
: ['./plugins'],
: process.cwd(),
})
)
.();
// execute command
// node ./cli.js --version
// print version information
// v1.0.0API Reference
createLoaderPlugin is a factory function exported by
@hyperse/wizard-plugin-loader.
- LoaderPluginOptions
Prop
Type