Remove babel transforms for flipper-server
Summary: Flipper server itself requires no babel transforms. We applied extra transforms only for the bundled plugins. However, we pack and ship all plugins in the /static folder. They are always available on the FS. Therefore we could stop bundling any plugins into flipper-server's source code. Reviewed By: lblasa Differential Revision: D38910251 fbshipit-source-id: b3e9fe5ae2ab69ce5579b01b6793ebf7e88baf66
This commit is contained in:
committed by
Facebook GitHub Bot
parent
218cb6abf2
commit
a67a4e5d0f
@@ -14,7 +14,8 @@ import {
|
||||
compileServerMain,
|
||||
launchServer,
|
||||
prepareDefaultPlugins,
|
||||
prepareHeadlessPlugins,
|
||||
buildHeadlessPlugins,
|
||||
buildServerAddOns,
|
||||
} from './build-utils';
|
||||
import Watchman from './watchman';
|
||||
import isFB from './isFB';
|
||||
@@ -59,11 +60,6 @@ const argv = yargs
|
||||
'[FB-internal only] Will force using public sources only, to be able to iterate quickly on the public version. If sources are checked out from GitHub this is already the default. Setting env var "FLIPPER_FORCE_PUBLIC_BUILD" is equivalent.',
|
||||
type: 'boolean',
|
||||
},
|
||||
open: {
|
||||
describe: 'Open Flipper in the default browser after starting',
|
||||
type: 'boolean',
|
||||
default: true,
|
||||
},
|
||||
tcp: {
|
||||
describe: 'Enable TCP connections on flipper-server.',
|
||||
type: 'boolean',
|
||||
@@ -136,7 +132,7 @@ let startCount = 0;
|
||||
async function restartServer() {
|
||||
try {
|
||||
await compileServerMain(true);
|
||||
await launchServer(true, argv.open && ++startCount === 1, argv.tcp); // only open on the first time
|
||||
await launchServer(true, ++startCount === 1, argv.tcp); // only open on the first time
|
||||
} catch (e) {
|
||||
console.error(
|
||||
chalk.red(
|
||||
@@ -190,12 +186,14 @@ async function startWatchChanges() {
|
||||
}
|
||||
await prepareDefaultPlugins(
|
||||
process.env.FLIPPER_RELEASE_CHANNEL === 'insiders',
|
||||
true,
|
||||
);
|
||||
await prepareHeadlessPlugins();
|
||||
await buildHeadlessPlugins(true);
|
||||
await buildServerAddOns(true);
|
||||
|
||||
// watch
|
||||
await startWatchChanges();
|
||||
await ensurePluginFoldersWatchable();
|
||||
// builds and starts
|
||||
await restartServer();
|
||||
// watch
|
||||
await startWatchChanges();
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user