@rn-cli/cli
Version:
A powerful CLI tool to auto-generate boilerplate React Native components and screens with consistent structure.
15 lines (10 loc) • 352 B
JavaScript
const { program } = require("commander");
const { createComponent } = require("./generators/createComponent");
program
.command("g <type> <name>")
.description("Generate a component or screen with full structure")
.action((type, name) => {
createComponent(type, name);
});
program.parse(process.argv);