@cli-gama/command

2.1.1 • Public • Published

CLI-Gama README

简介

CLI-Gama 是一个强大的脚手架工具,旨在帮助开发者快速创建、安装和管理前端项目。它提供了丰富的命令和选项,支持项目初始化、安装、代码检查和自动化提交等功能。

安装

请确保您的系统中已安装 Node.js 和 npm。然后通过以下命令全局安装 CLI-Gama:

bash
复制代码
npm install -g cli-gama

使用说明

CLI-Gama 提供以下命令和选项:

bash
复制代码
info version 2.0.0
Usage: cli-gama <command> [options]

Options:
  -V, --version          输出版本号
  -d, --debug            是否开启调试模式 (默认: false)
  -c, --clear-cache      清理Git缓存
  -h, --help             显示命令帮助信息

Commands:
  init [options] [name]  创建项目
  install                安装项目
  lint                   检查项目
  commit [options]       提交项目
  help [command]         显示指定命令的帮助信息

创建项目

使用 init 命令可以从模板库中下载对应的模板并安装到本地环境:

bash
复制代码
cli-gama init my-project

安装项目

使用 install 命令可以从 GitHub 和 Gitee 中搜索对应的库并下载下来进行安装:

bash
复制代码
cli-gama install

代码检查

使用 lint 命令可以调用 Jest 与 Mocha 进行测试:

bash
复制代码
cli-gama lint

提交项目

使用 commit 命令可以进行自动化提交到 Git 和云发布,同时可以打标签:

bash
复制代码
cli-gama commit -m "Initial commit"

英文版本

Introduction

CLI-Gama is a powerful scaffolding tool designed to help developers quickly create, install, and manage front-end projects. It offers a variety of commands and options, supporting project initialization, installation, code linting, and automated commits.

Installation

Make sure you have Node.js and npm installed on your system. Then, install CLI-Gama globally using the following command:

bash
复制代码
npm install -g cli-gama

Usage

CLI-Gama provides the following commands and options:

bash
复制代码
info version 2.0.0
Usage: cli-gama <command> [options]

Options:
  -V, --version          output the version number
  -d, --debug            enable debug mode (default: false)
  -c, --clear-cache      clear Git cache
  -h, --help             display help for command

Commands:
  init [options] [name]  create project
  install                install project
  lint                   lint project
  commit [options]       commit project
  help [command]         display help for command

Create Project

Use the init command to download the corresponding template from the template library and install it to the local environment:

bash
复制代码
cli-gama init my-project

Install Project

Use the install command to search and download the corresponding repository from GitHub and Gitee for installation:

bash
复制代码
cli-gama install

Lint Project

Use the lint command to invoke Jest and Mocha for testing:

bash
复制代码
cli-gama lint

Commit Project

Use the commit command to automate the submission to Git and cloud release, while also tagging:

bash
复制代码
cli-gama commit -m "Initial commit"

License

MIT License. See LICENSE for more information.

Readme

Keywords

none

Package Sidebar

Install

npm i @cli-gama/command

Weekly Downloads

4

Version

2.1.1

License

ISC

Unpacked Size

5.06 kB

Total Files

3

Last publish

Collaborators

  • zengweifeng