1.2.1 • Published 6 years ago
latest-gitignore-cli v1.2.1
$ 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 .相关
@oopsunome/fast-gitignore- 添加 / 更新.gitignore。内嵌@oopsunome/fast-gitignore维护但来自github/gitignore的模板。
参与开发
准备开发环境
详细参见 SETUP.md。
安装依赖
latest-gitignore-cli 使用 Yarn 包管理器,执行 yarn install 安装依赖。
运行
yarn start生产构建
yarn build测试
yarn test贡献指南
仔细查阅 CONTRIBUTING.md 以了解详情。
证书
latest-gitignore-cli 获得了 MIT 许可,仔细查阅 LICENSE.md 以了解详情。
1.2.1
6 years ago