Track plugin changes and notify frontend
Summary: Watch source plugin folders and notify frontend that any of them changed. In subsequent diffs, we will start reloading plugins that changed. Reviewed By: lblasa Differential Revision: D39539443 fbshipit-source-id: 726916c0bce336a2c0179558526bcb1b74e35b93
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3639feef61
commit
c69d102ca1
@@ -15,11 +15,10 @@ import {
|
||||
launchServer,
|
||||
prepareDefaultPlugins,
|
||||
} from './build-utils';
|
||||
import Watchman from './watchman';
|
||||
import isFB from './isFB';
|
||||
import yargs from 'yargs';
|
||||
import ensurePluginFoldersWatchable from './ensurePluginFoldersWatchable';
|
||||
import startWatchPlugins from './startWatchPlugins';
|
||||
import {Watchman} from 'flipper-pkg-lib';
|
||||
|
||||
const argv = yargs
|
||||
.usage('yarn flipper-server [args]')
|
||||
@@ -195,5 +194,4 @@ async function startWatchChanges() {
|
||||
await restartServer();
|
||||
// watch
|
||||
await startWatchChanges();
|
||||
await startWatchPlugins();
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user