@x.render/render-command
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

render-command

NPM version

NPM Downloads


Introduce

An abstract base class for scaffold commands.

A specification for node scaffolding command development, init and exec methods must be implemented

Usage

npm i @x.render/render-command -S
import { RenderCommand, CommandType } from "@x.render/render-command";

class InitCommand extends RenderCommand {
  constructor(strs: string, options: Record<string, any>, cmd: CommandType) {
    super(strs, options, cmd);
    console.log(this.strs, this.options, this.cmd);
  }

  init() {}

  exec() {}
}

Package Sidebar

Install

npm i @x.render/render-command

Weekly Downloads

175

Version

1.2.0

License

ISC

Unpacked Size

3.99 kB

Total Files

5

Last publish

Collaborators

  • cubber