All Projects β†’ foray1010 β†’ ignore-sync

foray1010 / ignore-sync

Licence: MIT license
a CLI tool to build and sync .*ignore files across files and repositories

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to ignore-sync

Gibo
Easy access to gitignore boilerplates
Stars: ✭ 1,687 (+11146.67%)
Mutual labels:  gitignore, gitignore-files, gitignore-generator, gitignore-templates
GIG
[Unmaintained] A cli πŸ’» tool to generate gitignore files for your projects. Written in python 🐍
Stars: ✭ 16 (+6.67%)
Mutual labels:  gitignore, gitignore-generator, gitignore-templates
gig
Generate .gitignore files from your terminal (mostly) offline!
Stars: ✭ 63 (+320%)
Mutual labels:  gitignore, gitignore-files, gitignore-generator
helm-gitignore
Helm interface for generating .gitignore files
Stars: ✭ 20 (+33.33%)
Mutual labels:  gitignore, gitignore-files
git-ignore
An interactive CLI to generate .gitignore files (written in Rust)
Stars: ✭ 18 (+20%)
Mutual labels:  ignore-files, ignore
gitignore.cli
A commandline tool to create gitignore files
Stars: ✭ 24 (+60%)
Mutual labels:  gitignore, gitignore-files
Gitignore.io
.gitignore.io is a web service designed to help you create .gitignore files for your Git repositories. The site has a graphical and command line method of creating a .gitignore for your operating system, programming language, or IDE.
Stars: ✭ 6,709 (+44626.67%)
Mutual labels:  gitignore, gitignore-files
Blindfold
πŸ”Ž Gitignore file generator written in rust
Stars: ✭ 60 (+300%)
Mutual labels:  gitignore
vscode-ignore-gitignore
[unmaintained] Add files from .gitignore to your VS Code ignored files.
Stars: ✭ 17 (+13.33%)
Mutual labels:  gitignore
Gogi
Go client for gitignore.io
Stars: ✭ 51 (+240%)
Mutual labels:  gitignore
Gitignore
.gitIgnore file for Salesforce or Force.com Projects
Stars: ✭ 27 (+80%)
Mutual labels:  gitignore
Idea Gitignore
.ignore support plugin for IntelliJ IDEA
Stars: ✭ 1,147 (+7546.67%)
Mutual labels:  gitignore
devpreferences
These are my own preferences while doing development.
Stars: ✭ 18 (+20%)
Mutual labels:  gitignore
Gitignore parser
A spec-compliant gitignore parser for Python 3.5+
Stars: ✭ 57 (+280%)
Mutual labels:  gitignore
eslint-config-with-prettier
Eslint config with prettier
Stars: ✭ 39 (+160%)
Mutual labels:  gitignore
GiG
πŸŽ‰ generate gitignore files for almost all languages
Stars: ✭ 24 (+60%)
Mutual labels:  gitignore-files
Ue4 Gitignore
A git setup example with git-lfs for Unreal Engine 4 projects.
Stars: ✭ 150 (+900%)
Mutual labels:  gitignore
Coala Quickstart
A tool that generates an initial coala config file for you!
Stars: ✭ 47 (+213.33%)
Mutual labels:  gitignore
Cocoapods Tips
iOS 라이브러리λ₯Ό κ΄€λ¦¬ν•˜λŠ” CocoaPods Tip정보 λͺ¨μŒμž…λ‹ˆλ‹€.
Stars: ✭ 141 (+840%)
Mutual labels:  gitignore
Git-for-bio-scientists
Presentation about digital lab journalling with Git
Stars: ✭ 30 (+100%)
Mutual labels:  gitignore

ignore-sync

a cli tool to build and sync *ignore files across files and repositories

why

  1. Github default .gitignore doesn't cover all our needs, we always need to compose and manage multiple .gitignore files from github, such as Node.gitignore + macOS.gitignore, in order to remove all the noises in our development. It should be automated.

  2. For library developer, we often need to compose a .npmignore from .gitignore and some extra ignore patterns that we do not wish to ignore by .gitignore, such as test files and .*rc files. If .gitignore is updated, you will need to update corresponding part of .npmignore manually. We should avoid this repetitive work.

a short example on how ignore-sync handle ignore files

[github/gitignore]
Node.gitignore
Global/macOS.gitignore

[inline]
*.test.js
yarn.lock

prerequisite

node >= 7.6

installation and setup

  1. npm install --save-dev ignore-sync

  2. update package.json

    {
      "scripts": {
    +   "ignore-sync": "ignore-sync ."
      }
    }
  3. now follow how to use to create *ignore-sync files, then npm run ignore-sync, all corresponding ignore files will be generated.

how to use

  1. ignore-sync works on any ignore file that name end with ignore, such as .gitignore, .npmignore, .eslintignore, etc. Simply creating a file that end with ignore-sync.

    example: .gitignore-sync -> .gitignore

  2. create a source tag in your *ignore-sync file to identify the source of ignore patterns

    [put_source_tag_here]

    different source tag identifies different source of ignore patterns

    • [inline]

      • the ignore patterns will be copied directly to generated ignore file
    • [local]

      • the content of these local files will be copied directly to generated ignore file
      • support glob pattern, e.g. packages/**/.gitignore
    • [relative]

      • the content of these local files will be copied with relative path prefix to generated ignore file

      • support glob pattern, e.g. packages/**/.gitignore

      • example

        # input: /packages/a/.prettierignore
        ignored.md
        # input: /.prettierignore-sync
        [relative]
        packages/a/.prettierignore
        # output: /.prettierignore
        packages/a/ignored.md
    • [$username/$repo]

      • the content of these github files will be downloaded and appended to generated ignore file
      • recommend using ignore patterns from [github/gitignore]
  3. npm run ignore-sync

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].