Created
September 28, 2023 05:58
-
-
Save Tjitse-E/803af04e4ca0f0938be85e47ddb8061e to your computer and use it in GitHub Desktop.
Add section to composer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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