New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

genfe

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

genfe

A CLI tool for quickly generating and managing front-end projects with various frameworks and UI libraries

latest
Source
npmnpm
Version
1.2.2
Version published
Maintainers
0
Created
Source

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

FAQs

Package last updated on 02 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts