How to rebuild a project in WebStorm

Hi,

sorry for this newbie question. But how can I manually rebuild a project (e.g. after a change in a file watcher)?

3 comments

Hi there,

So .. you want to re-run file watcher(s) on already compiled/processed files?

0

I have added an out parameter to the typescript filewatcher to merge all ts files to a single javascript file. For testing purpose I wanted to remove the out parameter again. This time the js files should be written for each ts file. But that didn't happen. Therefore I wanted to rebuild the project but I can't find any option.

The only solution I found was to clean the cache and restart the ide. Is there a simpler way to let the file watcher rerun on all files?

0
The only solution I found was to clean the cache and restart the ide. Is there a simpler way to let the file watcher rerun on all files?

Two options:

A) As simple as make some changes in those files (e.g. add and remove space) and save them -- this will trigger file watcher execution.

B) Force re-run of file watcher(s) without modifying files:

  1. Select all desired files/folders in Project View panel
  2. Ctrl+Shift+A (or whatever shortcut you may have for "Help | Find Action...") -- use it twice in a row (or manually check "Include non-menu options" option in that popup)
  3. Type "run file w" (without quotes, obviously) -- you need to find "Run File Watchers" command
  4. Execute it


(Alternative for steps #2, #3 & #4: "Settings | Keymap" -- assign custom shortcut for "Plugins | File Watchers | Run File Watchers" action)

0

Please sign in to leave a comment.