genfe

1.2.2 • Public • Published

genfe CLI

A command-line interface (CLI) tool for quickly generating and managing front-end projects with various frameworks and UI libraries.

Installation

To install the CLI globally, use npm:

npm install -g genfe

Or use npx without installation:

npx genfe <command>

Or use locally:

  • Clone source into your computer
  • Run in terminal:
npm i -g pnpm #If you had pnpm or use other package managers, skip this command
pnpm i
pnpm build
pnpm start <command> [params]

Usage

* Create Command

The create command initializes a new project with the specified framework and UI library.

Syntax

genfe create

Options

  • projectName: The name of your project.
  • framework: The library/framework to use (react, vue, next, nuxt).
  • uiLibrary: The UI library to use (none, tailwindcss, antd, vuetify).
  • modulesDir: (Optional) Whether to use a modules directory structure (only for nuxt).
  • initGit: Initialize a git repository.
  • initCommitMsg: Initial commit message.

Example

genfe create

You will be prompted to enter the project details interactively.

* gm Command

The gm command generates a new module within your project.

Syntax

genfe gm <moduleName>

Options

  • moduleName: The name of the module to create.

Example

genfe gm user

This will generate a new module named user with predefined structure and files.

Directory Structure

After creating a module, the directory structure will look something like this:

project-name/
│
├── modules/
│ └── moduleName/
│     ├── pages/
│     │ └── index.vue
│     ├── routes.ts
│     └── index.ts
├── ...

If you want to customize and publish this CLI to npm and use as a package, view at publishing instruction

Readme

Keywords

none

Package Sidebar

Install

npm i genfe

Weekly Downloads

0

Version

1.2.2

License

ISC

Unpacked Size

153 kB

Total Files

254

Last publish

Collaborators

  • bravo680