Move excludes to the top level.

This commit is contained in:
Jeff Ong 2020-11-03 12:47:13 -05:00
parent 96c77a2a4b
commit 592ba9424e
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,5 @@
seedlet/
seedlet.zip
dotorg-exclude.txt
seedlet/seedlet/
spearhead/spearhead
inc/headstart
node_modules
.git
@ -9,4 +8,5 @@ node_modules
*.json
*.map
*wpcom*
*.zip
postcss.config.js

View file

@ -3,7 +3,7 @@ find assets/sass/*.scss -type f -exec sed -i '' 's/-wpcom//g' {} \;
find assets/sass/*.scss -type f -exec sed -i '' 's/auto-loading-homepage, //g' {} \;
npm run build;
mkdir seedlet;
rsync -avz --exclude-from 'dotorg-exclude.txt' ./ seedlet
rsync -avz --exclude-from '../dotorg-exclude.txt' ./ seedlet
find seedlet -type f -name '*.map' -delete # for some reason rsync won't exclude map files
zip -r -X seedlet.zip seedlet
rm -rf seedlet