File Watcher and VCS (Perforce)

Hi,

Hopefully I'm missing something... But I have a custom File Watcher that "pre-minifies" my angular javascript files, and it works perfectly. The only issue is that I want to store the resultant file into source control. If the file is in source control, I must manually open the file for edit before editing the source file.

Is there a way to have the editor check out the file for me?

Thanks,

2 comments

I must manually open the file for edit before editing the source file

Sorry, not sure I understood. Why is opening minized file needed for editing the source file?

0

Scenario:

  1. User edits app.js  - IDE automatically checks file out of VCS
  2. File Watcher generates app.min.js - User must manualy add file into VCS
  3. User checks in both files
  4. User edits app.js - IDE automatically checks file out of VCS
  5. File Watcher is unable to edit app.min.js
  6. User manually checks out app.min.js



For steps 2 & 5, is there a configuration to have the IDE (Intellij13) automatically update the VCS?

Thanks!
0

Please sign in to leave a comment.