Exclude build folder from project, but not from deployment?

Hi!

Our TypeScript project stores all compiled files in a `build` folder. To exclude this folder from inspections, search, etc. we can mark this folder as excluded which works great. The problem is however that by marking this folder as excluded, it is also excluded from automatic deployment. This means we'll have to choose from two not-optimal situations:

  1. We do not mark the `build` folder as excluded. This means automatic deployment is enabled (which is necessary for our project), but now the build files are included in inspections and file search.
  2. We do mark the `build` folder as excluded. Inspections and file search now work great, but the build files do not deploy.

A workaround is to exclude JavaScript files from inspections and file search, but this is also not ideal since we still have some old JavaScript files included in our codebase. I am aware that we can sort of work around this by using custom scopes, but still this is not as ideal.

Long story short: is it possible to automatically deploy an excluded project folder?

0
2 comments

Are you sure you don't think automatic uploading is disabled for excluded files because you don't see them in 'Sync with Deployed to'?
In general, it should not be: https://drive.google.com/file/d/1rO-Pkc54QTh1_-7Lv9u9a3J5eUy8wztc

The 'Sync with Deployed to' window has the 'Hide Excluded Files' toggle too.

0

Hi Eugene Morozov, sorry for my late reply and thanks a lot for the detailed screencast. I was too soon to judge - my project directories were not set up properly. It works now!

0

Please sign in to leave a comment.