angular-schule / angular-cli-ghpages

🚀 Deploy your 🅰️Angular app to GitHub pages, Cloudflare Pages or any other Git repo directly from the Angular CLI! Available on NPM.
https://www.npmjs.com/package/angular-cli-ghpages
MIT License
955 stars 96 forks source link

Deployment command deletes files inside .idea folder #144

Closed bharathkumarchowdary closed 1 year ago

bharathkumarchowdary commented 2 years ago

When using angular-cli-ghpages for deploying to GitHub Pages with this command npx angular-cli-ghpages --dir=dist/engg-calc/ --branch=gh-pages the following files from .idea folder which is a configuration storage folder for IntelliJ IDEA IDEs like WebStorm etc, are getting deleted 0915E484-C127-4A23-84B2-F906E958230C_4_5005_c

JohannesHoppe commented 2 years ago

There is a .gitignore file in that folder, are you sure that the folder isn't ignored by configuration?

bharathkumarchowdary commented 2 years ago

I was running this command for deploying while the gh-pages branch was checked out npx angular-cli-ghpages --dir=dist/engg-calc/ --branch=gh-pages

realised if I run that command while on any other branch(master), the deletion of .idea folder files is not happening. Those files were untouched

I'm sure that if I run the above command while being on gh-pages branch, it will definitely delete all source code and also files of .idea

JohannesHoppe commented 1 year ago

I have no idea how to reproduce this issue. Feel free to reopen this issue if you have a demo to reproduce the problem.