Code Monkey home page Code Monkey logo

latest-gitignore-cli's Introduction

Package Quality Known Vulnerabilities

$ 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 以了解详情。

latest-gitignore-cli's People

Contributors

itonyyo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

latest-gitignore-cli's Issues

最小化 package.json、README.md 等文件的体积

最小化 package.json、README.md 等文件的体积,以提升 latest-gitignore-cli 的安装体验。

npm notice
npm notice 📦  [email protected]
npm notice === Tarball Contents ===
npm notice 4.5kB lib/index.js
npm notice 3.7kB package.json
npm notice 1.1kB LICENSE.md
npm notice 2.4kB README.md
npm notice === Tarball Details ===
npm notice name:          latest-gitignore-cli
npm notice version:       1.2.1
npm notice filename:      latest-gitignore-cli-1.2.1.tgz
npm notice package size:  5.2 kB
npm notice unpacked size: 11.7 kB
npm notice shasum:        eea5141beb3c81ee326df0fe5a1a06b8a20281f3
npm notice integrity:     sha512-PSHlcJk3PsOsy[...]FUo0tFBnp4W+Q==
npm notice total files:   4
npm notice

常用预设

latest-gitignore macOS Windows Linux -o .

latest-gitignore --preset cross-platform -o .

如果每次给一个项目生成 .gitignore 文件都要去 github/gitignore 完整检查一遍列表,效率有些低。直接使用预设会方便一些,也更容易记忆。

配置文件大致如此,

{
  "topic": [
    "macOS",
    "Windows",
    "Linux",
    "Node",
    "VisualStudioCode",
    "SublimeText",
    "CVS",
    "Diff",
    "Vim",
    "TortoiseGit"
  ],
  "ignore": [
    ".idea/**/*.iml",
    ".idea/**/*.xml",
    "error.txt",
    "log.txt",
    ".yarnclean"
  ]
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.