@callstack/repack-dev-server 1.0.0-next.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/dist/createServer.d.ts +0 -0
- package/dist/createServer.js +5 -1
- package/dist/createServer.js.map +1 -1
- package/dist/img/favicon.ico +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -0
- package/dist/index.js.map +0 -0
- package/dist/plugins/api/apiPlugin.d.ts +0 -0
- package/dist/plugins/api/apiPlugin.js +0 -0
- package/dist/plugins/api/apiPlugin.js.map +0 -0
- package/dist/plugins/api/index.d.ts +0 -0
- package/dist/plugins/api/index.js +0 -0
- package/dist/plugins/api/index.js.map +0 -0
- package/dist/plugins/compiler/compilerPlugin.d.ts +0 -0
- package/dist/plugins/compiler/compilerPlugin.js +0 -0
- package/dist/plugins/compiler/compilerPlugin.js.map +0 -0
- package/dist/plugins/compiler/index.d.ts +0 -0
- package/dist/plugins/compiler/index.js +0 -0
- package/dist/plugins/compiler/index.js.map +0 -0
- package/dist/plugins/compiler/types.d.ts +0 -0
- package/dist/plugins/compiler/types.js +0 -0
- package/dist/plugins/compiler/types.js.map +0 -0
- package/dist/plugins/devtools/devtoolsPlugin.d.ts +0 -0
- package/dist/plugins/devtools/devtoolsPlugin.js +0 -0
- package/dist/plugins/devtools/devtoolsPlugin.js.map +0 -0
- package/dist/plugins/devtools/index.d.ts +0 -0
- package/dist/plugins/devtools/index.js +0 -0
- package/dist/plugins/devtools/index.js.map +0 -0
- package/dist/plugins/favicon/faviconPlugin.d.ts +3 -0
- package/dist/plugins/favicon/faviconPlugin.js +15 -0
- package/dist/plugins/favicon/faviconPlugin.js.map +1 -0
- package/dist/plugins/favicon/index.d.ts +1 -0
- package/dist/plugins/favicon/index.js +2 -0
- package/dist/plugins/favicon/index.js.map +1 -0
- package/dist/plugins/multipart/index.d.ts +0 -0
- package/dist/plugins/multipart/index.js +0 -0
- package/dist/plugins/multipart/index.js.map +0 -0
- package/dist/plugins/multipart/multipartPlugin.d.ts +0 -0
- package/dist/plugins/multipart/multipartPlugin.js +0 -0
- package/dist/plugins/multipart/multipartPlugin.js.map +0 -0
- package/dist/plugins/multipart/types.d.ts +0 -0
- package/dist/plugins/multipart/types.js +0 -0
- package/dist/plugins/multipart/types.js.map +0 -0
- package/dist/plugins/symbolicate/Symbolicator.d.ts +0 -0
- package/dist/plugins/symbolicate/Symbolicator.js +0 -0
- package/dist/plugins/symbolicate/Symbolicator.js.map +0 -0
- package/dist/plugins/symbolicate/index.d.ts +0 -0
- package/dist/plugins/symbolicate/index.js +0 -0
- package/dist/plugins/symbolicate/index.js.map +0 -0
- package/dist/plugins/symbolicate/sybmolicatePlugin.d.ts +0 -0
- package/dist/plugins/symbolicate/sybmolicatePlugin.js +0 -0
- package/dist/plugins/symbolicate/sybmolicatePlugin.js.map +0 -0
- package/dist/plugins/symbolicate/types.d.ts +0 -0
- package/dist/plugins/symbolicate/types.js +0 -0
- package/dist/plugins/symbolicate/types.js.map +0 -0
- package/dist/plugins/wss/WebSocketRouter.d.ts +0 -0
- package/dist/plugins/wss/WebSocketRouter.js +0 -0
- package/dist/plugins/wss/WebSocketRouter.js.map +0 -0
- package/dist/plugins/wss/WebSocketServer.d.ts +0 -0
- package/dist/plugins/wss/WebSocketServer.js +0 -0
- package/dist/plugins/wss/WebSocketServer.js.map +0 -0
- package/dist/plugins/wss/index.d.ts +0 -0
- package/dist/plugins/wss/index.js +0 -0
- package/dist/plugins/wss/index.js.map +0 -0
- package/dist/plugins/wss/servers/HermesInspectorProxy.d.ts +0 -0
- package/dist/plugins/wss/servers/HermesInspectorProxy.js +0 -0
- package/dist/plugins/wss/servers/HermesInspectorProxy.js.map +0 -0
- package/dist/plugins/wss/servers/WebSocketApiServer.d.ts +0 -0
- package/dist/plugins/wss/servers/WebSocketApiServer.js +0 -0
- package/dist/plugins/wss/servers/WebSocketApiServer.js.map +0 -0
- package/dist/plugins/wss/servers/WebSocketDebuggerServer.d.ts +0 -0
- package/dist/plugins/wss/servers/WebSocketDebuggerServer.js +0 -0
- package/dist/plugins/wss/servers/WebSocketDebuggerServer.js.map +0 -0
- package/dist/plugins/wss/servers/WebSocketDevClientServer.d.ts +0 -0
- package/dist/plugins/wss/servers/WebSocketDevClientServer.js +0 -0
- package/dist/plugins/wss/servers/WebSocketDevClientServer.js.map +0 -0
- package/dist/plugins/wss/servers/WebSocketEventsServer.d.ts +0 -0
- package/dist/plugins/wss/servers/WebSocketEventsServer.js +0 -0
- package/dist/plugins/wss/servers/WebSocketEventsServer.js.map +0 -0
- package/dist/plugins/wss/servers/WebSocketHMRServer.d.ts +0 -0
- package/dist/plugins/wss/servers/WebSocketHMRServer.js +0 -0
- package/dist/plugins/wss/servers/WebSocketHMRServer.js.map +0 -0
- package/dist/plugins/wss/servers/WebSocketMessageServer.d.ts +0 -0
- package/dist/plugins/wss/servers/WebSocketMessageServer.js +0 -0
- package/dist/plugins/wss/servers/WebSocketMessageServer.js.map +0 -0
- package/dist/plugins/wss/types.d.ts +0 -0
- package/dist/plugins/wss/types.js +0 -0
- package/dist/plugins/wss/types.js.map +0 -0
- package/dist/plugins/wss/wssPlugin.d.ts +0 -0
- package/dist/plugins/wss/wssPlugin.js +0 -0
- package/dist/plugins/wss/wssPlugin.js.map +0 -0
- package/dist/types.d.ts +0 -0
- package/dist/types.js +0 -0
- package/dist/types.js.map +0 -0
- package/docs/README.md +0 -0
- package/docs/enums/Internal.EventTypes.md +3 -3
- package/docs/functions/createServer.md +1 -1
- package/docs/interfaces/CodeFrame.md +3 -3
- package/docs/interfaces/CompilerDelegate.md +3 -3
- package/docs/interfaces/HmrDelegate.md +2 -2
- package/docs/interfaces/InputStackFrame.md +4 -4
- package/docs/interfaces/ProgressData.md +2 -2
- package/docs/interfaces/ReactNativeStackFrame.md +4 -4
- package/docs/interfaces/Server.Api.Asset.md +2 -2
- package/docs/interfaces/Server.Api.CompilationStats.md +0 -0
- package/docs/interfaces/Server.Api.Delegate.md +3 -3
- package/docs/interfaces/Server.Config.md +2 -2
- package/docs/interfaces/Server.Delegate.md +6 -6
- package/docs/interfaces/Server.DelegateContext.md +5 -5
- package/docs/interfaces/Server.LoggerDelegate.md +1 -1
- package/docs/interfaces/Server.MessagesDelegate.md +2 -2
- package/docs/interfaces/Server.Options.md +4 -4
- package/docs/interfaces/StackFrame.md +5 -5
- package/docs/interfaces/SymbolicatorDelegate.md +3 -3
- package/docs/interfaces/SymbolicatorResults.md +2 -2
- package/docs/modules/Internal.md +0 -0
- package/docs/modules/Server.Api.md +0 -0
- package/docs/modules/Server.md +0 -0
- package/docs/types/SendProgress.md +1 -1
- package/package.json +6 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# @callstack/repack-dev-server
|
|
2
2
|
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#186](https://github.com/callstack/repack/pull/186) [`05d126e`](https://github.com/callstack/repack/commit/05d126e63802f0702a9e353e762f8b6a77fcd73e) Thanks [@zamotany](https://github.com/zamotany)! - ### Bundler-agnostic development server
|
|
8
|
+
|
|
9
|
+
Extracted development server from `@callstack/repack` into a separate package and made it bundler-agnostic.
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#189](https://github.com/callstack/repack/pull/189) [`bc42023`](https://github.com/callstack/repack/commit/bc420236687047752cf1ee42204b2f510aec144a) Thanks [@zamotany](https://github.com/zamotany)! - ### Development server API
|
|
14
|
+
|
|
15
|
+
Added API endpoints to `@callstack/repack-dev-server`:
|
|
16
|
+
|
|
17
|
+
- `GET /api/platforms` - List all platforms with active compilations
|
|
18
|
+
- `GET /api/:platform/assets` - List all assets (`name` and `size`) for a given compilation
|
|
19
|
+
- `GET /api/:platform/stats` - Get compilation stats
|
|
20
|
+
- Websocket server under `/api` URI for logs and compilations events
|
|
21
|
+
|
|
22
|
+
* [#230](https://github.com/callstack/repack/pull/230) [`e6dc69d`](https://github.com/callstack/repack/commit/e6dc69d35f287af08d09944edd8e6d12f28484cf) Thanks [@jbinda](https://github.com/jbinda)! - Introduce `fastify-favicon` plugin to prevent server logger from emitting error log related to `GET 400 /favicon.ico` when requesting bundles via browser.
|
|
23
|
+
|
|
24
|
+
- [#239](https://github.com/callstack/repack/pull/239) [`6d65156`](https://github.com/callstack/repack/commit/6d65156366bc88edefdae7a3d0310ddbcdf48886) Thanks [@jbinda](https://github.com/jbinda)! - Expose favicon.ico in devserver
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- [#238](https://github.com/callstack/repack/pull/238) [`b913b89`](https://github.com/callstack/repack/commit/b913b8981334854cc13076af2a9c8a12bc465d1b) Thanks [@jbinda](https://github.com/jbinda)! - Add `archive` script in dev-server
|
|
29
|
+
|
|
30
|
+
* [#200](https://github.com/callstack/repack/pull/200) [`c75cdc7`](https://github.com/callstack/repack/commit/c75cdc7a44351bb4702232e603031e2880f2839d) Thanks [@zamotany](https://github.com/zamotany)! - Prevent server logger from emitting log to API WS server before WS servers are created.
|
|
31
|
+
|
|
32
|
+
* Updated dependencies [[`05d126e`](https://github.com/callstack/repack/commit/05d126e63802f0702a9e353e762f8b6a77fcd73e)]:
|
|
33
|
+
- @callstack/repack-debugger-app@1.0.0
|
|
34
|
+
|
|
35
|
+
## 1.0.0-next.3
|
|
36
|
+
|
|
37
|
+
### Minor Changes
|
|
38
|
+
|
|
39
|
+
- [#230](https://github.com/callstack/repack/pull/230) [`e6dc69d`](https://github.com/callstack/repack/commit/e6dc69d35f287af08d09944edd8e6d12f28484cf) Thanks [@jbinda](https://github.com/jbinda)! - Introduce `fastify-favicon` plugin to prevent server logger from emitting error log related to `GET 400 /favicon.ico` when requesting bundles via browser.
|
|
40
|
+
|
|
41
|
+
* [#239](https://github.com/callstack/repack/pull/239) [`6d65156`](https://github.com/callstack/repack/commit/6d65156366bc88edefdae7a3d0310ddbcdf48886) Thanks [@jbinda](https://github.com/jbinda)! - Expose favicon.ico in devserver
|
|
42
|
+
|
|
43
|
+
### Patch Changes
|
|
44
|
+
|
|
45
|
+
- [#238](https://github.com/callstack/repack/pull/238) [`b913b89`](https://github.com/callstack/repack/commit/b913b8981334854cc13076af2a9c8a12bc465d1b) Thanks [@jbinda](https://github.com/jbinda)! - Add `archive` script in dev-server
|
|
46
|
+
|
|
3
47
|
## 1.0.0-next.2
|
|
4
48
|
|
|
5
49
|
### Patch Changes
|
package/dist/createServer.d.ts
CHANGED
|
File without changes
|
package/dist/createServer.js
CHANGED
|
@@ -8,6 +8,7 @@ import compilerPlugin from "./plugins/compiler/index.js";
|
|
|
8
8
|
import devtoolsPlugin from "./plugins/devtools/index.js";
|
|
9
9
|
import apiPlugin from "./plugins/api/index.js";
|
|
10
10
|
import wssPlugin from "./plugins/wss/index.js";
|
|
11
|
+
import faviconPlugin from "./plugins/favicon/index.js";
|
|
11
12
|
import { Internal } from "./types.js";
|
|
12
13
|
import symbolicatePlugin from "./plugins/symbolicate/index.js";
|
|
13
14
|
/**
|
|
@@ -87,7 +88,10 @@ export async function createServer(config) {
|
|
|
87
88
|
root: debuggerAppPath,
|
|
88
89
|
prefix: '/debugger-ui',
|
|
89
90
|
prefixAvoidTrailingSlash: true
|
|
90
|
-
});
|
|
91
|
+
}); // below is to prevent showing `GET 400 /favicon.ico`
|
|
92
|
+
// errors in console when requesting the bundle via browser
|
|
93
|
+
|
|
94
|
+
await instance.register(faviconPlugin);
|
|
91
95
|
instance.addHook('onSend', async (request, reply, payload) => {
|
|
92
96
|
reply.header('X-Content-Type-Options', 'nosniff');
|
|
93
97
|
const [pathname] = request.url.split('?');
|
package/dist/createServer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createServer.js","names":["Writable","Fastify","fastifySensible","fastifyStatic","debuggerAppPath","multipartPlugin","compilerPlugin","devtoolsPlugin","apiPlugin","wssPlugin","Internal","symbolicatePlugin","createServer","config","delegate","instance","logger","level","stream","write","chunk","_encoding","callback","log","JSON","parse","toString","onMessage","wss","apiServer","send","options","https","undefined","notifyBuildStart","platform","event","EventTypes","BuildStart","notifyBuildEnd","BuildEnd","broadcastToHmrClients","clientIds","hmrServer","broadcastToMessageClients","method","params","messageServer","broadcast","register","prefix","root","prefixAvoidTrailingSlash","addHook","request","reply","payload","header","pathname","url","split","endsWith","get","messages","getHello","getStatus","start","listen","port","host","stop","close"],"sources":["../src/createServer.ts"],"sourcesContent":["import { Writable } from 'stream';\nimport Fastify from 'fastify';\nimport fastifySensible from '@fastify/sensible';\nimport fastifyStatic from '@fastify/static';\nimport debuggerAppPath from '@callstack/repack-debugger-app';\nimport multipartPlugin from './plugins/multipart';\nimport compilerPlugin from './plugins/compiler';\nimport devtoolsPlugin from './plugins/devtools';\nimport apiPlugin from './plugins/api';\nimport wssPlugin from './plugins/wss';\nimport { Internal, Server } from './types';\nimport symbolicatePlugin from './plugins/symbolicate';\n\n/**\n * Create instance of development server, powered by Fastify.\n *\n * @param config Server configuration.\n * @returns `start` and `stop` functions as well as an underlying Fastify `instance`.\n */\nexport async function createServer(config: Server.Config) {\n let delegate: Server.Delegate;\n\n /** Fastify instance powering the development server. */\n const instance = Fastify({\n logger: {\n level: 'trace',\n stream: new Writable({\n write: (chunk, _encoding, callback) => {\n const log = JSON.parse(chunk.toString());\n delegate?.logger.onMessage(log);\n instance.wss?.apiServer.send(log);\n callback();\n },\n }),\n },\n ...(config.options.https ? { https: config.options.https } : undefined),\n });\n\n delegate = config.delegate({\n log: instance.log,\n notifyBuildStart: (platform) => {\n instance.wss.apiServer.send({\n event: Internal.EventTypes.BuildStart,\n platform,\n });\n },\n notifyBuildEnd: (platform) => {\n instance.wss.apiServer.send({\n event: Internal.EventTypes.BuildEnd,\n platform,\n });\n },\n broadcastToHmrClients: (event, platform, clientIds) => {\n instance.wss.hmrServer.send(event, platform, clientIds);\n },\n broadcastToMessageClients: ({ method, params }) => {\n instance.wss.messageServer.broadcast(method, params);\n },\n });\n\n // Register plugins\n await instance.register(fastifySensible);\n await instance.register(wssPlugin, {\n options: config.options,\n delegate,\n });\n await instance.register(multipartPlugin);\n await instance.register(apiPlugin, {\n delegate,\n prefix: '/api',\n });\n await instance.register(compilerPlugin, {\n delegate,\n });\n await instance.register(symbolicatePlugin, {\n delegate,\n });\n await instance.register(devtoolsPlugin, {\n options: config.options,\n });\n\n await instance.register(fastifyStatic, {\n root: debuggerAppPath,\n prefix: '/debugger-ui',\n prefixAvoidTrailingSlash: true,\n });\n\n instance.addHook('onSend', async (request, reply, payload) => {\n reply.header('X-Content-Type-Options', 'nosniff');\n\n const [pathname] = request.url.split('?');\n if (pathname.endsWith('.map')) {\n reply.header('Access-Control-Allow-Origin', 'devtools://devtools');\n }\n\n return payload;\n });\n\n // Register routes\n instance.get('/', async () => delegate.messages.getHello());\n instance.get('/status', async () => delegate.messages.getStatus());\n\n /** Start the development server. */\n async function start() {\n await instance.listen(config.options.port, config.options.host);\n }\n\n /** Stop the development server. */\n async function stop() {\n await instance.close();\n }\n\n return {\n start,\n stop,\n instance,\n };\n}\n"],"mappings":"AAAA,SAASA,QAAT,QAAyB,QAAzB;AACA,OAAOC,OAAP,MAAoB,SAApB;AACA,OAAOC,eAAP,MAA4B,mBAA5B;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAOC,eAAP,MAA4B,gCAA5B;OACOC,e;OACAC,c;OACAC,c;OACAC,S;OACAC,S;SACEC,Q;OACFC,iB;AAEP;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,eAAeC,YAAf,CAA4BC,MAA5B,EAAmD;EACxD,IAAIC,QAAJ;EAEA;;EACA,MAAMC,QAAQ,
|
|
1
|
+
{"version":3,"file":"createServer.js","names":["Writable","Fastify","fastifySensible","fastifyStatic","debuggerAppPath","multipartPlugin","compilerPlugin","devtoolsPlugin","apiPlugin","wssPlugin","faviconPlugin","Internal","symbolicatePlugin","createServer","config","delegate","instance","logger","level","stream","write","chunk","_encoding","callback","log","JSON","parse","toString","onMessage","wss","apiServer","send","options","https","undefined","notifyBuildStart","platform","event","EventTypes","BuildStart","notifyBuildEnd","BuildEnd","broadcastToHmrClients","clientIds","hmrServer","broadcastToMessageClients","method","params","messageServer","broadcast","register","prefix","root","prefixAvoidTrailingSlash","addHook","request","reply","payload","header","pathname","url","split","endsWith","get","messages","getHello","getStatus","start","listen","port","host","stop","close"],"sources":["../src/createServer.ts"],"sourcesContent":["import { Writable } from 'stream';\nimport Fastify from 'fastify';\nimport fastifySensible from '@fastify/sensible';\nimport fastifyStatic from '@fastify/static';\nimport debuggerAppPath from '@callstack/repack-debugger-app';\nimport multipartPlugin from './plugins/multipart';\nimport compilerPlugin from './plugins/compiler';\nimport devtoolsPlugin from './plugins/devtools';\nimport apiPlugin from './plugins/api';\nimport wssPlugin from './plugins/wss';\nimport faviconPlugin from './plugins/favicon';\nimport { Internal, Server } from './types';\nimport symbolicatePlugin from './plugins/symbolicate';\n\n/**\n * Create instance of development server, powered by Fastify.\n *\n * @param config Server configuration.\n * @returns `start` and `stop` functions as well as an underlying Fastify `instance`.\n */\nexport async function createServer(config: Server.Config) {\n let delegate: Server.Delegate;\n\n /** Fastify instance powering the development server. */\n const instance = Fastify({\n logger: {\n level: 'trace',\n stream: new Writable({\n write: (chunk, _encoding, callback) => {\n const log = JSON.parse(chunk.toString());\n delegate?.logger.onMessage(log);\n instance.wss?.apiServer.send(log);\n callback();\n },\n }),\n },\n ...(config.options.https ? { https: config.options.https } : undefined),\n });\n\n delegate = config.delegate({\n log: instance.log,\n notifyBuildStart: (platform) => {\n instance.wss.apiServer.send({\n event: Internal.EventTypes.BuildStart,\n platform,\n });\n },\n notifyBuildEnd: (platform) => {\n instance.wss.apiServer.send({\n event: Internal.EventTypes.BuildEnd,\n platform,\n });\n },\n broadcastToHmrClients: (event, platform, clientIds) => {\n instance.wss.hmrServer.send(event, platform, clientIds);\n },\n broadcastToMessageClients: ({ method, params }) => {\n instance.wss.messageServer.broadcast(method, params);\n },\n });\n\n // Register plugins\n await instance.register(fastifySensible);\n await instance.register(wssPlugin, {\n options: config.options,\n delegate,\n });\n await instance.register(multipartPlugin);\n await instance.register(apiPlugin, {\n delegate,\n prefix: '/api',\n });\n await instance.register(compilerPlugin, {\n delegate,\n });\n await instance.register(symbolicatePlugin, {\n delegate,\n });\n await instance.register(devtoolsPlugin, {\n options: config.options,\n });\n\n await instance.register(fastifyStatic, {\n root: debuggerAppPath,\n prefix: '/debugger-ui',\n prefixAvoidTrailingSlash: true,\n });\n // below is to prevent showing `GET 400 /favicon.ico`\n // errors in console when requesting the bundle via browser\n await instance.register(faviconPlugin);\n\n instance.addHook('onSend', async (request, reply, payload) => {\n reply.header('X-Content-Type-Options', 'nosniff');\n\n const [pathname] = request.url.split('?');\n if (pathname.endsWith('.map')) {\n reply.header('Access-Control-Allow-Origin', 'devtools://devtools');\n }\n\n return payload;\n });\n\n // Register routes\n instance.get('/', async () => delegate.messages.getHello());\n instance.get('/status', async () => delegate.messages.getStatus());\n\n /** Start the development server. */\n async function start() {\n await instance.listen(config.options.port, config.options.host);\n }\n\n /** Stop the development server. */\n async function stop() {\n await instance.close();\n }\n\n return {\n start,\n stop,\n instance,\n };\n}\n"],"mappings":"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"}
|
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
File without changes
|
package/dist/index.js.map
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import fastifyFavicon from 'fastify-favicon';
|
|
2
|
+
import fastifyPlugin from 'fastify-plugin'; // @ts-ignore
|
|
3
|
+
|
|
4
|
+
const pathToImg = new URL('../../img', import.meta.url).pathname;
|
|
5
|
+
|
|
6
|
+
async function faviconPlugin(instance) {
|
|
7
|
+
instance.register(fastifyFavicon, {
|
|
8
|
+
path: pathToImg
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export default fastifyPlugin(faviconPlugin, {
|
|
13
|
+
name: 'favicon-plugin'
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=faviconPlugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"faviconPlugin.js","names":["fastifyFavicon","fastifyPlugin","pathToImg","URL","import","meta","url","pathname","faviconPlugin","instance","register","path","name"],"sources":["../../../src/plugins/favicon/faviconPlugin.ts"],"sourcesContent":["import fastifyFavicon from 'fastify-favicon';\nimport type { FastifyInstance } from 'fastify';\nimport fastifyPlugin from 'fastify-plugin';\n\n// @ts-ignore\nconst pathToImg = new URL('../../img', import.meta.url).pathname;\n\nasync function faviconPlugin(instance: FastifyInstance) {\n instance.register(fastifyFavicon, { path: pathToImg });\n}\n\nexport default fastifyPlugin(faviconPlugin, {\n name: 'favicon-plugin',\n});\n"],"mappings":"AAAA,OAAOA,cAAP,MAA2B,iBAA3B;AAEA,OAAOC,aAAP,MAA0B,gBAA1B,C,CAEA;;AACA,MAAMC,SAAS,GAAG,IAAIC,GAAJ,CAAQ,WAAR,EAAqBC,MAAM,CAACC,IAAP,CAAYC,GAAjC,EAAsCC,QAAxD;;AAEA,eAAeC,aAAf,CAA6BC,QAA7B,EAAwD;EACtDA,QAAQ,CAACC,QAAT,CAAkBV,cAAlB,EAAkC;IAAEW,IAAI,EAAET;EAAR,CAAlC;AACD;;AAED,eAAeD,aAAa,CAACO,aAAD,EAAgB;EAC1CI,IAAI,EAAE;AADoC,CAAhB,CAA5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './faviconPlugin';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["default"],"sources":["../../../src/plugins/favicon/index.ts"],"sourcesContent":["export { default } from './faviconPlugin';\n"],"mappings":"SAASA,O"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/types.d.ts
CHANGED
|
File without changes
|
package/dist/types.js
CHANGED
|
File without changes
|
package/dist/types.js.map
CHANGED
|
File without changes
|
package/docs/README.md
CHANGED
|
File without changes
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
#### Defined in
|
|
20
20
|
|
|
21
|
-
[types.ts:200](https://github.com/callstack/repack/blob/
|
|
21
|
+
[types.ts:200](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L200)
|
|
22
22
|
|
|
23
23
|
___
|
|
24
24
|
|
|
@@ -28,7 +28,7 @@ ___
|
|
|
28
28
|
|
|
29
29
|
#### Defined in
|
|
30
30
|
|
|
31
|
-
[types.ts:199](https://github.com/callstack/repack/blob/
|
|
31
|
+
[types.ts:199](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L199)
|
|
32
32
|
|
|
33
33
|
___
|
|
34
34
|
|
|
@@ -38,4 +38,4 @@ ___
|
|
|
38
38
|
|
|
39
39
|
#### Defined in
|
|
40
40
|
|
|
41
|
-
[types.ts:201](https://github.com/callstack/repack/blob/
|
|
41
|
+
[types.ts:201](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L201)
|
|
@@ -18,4 +18,4 @@ Create instance of development server, powered by Fastify.
|
|
|
18
18
|
|
|
19
19
|
#### Defined in
|
|
20
20
|
|
|
21
|
-
[createServer.ts:
|
|
21
|
+
[createServer.ts:21](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/createServer.ts#L21)
|
|
@@ -18,7 +18,7 @@ Represents [@babel/core-frame](https://babeljs.io/docs/en/babel-code-frame).
|
|
|
18
18
|
|
|
19
19
|
#### Defined in
|
|
20
20
|
|
|
21
|
-
[plugins/symbolicate/types.ts:29](https://github.com/callstack/repack/blob/
|
|
21
|
+
[plugins/symbolicate/types.ts:29](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/plugins/symbolicate/types.ts#L29)
|
|
22
22
|
|
|
23
23
|
___
|
|
24
24
|
|
|
@@ -28,7 +28,7 @@ ___
|
|
|
28
28
|
|
|
29
29
|
#### Defined in
|
|
30
30
|
|
|
31
|
-
[plugins/symbolicate/types.ts:34](https://github.com/callstack/repack/blob/
|
|
31
|
+
[plugins/symbolicate/types.ts:34](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/plugins/symbolicate/types.ts#L34)
|
|
32
32
|
|
|
33
33
|
___
|
|
34
34
|
|
|
@@ -45,4 +45,4 @@ ___
|
|
|
45
45
|
|
|
46
46
|
#### Defined in
|
|
47
47
|
|
|
48
|
-
[plugins/symbolicate/types.ts:30](https://github.com/callstack/repack/blob/
|
|
48
|
+
[plugins/symbolicate/types.ts:30](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/plugins/symbolicate/types.ts#L30)
|
|
@@ -34,7 +34,7 @@ If the compilation is in progress, it should wait until compilation finishes and
|
|
|
34
34
|
|
|
35
35
|
#### Defined in
|
|
36
36
|
|
|
37
|
-
[plugins/compiler/types.ts:16](https://github.com/callstack/repack/blob/
|
|
37
|
+
[plugins/compiler/types.ts:16](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/plugins/compiler/types.ts#L16)
|
|
38
38
|
|
|
39
39
|
___
|
|
40
40
|
|
|
@@ -58,7 +58,7 @@ Detect MIME type of the asset from `filename`, `platform` or `data` (or from com
|
|
|
58
58
|
|
|
59
59
|
#### Defined in
|
|
60
60
|
|
|
61
|
-
[plugins/compiler/types.ts:29](https://github.com/callstack/repack/blob/
|
|
61
|
+
[plugins/compiler/types.ts:29](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/plugins/compiler/types.ts#L29)
|
|
62
62
|
|
|
63
63
|
___
|
|
64
64
|
|
|
@@ -80,4 +80,4 @@ Detect the platform from the URI - either from filename, query params or both.
|
|
|
80
80
|
|
|
81
81
|
#### Defined in
|
|
82
82
|
|
|
83
|
-
[plugins/compiler/types.ts:40](https://github.com/callstack/repack/blob/
|
|
83
|
+
[plugins/compiler/types.ts:40](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/plugins/compiler/types.ts#L40)
|
|
@@ -23,7 +23,7 @@ Get URI under which HMR server will be running, e.g: `/hmr`
|
|
|
23
23
|
|
|
24
24
|
#### Defined in
|
|
25
25
|
|
|
26
|
-
[plugins/wss/types.ts:6](https://github.com/callstack/repack/blob/
|
|
26
|
+
[plugins/wss/types.ts:6](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/plugins/wss/types.ts#L6)
|
|
27
27
|
|
|
28
28
|
___
|
|
29
29
|
|
|
@@ -48,4 +48,4 @@ Useful for running initial synchronization or any other side effect.
|
|
|
48
48
|
|
|
49
49
|
#### Defined in
|
|
50
50
|
|
|
51
|
-
[plugins/wss/types.ts:16](https://github.com/callstack/repack/blob/
|
|
51
|
+
[plugins/wss/types.ts:16](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/plugins/wss/types.ts#L16)
|
|
@@ -31,7 +31,7 @@ React Native stack frame used as input when processing by {@link Symbolicator}.
|
|
|
31
31
|
|
|
32
32
|
#### Defined in
|
|
33
33
|
|
|
34
|
-
[plugins/symbolicate/types.ts:6](https://github.com/callstack/repack/blob/
|
|
34
|
+
[plugins/symbolicate/types.ts:6](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/plugins/symbolicate/types.ts#L6)
|
|
35
35
|
|
|
36
36
|
___
|
|
37
37
|
|
|
@@ -45,7 +45,7 @@ ___
|
|
|
45
45
|
|
|
46
46
|
#### Defined in
|
|
47
47
|
|
|
48
|
-
[plugins/symbolicate/types.ts:15](https://github.com/callstack/repack/blob/
|
|
48
|
+
[plugins/symbolicate/types.ts:15](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/plugins/symbolicate/types.ts#L15)
|
|
49
49
|
|
|
50
50
|
___
|
|
51
51
|
|
|
@@ -59,7 +59,7 @@ ___
|
|
|
59
59
|
|
|
60
60
|
#### Defined in
|
|
61
61
|
|
|
62
|
-
[plugins/symbolicate/types.ts:5](https://github.com/callstack/repack/blob/
|
|
62
|
+
[plugins/symbolicate/types.ts:5](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/plugins/symbolicate/types.ts#L5)
|
|
63
63
|
|
|
64
64
|
___
|
|
65
65
|
|
|
@@ -73,4 +73,4 @@ ___
|
|
|
73
73
|
|
|
74
74
|
#### Defined in
|
|
75
75
|
|
|
76
|
-
[plugins/symbolicate/types.ts:8](https://github.com/callstack/repack/blob/
|
|
76
|
+
[plugins/symbolicate/types.ts:8](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/plugins/symbolicate/types.ts#L8)
|
|
@@ -19,7 +19,7 @@ Number of modules built.
|
|
|
19
19
|
|
|
20
20
|
#### Defined in
|
|
21
21
|
|
|
22
|
-
[types.ts:178](https://github.com/callstack/repack/blob/
|
|
22
|
+
[types.ts:178](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L178)
|
|
23
23
|
|
|
24
24
|
___
|
|
25
25
|
|
|
@@ -31,4 +31,4 @@ Total number of modules detect as part of compilation.
|
|
|
31
31
|
|
|
32
32
|
#### Defined in
|
|
33
33
|
|
|
34
|
-
[types.ts:181](https://github.com/callstack/repack/blob/
|
|
34
|
+
[types.ts:181](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L181)
|
|
@@ -25,7 +25,7 @@ Raw React Native stack frame.
|
|
|
25
25
|
|
|
26
26
|
#### Defined in
|
|
27
27
|
|
|
28
|
-
[plugins/symbolicate/types.ts:6](https://github.com/callstack/repack/blob/
|
|
28
|
+
[plugins/symbolicate/types.ts:6](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/plugins/symbolicate/types.ts#L6)
|
|
29
29
|
|
|
30
30
|
___
|
|
31
31
|
|
|
@@ -35,7 +35,7 @@ ___
|
|
|
35
35
|
|
|
36
36
|
#### Defined in
|
|
37
37
|
|
|
38
|
-
[plugins/symbolicate/types.ts:7](https://github.com/callstack/repack/blob/
|
|
38
|
+
[plugins/symbolicate/types.ts:7](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/plugins/symbolicate/types.ts#L7)
|
|
39
39
|
|
|
40
40
|
___
|
|
41
41
|
|
|
@@ -45,7 +45,7 @@ ___
|
|
|
45
45
|
|
|
46
46
|
#### Defined in
|
|
47
47
|
|
|
48
|
-
[plugins/symbolicate/types.ts:5](https://github.com/callstack/repack/blob/
|
|
48
|
+
[plugins/symbolicate/types.ts:5](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/plugins/symbolicate/types.ts#L5)
|
|
49
49
|
|
|
50
50
|
___
|
|
51
51
|
|
|
@@ -55,4 +55,4 @@ ___
|
|
|
55
55
|
|
|
56
56
|
#### Defined in
|
|
57
57
|
|
|
58
|
-
[plugins/symbolicate/types.ts:8](https://github.com/callstack/repack/blob/
|
|
58
|
+
[plugins/symbolicate/types.ts:8](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/plugins/symbolicate/types.ts#L8)
|
|
@@ -23,7 +23,7 @@ A compilation asset representation for API clients.
|
|
|
23
23
|
|
|
24
24
|
#### Defined in
|
|
25
25
|
|
|
26
|
-
[types.ts:141](https://github.com/callstack/repack/blob/
|
|
26
|
+
[types.ts:141](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L141)
|
|
27
27
|
|
|
28
28
|
___
|
|
29
29
|
|
|
@@ -33,4 +33,4 @@ ___
|
|
|
33
33
|
|
|
34
34
|
#### Defined in
|
|
35
35
|
|
|
36
|
-
[types.ts:142](https://github.com/callstack/repack/blob/
|
|
36
|
+
[types.ts:142](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L142)
|
|
File without changes
|
|
@@ -33,7 +33,7 @@ Should return `[]` if the compilation does not exists for given platform.
|
|
|
33
33
|
|
|
34
34
|
#### Defined in
|
|
35
35
|
|
|
36
|
-
[types.ts:162](https://github.com/callstack/repack/blob/
|
|
36
|
+
[types.ts:162](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L162)
|
|
37
37
|
|
|
38
38
|
___
|
|
39
39
|
|
|
@@ -56,7 +56,7 @@ Should return `null` if the compilation does not exists for given platform.
|
|
|
56
56
|
|
|
57
57
|
#### Defined in
|
|
58
58
|
|
|
59
|
-
[types.ts:168](https://github.com/callstack/repack/blob/
|
|
59
|
+
[types.ts:168](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L168)
|
|
60
60
|
|
|
61
61
|
___
|
|
62
62
|
|
|
@@ -72,4 +72,4 @@ Get all platforms - either with already existing compilations or all supported p
|
|
|
72
72
|
|
|
73
73
|
#### Defined in
|
|
74
74
|
|
|
75
|
-
[types.ts:156](https://github.com/callstack/repack/blob/
|
|
75
|
+
[types.ts:156](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L156)
|
|
@@ -24,7 +24,7 @@ Development server options to configure e.g: `port`, `host` etc.
|
|
|
24
24
|
|
|
25
25
|
#### Defined in
|
|
26
26
|
|
|
27
|
-
[types.ts:21](https://github.com/callstack/repack/blob/
|
|
27
|
+
[types.ts:21](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L21)
|
|
28
28
|
|
|
29
29
|
## Methods
|
|
30
30
|
|
|
@@ -46,4 +46,4 @@ Function to create a delegate, which implements crucial functionalities.
|
|
|
46
46
|
|
|
47
47
|
#### Defined in
|
|
48
48
|
|
|
49
|
-
[types.ts:24](https://github.com/callstack/repack/blob/
|
|
49
|
+
[types.ts:24](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L24)
|
|
@@ -25,7 +25,7 @@ An API delegate.
|
|
|
25
25
|
|
|
26
26
|
#### Defined in
|
|
27
27
|
|
|
28
|
-
[types.ts:71](https://github.com/callstack/repack/blob/
|
|
28
|
+
[types.ts:71](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L71)
|
|
29
29
|
|
|
30
30
|
___
|
|
31
31
|
|
|
@@ -37,7 +37,7 @@ A compiler delegate.
|
|
|
37
37
|
|
|
38
38
|
#### Defined in
|
|
39
39
|
|
|
40
|
-
[types.ts:56](https://github.com/callstack/repack/blob/
|
|
40
|
+
[types.ts:56](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L56)
|
|
41
41
|
|
|
42
42
|
___
|
|
43
43
|
|
|
@@ -49,7 +49,7 @@ An HMR delegate.
|
|
|
49
49
|
|
|
50
50
|
#### Defined in
|
|
51
51
|
|
|
52
|
-
[types.ts:65](https://github.com/callstack/repack/blob/
|
|
52
|
+
[types.ts:65](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L65)
|
|
53
53
|
|
|
54
54
|
___
|
|
55
55
|
|
|
@@ -61,7 +61,7 @@ A logger delegate.
|
|
|
61
61
|
|
|
62
62
|
#### Defined in
|
|
63
63
|
|
|
64
|
-
[types.ts:62](https://github.com/callstack/repack/blob/
|
|
64
|
+
[types.ts:62](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L62)
|
|
65
65
|
|
|
66
66
|
___
|
|
67
67
|
|
|
@@ -73,7 +73,7 @@ An messages delegate.
|
|
|
73
73
|
|
|
74
74
|
#### Defined in
|
|
75
75
|
|
|
76
|
-
[types.ts:68](https://github.com/callstack/repack/blob/
|
|
76
|
+
[types.ts:68](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L68)
|
|
77
77
|
|
|
78
78
|
___
|
|
79
79
|
|
|
@@ -85,4 +85,4 @@ A symbolicator delegate.
|
|
|
85
85
|
|
|
86
86
|
#### Defined in
|
|
87
87
|
|
|
88
|
-
[types.ts:59](https://github.com/callstack/repack/blob/
|
|
88
|
+
[types.ts:59](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L59)
|
|
@@ -29,7 +29,7 @@ A logger instance, useful for emitting logs from the delegate.
|
|
|
29
29
|
|
|
30
30
|
#### Defined in
|
|
31
31
|
|
|
32
|
-
[types.ts:81](https://github.com/callstack/repack/blob/
|
|
32
|
+
[types.ts:81](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L81)
|
|
33
33
|
|
|
34
34
|
## Methods
|
|
35
35
|
|
|
@@ -59,7 +59,7 @@ Broadcast arbitrary event to all connected HMR clients for given `platform`.
|
|
|
59
59
|
|
|
60
60
|
#### Defined in
|
|
61
61
|
|
|
62
|
-
[types.ts:97](https://github.com/callstack/repack/blob/
|
|
62
|
+
[types.ts:97](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L97)
|
|
63
63
|
|
|
64
64
|
___
|
|
65
65
|
|
|
@@ -87,7 +87,7 @@ Broadcast arbitrary method-like event to all connected message clients.
|
|
|
87
87
|
|
|
88
88
|
#### Defined in
|
|
89
89
|
|
|
90
|
-
[types.ts:108](https://github.com/callstack/repack/blob/
|
|
90
|
+
[types.ts:108](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L108)
|
|
91
91
|
|
|
92
92
|
___
|
|
93
93
|
|
|
@@ -109,7 +109,7 @@ Send notification about compilation end for given `platform`.
|
|
|
109
109
|
|
|
110
110
|
#### Defined in
|
|
111
111
|
|
|
112
|
-
[types.ts:87](https://github.com/callstack/repack/blob/
|
|
112
|
+
[types.ts:87](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L87)
|
|
113
113
|
|
|
114
114
|
___
|
|
115
115
|
|
|
@@ -131,4 +131,4 @@ Send notification about compilation start for given `platform`.
|
|
|
131
131
|
|
|
132
132
|
#### Defined in
|
|
133
133
|
|
|
134
|
-
[types.ts:84](https://github.com/callstack/repack/blob/
|
|
134
|
+
[types.ts:84](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L84)
|
|
@@ -30,4 +30,4 @@ Callback for when a new log is emitted.
|
|
|
30
30
|
|
|
31
31
|
#### Defined in
|
|
32
32
|
|
|
33
|
-
[types.ts:124](https://github.com/callstack/repack/blob/
|
|
33
|
+
[types.ts:124](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L124)
|
|
@@ -25,7 +25,7 @@ Get message to send as a reply for `GET /` route.
|
|
|
25
25
|
|
|
26
26
|
#### Defined in
|
|
27
27
|
|
|
28
|
-
[types.ts:132](https://github.com/callstack/repack/blob/
|
|
28
|
+
[types.ts:132](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L132)
|
|
29
29
|
|
|
30
30
|
___
|
|
31
31
|
|
|
@@ -41,4 +41,4 @@ Get message to send as a reply for `GET /status` route.
|
|
|
41
41
|
|
|
42
42
|
#### Defined in
|
|
43
43
|
|
|
44
|
-
[types.ts:135](https://github.com/callstack/repack/blob/
|
|
44
|
+
[types.ts:135](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L135)
|
|
@@ -24,7 +24,7 @@ When left unspecified, it will listen on all available network interfaces, simil
|
|
|
24
24
|
|
|
25
25
|
#### Defined in
|
|
26
26
|
|
|
27
|
-
[types.ts:39](https://github.com/callstack/repack/blob/
|
|
27
|
+
[types.ts:39](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L39)
|
|
28
28
|
|
|
29
29
|
___
|
|
30
30
|
|
|
@@ -43,7 +43,7 @@ Options for running the server as HTTPS. If `undefined`, the server will run as
|
|
|
43
43
|
|
|
44
44
|
#### Defined in
|
|
45
45
|
|
|
46
|
-
[types.ts:42](https://github.com/callstack/repack/blob/
|
|
46
|
+
[types.ts:42](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L42)
|
|
47
47
|
|
|
48
48
|
___
|
|
49
49
|
|
|
@@ -55,7 +55,7 @@ Port under which to run the development server.
|
|
|
55
55
|
|
|
56
56
|
#### Defined in
|
|
57
57
|
|
|
58
|
-
[types.ts:33](https://github.com/callstack/repack/blob/
|
|
58
|
+
[types.ts:33](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L33)
|
|
59
59
|
|
|
60
60
|
___
|
|
61
61
|
|
|
@@ -67,4 +67,4 @@ Root directory of the project.
|
|
|
67
67
|
|
|
68
68
|
#### Defined in
|
|
69
69
|
|
|
70
|
-
[types.ts:30](https://github.com/callstack/repack/blob/
|
|
70
|
+
[types.ts:30](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L30)
|
|
@@ -26,7 +26,7 @@ Final symbolicated stack frame.
|
|
|
26
26
|
|
|
27
27
|
#### Defined in
|
|
28
28
|
|
|
29
|
-
[plugins/symbolicate/types.ts:22](https://github.com/callstack/repack/blob/
|
|
29
|
+
[plugins/symbolicate/types.ts:22](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/plugins/symbolicate/types.ts#L22)
|
|
30
30
|
|
|
31
31
|
___
|
|
32
32
|
|
|
@@ -40,7 +40,7 @@ ___
|
|
|
40
40
|
|
|
41
41
|
#### Defined in
|
|
42
42
|
|
|
43
|
-
[plugins/symbolicate/types.ts:6](https://github.com/callstack/repack/blob/
|
|
43
|
+
[plugins/symbolicate/types.ts:6](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/plugins/symbolicate/types.ts#L6)
|
|
44
44
|
|
|
45
45
|
___
|
|
46
46
|
|
|
@@ -54,7 +54,7 @@ ___
|
|
|
54
54
|
|
|
55
55
|
#### Defined in
|
|
56
56
|
|
|
57
|
-
[plugins/symbolicate/types.ts:15](https://github.com/callstack/repack/blob/
|
|
57
|
+
[plugins/symbolicate/types.ts:15](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/plugins/symbolicate/types.ts#L15)
|
|
58
58
|
|
|
59
59
|
___
|
|
60
60
|
|
|
@@ -68,7 +68,7 @@ ___
|
|
|
68
68
|
|
|
69
69
|
#### Defined in
|
|
70
70
|
|
|
71
|
-
[plugins/symbolicate/types.ts:5](https://github.com/callstack/repack/blob/
|
|
71
|
+
[plugins/symbolicate/types.ts:5](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/plugins/symbolicate/types.ts#L5)
|
|
72
72
|
|
|
73
73
|
___
|
|
74
74
|
|
|
@@ -82,4 +82,4 @@ ___
|
|
|
82
82
|
|
|
83
83
|
#### Defined in
|
|
84
84
|
|
|
85
|
-
[plugins/symbolicate/types.ts:8](https://github.com/callstack/repack/blob/
|
|
85
|
+
[plugins/symbolicate/types.ts:8](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/plugins/symbolicate/types.ts#L8)
|
|
@@ -30,7 +30,7 @@ Get source code of file in the URL.
|
|
|
30
30
|
|
|
31
31
|
#### Defined in
|
|
32
32
|
|
|
33
|
-
[plugins/symbolicate/types.ts:54](https://github.com/callstack/repack/blob/
|
|
33
|
+
[plugins/symbolicate/types.ts:54](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/plugins/symbolicate/types.ts#L54)
|
|
34
34
|
|
|
35
35
|
___
|
|
36
36
|
|
|
@@ -52,7 +52,7 @@ Get source map for the file in the URL.
|
|
|
52
52
|
|
|
53
53
|
#### Defined in
|
|
54
54
|
|
|
55
|
-
[plugins/symbolicate/types.ts:63](https://github.com/callstack/repack/blob/
|
|
55
|
+
[plugins/symbolicate/types.ts:63](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/plugins/symbolicate/types.ts#L63)
|
|
56
56
|
|
|
57
57
|
___
|
|
58
58
|
|
|
@@ -74,4 +74,4 @@ Check if given stack frame should be included in the new symbolicated stack.
|
|
|
74
74
|
|
|
75
75
|
#### Defined in
|
|
76
76
|
|
|
77
|
-
[plugins/symbolicate/types.ts:70](https://github.com/callstack/repack/blob/
|
|
77
|
+
[plugins/symbolicate/types.ts:70](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/plugins/symbolicate/types.ts#L70)
|
|
@@ -17,7 +17,7 @@ Represents results of running {@link process} method on {@link Symbolicator} ins
|
|
|
17
17
|
|
|
18
18
|
#### Defined in
|
|
19
19
|
|
|
20
|
-
[plugins/symbolicate/types.ts:41](https://github.com/callstack/repack/blob/
|
|
20
|
+
[plugins/symbolicate/types.ts:41](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/plugins/symbolicate/types.ts#L41)
|
|
21
21
|
|
|
22
22
|
___
|
|
23
23
|
|
|
@@ -27,4 +27,4 @@ ___
|
|
|
27
27
|
|
|
28
28
|
#### Defined in
|
|
29
29
|
|
|
30
|
-
[plugins/symbolicate/types.ts:42](https://github.com/callstack/repack/blob/
|
|
30
|
+
[plugins/symbolicate/types.ts:42](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/plugins/symbolicate/types.ts#L42)
|
package/docs/modules/Internal.md
CHANGED
|
File without changes
|
|
File without changes
|
package/docs/modules/Server.md
CHANGED
|
File without changes
|
|
@@ -23,4 +23,4 @@ progress to the client who requested the asset.
|
|
|
23
23
|
|
|
24
24
|
#### Defined in
|
|
25
25
|
|
|
26
|
-
[types.ts:190](https://github.com/callstack/repack/blob/
|
|
26
|
+
[types.ts:190](https://github.com/callstack/repack/blob/d176fd0/packages/dev-server/src/types.ts#L190)
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@callstack/repack-dev-server",
|
|
3
3
|
"description": "A bundler-agnostic development server for React Native applications as part of @callstack/repack.",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "1.0.0
|
|
5
|
+
"version": "1.0.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.js",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
@@ -34,21 +34,23 @@
|
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
|
-
"build:js": "babel src --out-dir dist --extensions \".js,.cjs,.ts\" --source-maps --ignore \"**/__tests__/**\" --delete-dir-on-start",
|
|
37
|
+
"build:js": "babel src --out-dir dist --extensions \".js,.cjs,.ts\" --source-maps --ignore \"**/__tests__/**\" --delete-dir-on-start --copy-files",
|
|
38
38
|
"build:js:watch": "yarn build:js --watch",
|
|
39
39
|
"build:ts": "tsc --emitDeclarationOnly",
|
|
40
40
|
"build:ts:watch": "yarn build:ts --watch --preserveWatchOutput",
|
|
41
41
|
"build": "yarn build:js && yarn build:ts",
|
|
42
42
|
"docs": "typedoc",
|
|
43
43
|
"typecheck": "tsc --noEmit",
|
|
44
|
-
"lint": "eslint --ext \".js,.ts\" src"
|
|
44
|
+
"lint": "eslint --ext \".js,.ts\" src",
|
|
45
|
+
"archive": "yarn build && yarn pack --out repack-dev-server-%v-$(git log -1 --format=\"%h\").tgz"
|
|
45
46
|
},
|
|
46
47
|
"dependencies": {
|
|
47
48
|
"@babel/code-frame": "^7.16.7",
|
|
48
|
-
"@callstack/repack-debugger-app": "^1.0.0
|
|
49
|
+
"@callstack/repack-debugger-app": "^1.0.0",
|
|
49
50
|
"@fastify/sensible": "^4.1.0",
|
|
50
51
|
"@fastify/static": "^5.0.2",
|
|
51
52
|
"fastify": "^3.29.0",
|
|
53
|
+
"fastify-favicon": "^3.2.0",
|
|
52
54
|
"fastify-plugin": "^3.0.1",
|
|
53
55
|
"metro-inspector-proxy": "^0.71.0",
|
|
54
56
|
"open": "^8.4.0",
|