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
@@ -16,8 +16,9 @@ import {
|
||||
genMercurialRevision,
|
||||
getVersionNumber,
|
||||
prepareDefaultPlugins,
|
||||
prepareHeadlessPlugins,
|
||||
buildHeadlessPlugins,
|
||||
moveServerSourceMaps,
|
||||
buildServerAddOns,
|
||||
} from './build-utils';
|
||||
import {defaultPluginsDir, distDir, serverDir, staticDir} from './paths';
|
||||
import isFB from './isFB';
|
||||
@@ -217,7 +218,7 @@ async function copyStaticResources(outDir: string, versionNumber: string) {
|
||||
console.log(`⚙️ Copying package resources...`);
|
||||
|
||||
// static folder, without the things that are only for Electron
|
||||
const packageFilesToCopy = ['README.md', 'package.json', 'server.js', 'dist'];
|
||||
const packageFilesToCopy = ['README.md', 'package.json', 'server.js', 'lib'];
|
||||
|
||||
await Promise.all(
|
||||
packageFilesToCopy.map((e) =>
|
||||
@@ -352,8 +353,9 @@ async function buildServerRelease() {
|
||||
// create plugin output dir
|
||||
await fs.mkdirp(path.join(dir, 'static', 'defaultPlugins'));
|
||||
|
||||
await prepareDefaultPlugins(argv.channel === 'insiders');
|
||||
await prepareHeadlessPlugins();
|
||||
await prepareDefaultPlugins(argv.channel === 'insiders', true);
|
||||
await buildServerAddOns(false);
|
||||
await buildHeadlessPlugins(false);
|
||||
await compileServerMain(false);
|
||||
await copyStaticResources(dir, versionNumber);
|
||||
await downloadIcons(path.join(dir, 'static'));
|
||||
|
||||
Reference in New Issue
Block a user