build-ignore
Advanced tools
Comparing version 1.1.4 to 1.1.5
{ | ||
"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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
2776
27