1.2.1 • Published 4 years ago

latest-gitignore-cli v1.2.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Package Quality

$ latest-gitignore <主题> <...> 选项 ...

添加 / 更新 .gitignore。直接从 github/gitignore 项目 master 分支获取数据,而非 gitignore.io

  • 支持通过配置文件自定义 github/gitignore 模板,减少多项目下重复操作;
  • github/gitignore 实时下载,保证生成的 .gitignore 一定是最新的;

目录

安装

在全局系统环境下使用的话,需要先全局安装 latest-gitignore-cli

# 使用 NPM
$ npm i -g latest-gitignore-cli

# 使用 Yarn
$ yarn global add latest-gitignore-cli

使用

$ 使用方式
    $ latest-gitignore <主题> <...> 选项 [...]

  选项
    --out, -o, '.gitignore' 文件存储位置,默认:'process.cwd()'

  示例
    $ latest-gitignore macOS Windows Linux Node -o .

相关

参与开发

准备开发环境

详细参见 SETUP.md

安装依赖

latest-gitignore-cli 使用 Yarn 包管理器,执行 yarn install 安装依赖。

运行

yarn start

生产构建

yarn build

测试

yarn test

贡献指南

仔细查阅 CONTRIBUTING.md 以了解详情。

证书

latest-gitignore-cli 获得了 MIT 许可,仔细查阅 LICENSE.md 以了解详情。