shared-ignore
v0.0.1
Published
Generates .dockerignore, .npmignore, .gitignore
Downloads
4
Readme
Installation
or
package.json
:
{
// ...
"scripts": {
// ...
"postinstall": "shared-ignore"
},
"sharedIgnore": {
"all": ["node_modules/"],
"docker": ["build/"],
"git": [],
"npm": ["source/", ".dockerignore"]
}
}
This will generate the following files:
.gitignore
:
# auto-generated by shared-ignore
node_modules/
.dockerignore
:
# auto-generated by shared-ignore
node_modules/
build/
.npmignore
:
# auto-generated by shared-ignore
node_modules/
source/
.dockerignore