Skip to content

Instantly share code, notes, and snippets.

@Tjitse-E
Created September 28, 2023 05:58
Show Gist options
  • Save Tjitse-E/803af04e4ca0f0938be85e47ddb8061e to your computer and use it in GitHub Desktop.
Save Tjitse-E/803af04e4ca0f0938be85e47ddb8061e to your computer and use it in GitHub Desktop.
Add section to composer.json
cat composer.json |
jq 'if .extra then . else . + {"extra": {}} end' |
jq --indent 4 '.extra["magento-deploy-ignore"] = {
"*": [
"/CHANGELOG.md",
"/.gitignore",
"/.htaccess.sample",
"/.php-cs-fixer.dist.php",
"/.user.ini",
"/COPYING.txt",
"/Gruntfile.js.sample",
"/LICENSE.txt",
"/LICENSE_AFL.txt",
"/auth.json.sample",
"/grunt-config.json.sample",
"/nginx.conf.sample",
"/package.json.sample"
]
}' | sponge composer.json | jq .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment