Socket
Socket
Sign inDemoInstall

build-ignore

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

build-ignore - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

3

package.json
{
"name": "build-ignore",
"version": "1.1.4",
"version": "1.1.5",
"description": "A post-checkout hook script that generates a .gitignore based on branch name for when different .gitignores are needed",
"main": "index.js",
"repository": "https://github.com/davidicus/build-ignore.git",
"scripts": {

@@ -7,0 +8,0 @@ "test": "echo \"Error: no test specified\" && exit 1"

@@ -7,5 +7,9 @@ # Build-Ignore

```
yarn add build-ignore
yarn add build-ignore -D
```
or
```
npm i build-ignore -D
```
---

@@ -19,2 +23,6 @@ ## Use

```
From your terminal run `./node_modules/.bin/build-ignore "specialBranch"` with the special branch name as the argument.
From your terminal run `./node_modules/.bin/build-ignore`. It will check the current branch and look for it in the gitignores folder. If one is not found it will create one using the gitingore_master.txt file.
Consider using a githooks module like [husky](https://www.npmjs.com/package/husky) to have code run automatically with post-checkout hook.
Will have to add .gitignore to each gitignore text file in order to avoid having to mess with tracking of actual .gitignore.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc