kiwix-js-pwa/scripts/patch_gitignore.sh
2023-12-06 13:14:41 +00:00

13 lines
367 B
Bash

#!/bin/bash
# Delete gitignore entry for the dist folder
sed -i "/^\/dist\/$/d" .gitignore
# Replace the /node_modules*/ entry in gitignore with the following
sed -i 's|/node_modules\*/|/node_modules/*\
!/node_modules/jquery\
/node_modules/jquery/*\
!/node_modules/jquery/dist\
/node_modules/jquery/dist/*\
!/node_modules/jquery/dist/jquery.slim.min.*|' .gitignore