Skip to content

bravo680git/genfe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
├── ...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published