Loader Plugin
The Loader Plugin provides automatic discovery and dependency management for CLI applications built with Wizard.
Installation
npm install @hyperse/wizard-plugin-loader
Quick 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'],
: .(),
})
)
.();
// execute command
// node ./cli.js --version
// print version information
// v1.0.0
API Reference
Parameters:Name | Type | Default |
---|---|---|
options | LoaderPluginOptions The options for the plugin. |
- LoaderPluginOptions
Last updated on