Files
flipper/desktop/scripts/package.json
Michel Weststrate 6ff4abbc67 Make flipper-server stand-alone servable
Summary:
This diff makes flipper-server stand-alone servable as a single package.

It basically works as follows:

- (default) plugins are build as usually into static folder
- static folder is copied into flipper-server/static (as far as relevant)
- `flipper-server/src/index.tsx` is bundled into `flipper-server/dist/index.js`
- `flipper-ui-browser/src/index.tsx` is bundled into `flipper-server/static/bundle.js`

If flipper-server is started without the `--bundler` config, the `bundle.js` will be served statically, rather than starting up the Metro bundler with all the typical transforms (in a distributed version of the package those all wouldn't resolve)

Things to be done in next diffs:

* make sure plugins actually load in the non bundled setup
* make sure flipper-server gets published properly
* make sure build is created as part of CI

At the end of this stack, running `npx flipper-server` on any machine should basically be a viable approach to get flipper up and running locally :)

Reviewed By: nikoant

Differential Revision: D33171107

fbshipit-source-id: 4af8ac2699467a0b55283fe084640482700744c2
2021-12-24 02:16:48 -08:00

52 lines
1.4 KiB
JSON

{
"name": "flipper-scripts",
"private": true,
"version": "0.0.0",
"description": "Utility scripts to manage Flipper",
"repository": "facebook/flipper",
"license": "MIT",
"bugs": "https://github.com/facebook/flipper/issues",
"devDependencies": {
"@adobe/node-fetch-retry": "^2.0.0",
"@babel/code-frame": "^7.15.8",
"@types/adobe__node-fetch-retry": "^1.0.2",
"@types/babel__code-frame": "^7.0.3",
"@types/detect-port": "^1.3.1",
"@types/fs-extra": "^9.0.13",
"@types/node": "^15.12.5",
"ansi-to-html": "^0.7.2",
"app-builder-lib": "22.14.8",
"chalk": "^4.1.2",
"detect-port": "^1.1.1",
"dotenv": "^8.2.0",
"electron-builder": "22.11.7",
"express": "^4.15.2",
"fb-watchman": "^2.0.1",
"flipper-common": "0.0.0",
"flipper-pkg-lib": "0.0.0",
"flipper-plugin-lib": "0.0.0",
"fs-extra": "^9.0.0",
"glob": "^7.2.0",
"ignore": "^5.1.4",
"metro": "^0.66.2",
"metro-minify-terser": "^0.66.2",
"p-filter": "^2.1.0",
"p-map": "^4.0.0",
"promisify-child-process": "^4.1.0",
"socket.io": "^4.4.0",
"tmp": "^0.2.1",
"uuid": "^8.3.2",
"yargs": "^17.0.1"
},
"scripts": {
},
"files": [
"lib/**/*"
],
"homepage": "https://github.com/facebook/flipper",
"keywords": [
"Flipper"
],
"author": "Facebook, Inc"
}